Please tell me ways to detect Windows XP or 98 or 2000 or Me in C# code, like this:
#if defined('WINDOWS_XP')
//...
#endif
Thanks for your response.
Please tell me ways to detect Windows XP or 98 or 2000 or Me in C# code, like this:
#if defined('WINDOWS_XP')
//...
#endif
Thanks for your response.
How to detect Windows XP, 98, 2000, me by pre-compiled directives or some ways
GrayMatter Software
But if you like the program to react on the users OS version, you can use the Environment.OSVersion to determine the current operating system.