Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. vb.net 2022 webview2 getting current url.

vb.net 2022 webview2 getting current url.

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharp
4 Posts 3 Posters 36 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    steve2015
    wrote on last edited by
    #1

    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.

    D 1 Reply Last reply
    0
    • S steve2015

      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.

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      You have to handle the NavigationCompleted event, then you can get the "current" uri from either webView21.Source or webView21.CoreWebView2.Source.

      Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
      Dave Kreskowiak

      S 1 Reply Last reply
      0
      • D Dave Kreskowiak

        You have to handle the NavigationCompleted event, then you can get the "current" uri from either webView21.Source or webView21.CoreWebView2.Source.

        Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
        Dave Kreskowiak

        S Offline
        S Offline
        steve2015
        wrote on last edited by
        #3

        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.

        M 1 Reply Last reply
        0
        • S steve2015

          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.

          M Offline
          M Offline
          Michael Jose 2023
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups