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?