Results 1 to 4 of 4

Thread: Making a connection

  1. #1
    Guest

    Post

    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?

  2. #2
    Addicted Member Razzle's Avatar
    Join Date
    Jan 2000
    Location
    Berlin, Germany
    Posts
    161

    Post

    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.

  3. #3
    Guest

    Post

    That worked ....thanks.,

  4. #4
    Addicted Member Razzle's Avatar
    Join Date
    Jan 2000
    Location
    Berlin, Germany
    Posts
    161

    Post

    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.

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