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

combo.text = webbrowser.navigate

Joined
Dec 6, 2005
Sythe Gold
0
Messages
451
Location
2146 - australia
This is what i got and its not working...

Code:
Private Sub cburl_Change()
If cburl.Text = "The Underground" Then
    WebBrowser.Navigate = "http://www.undergroundtrading.co.nr/"
End If
End Sub

Also, how would i go about making the program connect to an IP?
 
Code:
Private Sub cburl_Change()
If cburl.Text = "The Underground" Then
    WebBrowser.Navigate = "http://www.undergroundtrading.co.nr/"
End If
End Sub

You don't need the "=" sign in
Code:
WebBrowser.Navigate = "http://www.undergroundtrading.co.nr/"
...
So change it to...
Code:
WebBrowser.Navigate "http://www.undergroundtrading.co.nr/"
 
Try this ;)

Code:
Private Sub cburl_Change()
If cburl.Text = "The Underground" Then
    WebBrowser.Navigate2 ("http://www.undergroundtrading.co.nr/")
End If
End Sub

Should work ;)
 
Code:
Private Sub cburl_Change()
If lcase(cburl.Text) = "the underground" Then
    WebBrowser.Navigate "http://www.undergroundtrading.co.nr/"
End If
End Sub

make sure your webbrowser is called webbrowser and NOT webbrowser1
 
Yeah check over the name for your webbrowser

WEBROWSERNAME.navigate ("http://website.com")
 
oh this is easy to fix if you want to use a combo box instead of a textbox

webbrowser1.navigate(combobox1.text)
 
this is easy just double click on your form yes correct you need to put your code in the form and add this code and the web browser will start on that page everytime you turn it on

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
WebBrowser1.Navigate("http://www.runescape.com/")
End Sub

for example just change runescape to whatever website you desire
 
this is easy just double click on your form yes correct you need to put your code in the form and add this code and the web browser will start on that page everytime you turn it on

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
WebBrowser1.Navigate("http://www.runescape.com/")
End Sub

for example just change runescape to whatever website you desire
 
this is easy just double click on your form yes correct you need to put your code in the form and add this code and the web browser will start on that page everytime you turn it on

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
WebBrowser1.Navigate("http://www.runescape.com/")
End Sub

for example just change runescape to whatever website you desire
 
Back
Top