Home > DeveloperSection > Forums > How to get page name with webBrowser
Tanuj Kumar

Total Post:134

Posted on    October-07-2013 8:53 AM

 C# C# 

 1 Reply(s)
 1314  View(s)
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?

Pravesh Singh
Pravesh Singh

Total Post:101

Posted on    October-08-2013 1:12 AM

Please try like this,

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

Don't want to miss updates? Please click the below button!

Follow MindStick