Windows Phone Developers

Saturday, June 19, 2010

How to Display WebPage Title on Windows Form using C#/.NET

Change Windows Form Caption dynamically using C#/VB.NET to display WebPage Title

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. Digg Technorati Delicious StumbleUpon Reddit BlinkList Furl Mixx Facebook Google Bookmark Yahoo
ma.gnolia squidoo newsvine live netscape tailrank mister-wong blogmarks slashdot spurl StumbleUpon

No comments:

Post a Comment