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?
Printable View
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?
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:
Or you could have several 'panels' of info on the status bar, so for this you would use:VB Code:
StatusBar1.SimpleText= "Connected to server"
Here the 1 being panel 1, so change it for the next panel etc.VB Code:
StatusBar1.Panels(1).Text = "Connected to Server"
So just put the above code in your server connected sub or function.
Chris
Thanks, hopefully that will work.
No problem, let us know either wayQuote:
Originally Posted by ~$o|)~
Chris