• Log in or sign up for an account here: https://www.sythe.org/login

webbrowser question

mama luigi

Newcomer
Joined
May 5, 2010
Sythe Gold
0
Messages
11
webbrowser question
i am creating a webbrowser and i have encountered a problem i cannot seem to fix.

My webbrowser is a tabbed webbrowser and whenever i switch tabs, the textbox is supposed to show the current page address. Example:

I have two tabs open, one is on Google and the other tab is on Yahoo. I loaded google last so the textbox says "Http://www.google.com", then i click on the yahoo tab, and it still says "http://www.google.com". How can i fix it so the textbox will say "http://www.yahoo.com" whenever i click on the yahoo tab, and will change back to "http://www.google.com" if i click on the google tab again.


Sorry if this doesn't make any sense , and thank you in advance
- mama luigi
 
webbrowser question
I've never used browser controls. Your best bet is probably post this on stackoverflow.com.
 
webbrowser question
dreamincode.com is a great site for this
 
webbrowser question
I understand your problem. I recently made a webbrowser too... And as for your problem, put in the tablcontrol1.selectedtabchanged or maybe selectedindexchanged the code to set the textbox's text to webbrowser's url. it's easY!
 
webbrowser question
Put this in a function for each tab when theyre clicked.
Code:
Private Sub NewTab2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TabPage2.Click
        Dim URL As String = Browser.Url.ToString
        TextBox2.Text = URL
    End Sub
 
Runescape Gamblingrunescape gambling
Back
Top