Send Message when user leaves.(Form_Unload)
Ok... I have a Chat Program, and when the User closes their program, I want to send a message saying that the user has left the chat. To do this, I was going to send out a message as if the user had sent it, but it doesn't seem to be sending it. I have this in the form_Unload, if you can make sense of it.
VB Code:
Dim tempCommand As command
tempCommand.type = "MSG"
tempCommand.fromIP = getCurrentIP
tempCommand.value = "The User, " + userName + " has left the Conversation."
sendMessageToSelectedUsers tempCommand
Any ideas?
Thanks in advance.