|
-
Jul 31st, 2002, 04:44 AM
#1
Thread Starter
PowerPoster
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.
-
Jul 31st, 2002, 04:52 AM
#2
Retired VBF Adm1nistrator
Normally its the software on the other clients' machines that tells the user that another user has left.
Thats the way IRC works
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Jul 31st, 2002, 04:54 AM
#3
Thread Starter
PowerPoster
Nevermind, DoEvents did the trick 
Yeah... it will update in a Listbox, but this is easier and allows users to notice when they leave....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|