|
-
Jan 30th, 2006, 09:23 AM
#1
Thread Starter
New Member
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%
-
Feb 14th, 2006, 04:26 AM
#2
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:
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:
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
-
Feb 14th, 2006, 01:27 PM
#3
Thread Starter
New Member
Re: Getting ping to server
Thanks, hopefully that will work.
Current Projects:
Sanctuary Chat - 68%
-
Feb 14th, 2006, 01:35 PM
#4
Re: Getting ping to server
 Originally Posted by ~$o|)~
Thanks, hopefully that will work.
No problem, let us know either way
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|