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