How to Display WebPage Title on Windows Form using C#/.NET
Change Windows Form Caption dynamically using C#/VB.NET to display WebPage TitleIt is good to display Webpage title on the userform or any other control that hosts Webbrowser. This ressembles the functionaliy of Internet Explorer. The following code does the same:
private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
this.Text = webBrowser1.Document.Title;
}
Комментариев нет:
Отправить комментарий