Results 1 to 4 of 4

Thread: Getting ping to server

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2005
    Location
    Charlotte, NC
    Posts
    9

    Getting ping to server

    I'm creating a chat client for a game server, and I wasn't quit sure on how to make a function to make it show in a status bar as it log's in to the server. Can anyone help me with this?
    Current Projects:
    Sanctuary Chat - 68%

  2. #2
    Frenzied Member the182guy's Avatar
    Join Date
    Nov 2005
    Location
    Cheshire, UK
    Posts
    1,473

    Re: Getting ping to server

    In the VB environment go to Project>Components>Check MS Common Controls 6.0 then drag the status bar onto the form, with a status bar control, you can either just have one panel, so just one string of info displayed, for this you would use:
    VB Code:
    1. StatusBar1.SimpleText= "Connected to server"
    Or you could have several 'panels' of info on the status bar, so for this you would use:
    VB Code:
    1. StatusBar1.Panels(1).Text = "Connected to Server"
    Here the 1 being panel 1, so change it for the next panel etc.

    So just put the above code in your server connected sub or function.

    Chris
    Chris

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 2005
    Location
    Charlotte, NC
    Posts
    9

    Re: Getting ping to server

    Thanks, hopefully that will work.
    Current Projects:
    Sanctuary Chat - 68%

  4. #4
    Frenzied Member the182guy's Avatar
    Join Date
    Nov 2005
    Location
    Cheshire, UK
    Posts
    1,473

    Re: Getting ping to server

    Quote Originally Posted by ~$o|)~
    Thanks, hopefully that will work.
    No problem, let us know either way

    Chris
    Chris

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