vb.net 2022 webview2 getting current url.
-
I am using visual basic to try and get the webview2 current url but all I get is the first page that I opened with the webview2. I used
dim URL as string = webView21.Source.ToString()
but not returning current page url. I have work on this for 2 days now and no luck. I sure hope some body can answer this or my whole project is toast.
-
I am using visual basic to try and get the webview2 current url but all I get is the first page that I opened with the webview2. I used
dim URL as string = webView21.Source.ToString()
but not returning current page url. I have work on this for 2 days now and no luck. I sure hope some body can answer this or my whole project is toast.
You have to handle the
NavigationCompleted
event, then you can get the "current" uri from eitherwebView21.Source
orwebView21.CoreWebView2.Source
.Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
Dave Kreskowiak -
You have to handle the
NavigationCompleted
event, then you can get the "current" uri from eitherwebView21.Source
orwebView21.CoreWebView2.Source
.Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
Dave Kreskowiak -
Thanks so much Dave. I knew there had to be away, just couldn't find it. Vb.net is just a hobby for me but if I can help someone else I will pay this forward.
Pay someone to take my online course this is a viable option for students who don't have the time or energy to focus on their classes. Professional assistance can help students stay on track with their coursework and finish their classes on time. It's a great way to make sure students get the best possible grades.