简体   繁体   English

Windows窗体上的Windows窗体加载

[英]Windows Forms load on base of Windows

Is possible load a Form on base of windows? 可以在Windows上加载表格吗?

if Windows XP load form1
if windows 7 x86 load form2
if windows 7 x64 load form3 

Yes use System.Environment.OSVersion 是的,使用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? 看到这个SO问题,以了解如何解释结果: 如何将MS Windows OS版本号转换为.NET中的产品名称? together with this one: How to detect Windows 64-bit platform with .NET? 与此一起: 如何使用.NET检测Windows 64位平台? .

Then just load the appropriate version of the form. 然后,只需加载表格的相应版本即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM