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:
  1. Dim tempCommand As command
  2.     tempCommand.type = "MSG"
  3.     tempCommand.fromIP = getCurrentIP
  4.    
  5.    
  6.    
  7.     tempCommand.value = "The User, " + userName + " has left the Conversation."
  8.     sendMessageToSelectedUsers tempCommand

Any ideas?


Thanks in advance.