Click here to Skip to main content
15,891,940 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello

I am developing a window application i want to display some popup message in my window form when a new user login in to the system and also to display a popup message when the new user got some message from the user who already logged.

How can i do this Can Anyone help in this regard.

Thanks
Posted

1 solution

The easiest way to display a message is using MessageBox.Show()[^]. You will decide where to show this messages, because it depends on your application login/logout logic :)
 
Share this answer
 
Comments
venkataramreddy 7-Jun-10 2:48am    
Hello
Actually i want to display some popup messages when a new user logs into his system with user id and password and sends notification to that user using c#
Nuri Ismail 7-Jun-10 3:21am    
In that case you will need to write your service which deals with SystemEvents: http://msdn.microsoft.com/en-us/library/z1bwe429%28v=VS.100%29.aspx.

This thread could also be useful for you: http://stackoverflow.com/questions/2318442/how-to-capture-logoff-event-using-a-windows-service-in-c

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900