simonrichards150
New member
- Joined
- Jul 18, 2009
- Messages
- 2
- Programming Experience
- 3-5
Hello, i'm new
I was hoping someone could help me out here. I'm writing a tabbed web browser for someone who is learning VB.NET, and I have got to the point where I can add/remove browser controls into tab pages, controlled by one set of buttons on the main form, but I can't handle events from the WebBrowser objects.
I have tried this but it says that 'DocumentTitleChanged' isnt an event of 'Control'...
I want to update the tab title with the web page title when it changes. I started using a timer to update the tabs but there must be a way to add an event handler here!
What do you reckon i'm doing wrong?
I was hoping someone could help me out here. I'm writing a tabbed web browser for someone who is learning VB.NET, and I have got to the point where I can add/remove browser controls into tab pages, controlled by one set of buttons on the main form, but I can't handle events from the WebBrowser objects.
I have tried this but it says that 'DocumentTitleChanged' isnt an event of 'Control'...
VB.NET:
Dim browser As New ArrayList
browser.Add(New WebBrowser)
browser(0).parent = TabControl1.SelectedTab
browser(0).dock = DockStyle.Fill
[B]AddHandler browser(0).DocumentTitleChanged, TitleChangedHandler()[/B]
I want to update the tab title with the web page title when it changes. I started using a timer to update the tabs but there must be a way to add an event handler here!
What do you reckon i'm doing wrong?