|
-
Aug 17th, 2007, 03:20 PM
#1
Thread Starter
Addicted Member
[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.
-
Aug 17th, 2007, 03:22 PM
#2
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)
-
Aug 17th, 2007, 03:23 PM
#3
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.
-
Aug 17th, 2007, 03:31 PM
#4
Thread Starter
Addicted Member
Re: Custom user url. urgent help needed
ahhhhh. that makes sense. thanks guys. i really appreciate it.
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
|