If I made a connection to a server remotely, how could I disable the connect button until the information had sent (using a different button) completely?
Printable View
If I made a connection to a server remotely, how could I disable the connect button until the information had sent (using a different button) completely?
which information exactly? the command to build up a connection? or do you want to disable the connect button while being connected? To prevent the user to click connect when he is connected already?
you can do somthing like this:
Private Sub clientsck_Connect()
Command1.enabled = False
'Command1 is the connect button.
End Sub
------------------
Razzle
ICQ#: 31429438
What is the difference between a raven?
-The legs. The length is equal, especially the right one. :D
That worked ....thanks.,
to re-enable it, just check the state of the winsock control,maybe in a timer, and if it's not sckConnected set command1.enabled = True
------------------
Razzle
ICQ#: 31429438
What is the difference between a raven?
-The legs. The length is equal, especially the right one. :D