关于如何在.net下使用XP Style界面

来源:不详 责任编辑:栏目编辑 发表时间:2013-07-01 03:39 点击:
关键字:.net下使用XP Style界面 -------------------------------------------------------------------------------
 
MSDN中关于这方面的介绍请看文章:
http://msdn.microsoft.com/library/index.asp?url=/library/en-us/dnwxp/html/xptheming.asp

文中对如何实现XP Style的解释是:
    If you want your application to use visual styles, you must add an application manifest that indicates that ComCtl32.dll version 6 should be used if it is available. Version 6 includes some new controls and new options for other controls, but the biggest change is support for changing the appearance of controls in a window.


要想使用XP Style,最简单的办法是创建一个.manifest文件。文件必须与目标程序在同一个文件夹(例如你的工程的\bin文件夹),并且名字必须是
MyApp.exe.manifest,其中红色部分是你的程序文件名。文件的内容如下:


<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" processorArchitecture="X86"

    发表评论
    请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
    用户名: 验证码:点击我更换图片
    最新评论 更多>>

    推荐热点

    • 浅析.NET下XML数据访问新机制
    • asp.net 面试+笔试题目第1/2页
    • C# 邮件地址是否合法的验证
    • asp.net 设置GridView的选中行的实现代码
    • C#高级编程:数据库连接[1]
    • 经典C++程序1
    • IIS 自动回收导致后台定时器失效的问题解决
    • ASP.NET&#160;GridView列表代码示例
    • Asp.net MVC源码分析--Action Filter的链式调用
    网站首页 - 友情链接 - 网站地图 - TAG标签 - RSS订阅 - 内容搜索
    Copyright © 2008-2015 计算机技术学习交流网. 版权所有

    豫ICP备11007008号-1