[VB6]Webbrowser1 wierd error..
Okay, I wont try to cover it up. I am started on "real" runescape again, and I wanted to make a handly little program, so I don't have to open Firefox and blah blah blah.
When I try to run my program it runs fine. I made a 2nd form, that has a text box where I can put the number of my desired world, and a text box to send the text in the middle of a URL, and its surpposed to direct the webbrowser square that I've added to form1, but it gives me an error and highlights this part:
Private Sub Command1_Click()
browser1.Navigate ("http://world" & Text1.Text & ".runescape.com/m1")
End Sub
No clues.. Help please? :blushing:
Re: [VB6]Webbrowser1 wierd error..
Re: [VB6]Webbrowser1 wierd error..
Maybe it's supposed to be webbrowser1.navigate instead? Lolz, just something wrong with object names.
Re: [VB6]Webbrowser1 wierd error..
You said your on form 2 with the text box right?
Try this.
Private Sub Command1_Click()
form1.browser1.Navigate ("http://world" & Text1.Text.Trim & ".runescape.com/m1")
End Sub
I'm not sure cuz I use .NET 2008
Re: [VB6]Webbrowser1 wierd error..
btw; your URL seems incorrect.
it's world[nr].runescape.com/game.ws?m=1&j=1 for members and ?m=0 for f2p
Re: [VB6]Webbrowser1 wierd error..
Quote:
Originally Posted by
XZeenon
You said your on form 2 with the text box right?
Try this.
Private Sub Command1_Click()
form1.browser1.Navigate ("http://world" & Text1.Text.Trim & ".runescape.com/m1")
End Sub
I'm not sure cuz I use .NET 2008
You're 100% correct, I think.
I'm no vB master, but if you try to start and exe with an error, blah.
Since XZeenon is a pro vb coder, I'd go with him ;)
Re: [VB6]Webbrowser1 wierd error..
Well I got everything to work the same day. Big help from Monsta. :)
But thanks for contributing!