Untouchable
Member
- Joined
- Aug 6, 2006
- Messages
- 11
- Programming Experience
- Beginner
Well, im making a tabbed webbrowser (turns out to be much harder then I thought), and i have the basic features done, but now im trying to set the Browser.navigating and navigated events, and its kinda hard.
Here are some relevant code:
Example:
Get how it works? It is the webbrowser that is in the active tab that navigates.. but here comes the hard part..
This doenst work. firstly i get the following error
Been stuck on this one for days, can anyone clear it for me?
Cheers!
Here are some relevant code:
VB.NET:
Dim Browsercollection As New ArrayList
Example:
VB.NET:
Private Sub ToolStripButton5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ToolStripButton5.Click
Dim ActiveBrowser As WebBrowser = TabControl1.SelectedTab.Tag
ActiveBrowser = TabControl1.SelectedTab.Tag
ActiveBrowser.GoHome()
Get how it works? It is the webbrowser that is in the active tab that navigates.. but here comes the hard part..
VB.NET:
Private Sub activebrowser_Navigated(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserNavigatedEventArgs) Handles activebrowser.Navigated
MessageBox.Show("test")
so i tried to add this at the top of the formHandles clause requires a WithEvents variable defined in the containing type or one of its base types
and the error message dissappeared, but it doesnt work.. nothing happens when the browser navigates..Dim WithEvents activebrowser As WebBrowser
Been stuck on this one for days, can anyone clear it for me?
Cheers!