.NET programming for Terminal Services
Are there any special considerations to be followed when creating .NET programs on MS Terminal Servers? If so, is there a way to detect if the user is running Terminal Services?
Thank you very much.
Are there any special considerations to be followed when creating .NET programs on MS Terminal Servers? If so, is there a way to detect if the user is running Terminal Services?
Thank you very much.
You need to take into account that multiple users could be running your application at the same time. Typically this isn't a problem, most applications can run multiple instances without any changes.
In .NET 2.0 to check if you are currectly running in a Terminal Services session use the following property:
bool terminalServices = System.Windows.Forms.SystemInformation.TerminalServerSession; |