Results 1 to 3 of 3

Thread: over and over and over and over again.

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2001
    Posts
    746

    over and over and over and over again.

    under a command button i have the following code:
    VB Code:
    1. W3.Connect "google.com", 80
    2. Do
    3. DoEvents
    4. Loop While W3.State <> sckConnected
    5. W3.SendData "GET /" & vbCrLf

    in the w3 close event i have:
    VB Code:
    1. msgbox "hi"

    when i press the command button it waits a bit and then it keeps showing the messsage boxes over and over and over again and it doesnt seem to stop. why? shouldnt it only close once?
    FlameWave Technologies - internet tools

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    Aug 2001
    Posts
    746
    oh and W3 is a winsock
    FlameWave Technologies - internet tools

  3. #3
    Lively Member
    Join Date
    Feb 2001
    Posts
    78
    Really odd that, It seems to be something to do with geocities.com, this is the only way have found to fix it:

    Code:
    Private Sub W3_Close()
            MsgBox "Hi"
            W3.Close
    End Sub

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