Results 1 to 40 of 555

Thread: VB6 WebView2-Binding (Edge-Chromium)

Threaded View

  1. #11
    PowerPoster
    Join Date
    Jan 2020
    Posts
    5,538

    Re: VB6 WebView2-Binding (Edge-Chromium)

    Found two problems, help to have a look.

    webview2 loading objects is slow, can you do an asynchronous version, as long as you set the URL, the background will automatically create, create an event after completion. And then go to the website
    HTML Code:
    Set Webview1 = New_c.WebView2
    Webview1.BindTo(UserControl.hWnd)
    Code:
    Set Webview1 = New_c.WebView2
    webview1.NewWebViewAnsy(picture1.hwnd,URL AS STRING)
    
    SUB NewWebViewAnsy(ParentHwnd as long,Url1) IN CreateThread or ansy
    Webview1.BindTo(UserControl.hWnd)
    raiseevent  WebviewLoadOK()
    Webview1.Navigate URL1
    end sub
    Url without http added will Navigate and crash Webview1.Navigate "baidu.com
    Last edited by xiaoyao; May 19th, 2023 at 04:10 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width