0

Is possible load a Form on base of windows?

if Windows XP load form1
if windows 7 x86 load form2
if windows 7 x64 load form3 
Luca's
  • 353
  • 3
  • 7
  • 11
  • check this out http://stackoverflow.com/questions/2241603/what-is-the-best-way-for-a-winforms-application-to-determine-exactly-which-window – Waqas Sep 09 '11 at 12:15

1 Answers1

5

Yes use System.Environment.OSVersion

System.OperatingSystem osInfo = System.Environment.OSVersion

See this SO question to find out how to interpret the results: How to translate MS Windows OS version numbers into product names in .NET? together with this one: How to detect Windows 64-bit platform with .NET?.

Then just load the appropriate version of the form.

Community
  • 1
  • 1
Preet Sangha
  • 64,563
  • 18
  • 145
  • 216