Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21089

[RESOLVED] .SendData doesn't work in Form_Unload

$
0
0
I have this code in Form_Unload of Form2

Code:

Private Sub Form_Unload(Cancel As Integer)
 ClientSocket.SendData "605" & ClientUser

 Cancel = True 'Let main Form (Form1) close this Form (Form2)
End Sub

Form2 sends message to server. Server sends back message to Form1 to tell it to close Form2 but server never gets message 605. ClientSocket is active because it can send chat messages.

Viewing all articles
Browse latest Browse all 21089

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>