It 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;
}
The code uses DocumentCompleted event to update the WinForm's caption.
No comments:
Post a Comment