Click here to Skip to main content
15,892,575 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hi all,

I want the logon event to fire in my application when a user login to his machine after logoff or restart his machine in C# or VB.net.


Thanks,
Ram
Posted
Updated 24-Aug-11 21:01pm
v2
Comments
Uday P.Singh 25-Aug-11 2:25am    
your question is vague, elaborate it, what event you want to fire?
rambuzz 25-Aug-11 3:00am    
Hi,

I want the logon event to fire in my application when a user login to his machine after logoff or restart his machine.
walterhevedeich 25-Aug-11 2:53am    
Events are fired when you do something to a control, like click a button.
Oludayo Alli 26-Aug-11 1:14am    
Do you mean you want your login windows to show on restart or you want the user to be logged on automatically or what?

could you please send me the code for this
 
Share this answer
 
You'll have to use the Windows API for that, have a look at
WTSRegisterSessionNotification Function[^]
or SENS Reference[^]
 
Share this answer
 

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