[RESOLVED] Custom user url. urgent help needed
hi folks. i am making a game client and i want it to make so the client will show the stats of a player by them entering the ID.
I want it to make it like this for example
http://gamesite.com/stats/______
and wat ever they write in the text box goes to that dash in the url.
and when they press a button the webbrowser goes to that url.
how would i do this. i must say i am very new to visual basic.
Re: Custom user url. urgent help needed
Well you didn't state the version of Visual Basic you are using, or if you are using the webbrowser control or launching an external webbrowser, so I will go ahead and assume the likely scenario of Visual Studio 2005 and you are using the webbrowser control on a form.
This code would do it.
Code:
webbrowser1.navigate("http://gamesite.com/stats/" & textbox1.text)
Re: Custom user url. urgent help needed
Hi there,
You can use the Process.Start method to open the default web browser to a certain page and pass whatever page you like, including your path. For example:
vb.net Code:
Dim ext As String = "showthread.php?t=484500"
Process.Start("http://www.vbforums.com/" & ext)
EDIT: Not sure what browser you are talking about. ;)
Re: Custom user url. urgent help needed
ahhhhh. that makes sense. thanks guys. i really appreciate it.