Welcome Guest Search | Active Topics | Sign In | Register

Intentional Late Rendering webview in handle Options
Anonon
Posted: Sunday, January 10, 2021 8:43:30 AM
Rank: Newbie
Groups: Member

Joined: 1/10/2021
Posts: 1
Hi not really a problem but is there a feature where we can do a late rendering.

'### LOAD FORM

Dim threadRunner As New ThreadRunner()
Dim webView As WebView = threadRunner.CreateWebView()
threadRunner.Send(Function()
webView.LoadUrlAndWait("http://www.google.com")
webView.EvalScript("hello.value = 'something'")
End Function)

'### then after button click, binds the current product of the webview in a picturebox.handle
webview.LateRenderInto(Picturebox1.handle) 'pseudo-code

'I plan on consistent current state of webview, showing it of in form 2 from form1. when form2 is closed, just a click of button1 will show the current state of webview. any idea if possible if not its okay.

is this possible?
using visible false seems a resource intensive.
just a yes and no problem, enlighten me.
eo_support
Posted: Monday, January 11, 2021 10:27:43 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
Hi,

I am not sure if I understand your question correctly. It seems that you can simply do a webView.Capture to capture the current output of the WebView into an Image object, and then draw the Image object into the PictureBox. Will that work for you?

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.