Click here to Skip to main content
15,884,177 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi All,

I am trying to find the current session state of my system in RDC using SessionSwitchEvent but when I launch my application in RDC, SessionSwithcEvent doesn't fire. So I could not find the session state as RDC. Is there any way to find the session state when running application on RDC.
Posted

1 solution

Myself found the solution. Use below property it will return true if you are in RDC.

System.Windows.Forms.SystemInformation.TerminalServerSession
 
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