-
Newb help
Okay, so I just started using visual bsaic 2010. For my first project I am trying to build a web browser, i am using a tab control and all my buttons work on the original tab but once a make a new tab the buttons dont work
here is the home button code i am using
CType(TabControl1.SelectedTab.Controls.Item(0), WebBrowser).Navigate("http://www.google.com/search?q=" & TextBox2.Text)
it comes up saying index 0 is out of range any help would be appreciated
thanks
-
Re: Newb help
Is there actually a webbrowser that has been added to the new tab?
The most likely problem is just what it says: There is no item(0). Therefore, you have to figure out why not. If you think you created a webbrowser and added it to the tab...you didn't, so now you need to figure out where it went.