By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,235 Members | 1,596 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,235 IT Pros & Developers. It's quick & easy.

Webbrowser for VB

P: 1
(Visual basic 2008 express edittion)
I have made a tabbed webbrowser and what i want is that when the webbrowser page is loaded

the name of it will go to the form text ,the tab text, and the apsolutepath at the URL textbox on top.

My problem is that i cannot find what i will put in the handle option becouse i want to handle all webbrowsers
Expand|Select|Wrap|Line Numbers
  1. Private sub AllWebBrowser_DocumentCompleted(ByVal sender As System.Object,ByVale As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs)
  2. Handles (?????)
  3. Me.text = (Ctype(Tabcontrol1.slectedtab.controls.item(0), webbrowser).documenttitle & (" - Prox"))
  4. Tabcontol1.selectedtab.text = Ctype(Tabcontrol1.slectedtab.controls.item(0), webbrowser).documenttitle
  5. textbox1.text = Ctype(tabcontrol1.selectedtab.controls.item(0),webbrowser).Url.tostring
  6. end sub
Pls feel free to show me other ways to do it.

(if needed, this is the add tab button)

Expand|Select|Wrap|Line Numbers
  1.  Dim TP As New TabPage
  2.     TP.Text = "Blank Page" & (TabControl1.TabPages.Count + 1)
  3.     TabControl1.TabPages.Add(TP)
  4.     TabControl1.SelectedTab = TP
  5.  Dim NW As New WebBrowser
  6.     TabControl1.SelectedTab.Controls.Add(NW)
  7.     NW.Dock = DockStyle.Fill
  8.     NW.Navigate("")
Furthrer more...Can anyone tell me what references my webbrowser needs in order to open links?

Thanks for any response...
Dec 5 '10 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.