How to get page name with webBrowser

Posted by  Tanuj Kumar
 2145  View(s)
Rate this:

Currently I want to implement a simple web browser, and now I'm stuck. I want to get name of opened page (Every tab has name according to opened page), but I can't find the solution. In C# I can use this code:

TabControl.SelectedTab.Text = webBrowser.Url.Host.ToString();

But with WPF it doesn't work. What is solution to find page name with WPF?

  1. Re: How to get page name with webBrowser

    Please try like this,

    TabControl.SelectedTab.Text = webBrowser1.Url.AbsoluteUri;

      Modified On Mar-31-2018 06:46:44 AM