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:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim A As New TabPage Dim WB As New AxSHDocVw.AxWebBrowser Tabs.TabPages.Add(A) A.Controls.Add(WB) End Sub Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click Dim A As New TabPage Dim axwebbrowser1 As AxSHDocVw.AxWebBrowser axwebbrowser1.GoHome() 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





Reply With Quote