2010-01-21 20 views
1

我必须改变我的胜利形式应用.net framework 3.5的外观和感觉。 所以我想添加窗口7主题或视觉样式,是否有任何示例应用程序可用? 并且还建议如何改变我的应用程序的外观和感觉?如何在winform应用程序中添加窗口7的视觉风格?

+0

另外看看这个Hanselman博客:http://www.hanselman.com/blog/TheWeeklySourceCode45KickingButtOnWindows7AndWindowsXP.aspx – Oliver 2010-04-23 08:00:35

回答

0

写你自己的清单文件。

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> 
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> 
<assemblyIdentity 
    version="9.0.0.0" 
    processorArchitecture="x86" 
    name="ApplicationName.exe" 
    type="win32" 
/> 
<description>YourApplicationName</description> 
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3"> 
    <security> 
     <requestedPrivileges> 
      <requestedExecutionLevel level="asInvoker" uiAccess="false"/> 
     </requestedPrivileges> 
    </security> 
</trustInfo> 
</assembly> 

将其另存为.exe.manifest或将其嵌入到.resx文件中。

相关问题