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.
|
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!
|