Visual Basic Development Bookmark and Share   
 Home > Visual Basic IDE > Tabbed Web Browser : Making it navigate
 

Tabbed Web Browser : Making it navigate

I have created a tabbed browser, and for the Go button, i have added the following commands
CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).Navigate(TextBox1.Text)

The program dubugs fine, and the first tab navigates to whatever URL is typed, however, when I open the second tab, and try to navigate, the program takes me to the coding page in VB, and highlights the above mentioned Code, and gives the following error

ArgumentOutOfRangeException was unhandled
Index 0 is out of range. Parameter name: index
WaleedXafar  Sunday, November 22, 2009 4:57 PM
are you sure you have a WebBrowser on the second tab?

it is giving you that error because it is not finding a WebBrowser control on TabPage2
jwavila  Sunday, November 22, 2009 5:15 PM
are you sure you have a WebBrowser on the second tab?

it is giving you that error because it is not finding a WebBrowser control on TabPage2
jwavila  Sunday, November 22, 2009 5:15 PM

You can use google to search for other answers

Custom Search

More Threads

• Workaround for Compiler Error That Was NOT FIXED BY THE PATCH
• .net framework not referenced (even though it is)?
• Datagrid with a ComboBox with a variabel @Zone - how do I write to the variabel?
• Run application after successful installation.
• adding image in imagelist at run time
• Guide neede for Server process in vb.net
• Function Keys not Working For Me in VB 2008 Express
• VS2005 won't publish correctly
• Run vb application before start up another application?
• Newbie Question about creating dependent list boxes