Results 1 to 4 of 4

Thread: [RESOLVED] Custom user url. urgent help needed

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2007
    Posts
    129

    Resolved [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.

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    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)

  3. #3
    Registered User nmadd's Avatar
    Join Date
    Jun 2007
    Location
    U.S.A.
    Posts
    1,676

    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:
    1. Dim ext As String = "showthread.php?t=484500"
    2. Process.Start("http://www.vbforums.com/" & ext)

    EDIT: Not sure what browser you are talking about.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Apr 2007
    Posts
    129

    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
  •  



Click Here to Expand Forum to Full Width