|
-
Jun 14th, 2019, 09:50 PM
#3
Thread Starter
Lively Member
Re: How To Access A New Declared Web Browser
 Originally Posted by jmcilhinney
If you're using standard controls then the obvious option is this:
vb.net Code:
TabControl1.SelectedTab.Controls.OfType(Of WebBrowser)().Single().Navigate(theNewUrl)
This assumes that you want to affect the currently selected TabPage and it will always have one and only one WebBrowser control on it.
That said, you may find it more useful to create your own custom controls and build the functionality you need into them, rather than just using the standard controls and fussing every time. Follow the CodeBank link in my signature below and check out my Tabbed Web Browser thread for an example of that.
I’ll look into that. Ultimately, that’s what I’ll want is to figure out how to my make my own custom controls. Thank you!
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|