HOW TO GET PAGE NAME WITH WEBBROWSER

Tanuj Kumar

Total Post:134

Points:940
Posted by  Tanuj Kumar
C# 
C#
 1372  View(s)
Ratings:
Rate this:

Currently I want to implement a simple webBrowser, 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. Pravesh Singh

    Post:101

    Points:709
    Re: How to get page name with webBrowser

    Please try like this,

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

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!