I have 2 buttons, 1 TabControl.

1 of the buttons makes a Tab in the TabControl and a webbrowser in the tabpage but when i hit the other button which is to make the Webrowser control goto your ome page it doesn't work.

Here is my code

VB Code:
  1. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  2.         Dim A As New TabPage
  3.         Dim WB As New AxSHDocVw.AxWebBrowser
  4.         Tabs.TabPages.Add(A)
  5.         A.Controls.Add(WB)
  6.     End Sub
  7.  
  8.     Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
  9.         Dim A As New TabPage
  10.         Dim axwebbrowser1 As AxSHDocVw.AxWebBrowser
  11.         axwebbrowser1.GoHome()
  12.     End Sub

But it doesn't work.

I am new to creating the array list like this any suggestions on how to make it better/work is great

drgnstrmace