PDA

Click to See Complete Forum and Search --> : how to send message thru winsock


kulitag
Apr 21st, 2005, 11:28 PM
i have this code
Winsock1.Bind 1027
Winsock1.RemoteHost = Label1.Caption 'computer name
Winsock1.RemotePort = 7
Winsock1.SendData Text1.Text

but it has an error like "invalid operation at current state"

viper3d4u
Apr 22nd, 2005, 10:42 AM
before the bind

"Winsock1.bind 1027"

write

"Winsock1.close"

Credit to pino :D