如何在XP/VISTA中创建样式设置为控件的应用程序 [英] How to create an application where the controls are styled as in XP / VISTA
本文介绍了如何在XP/VISTA中创建样式设置为控件的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨!
我想创建一个应用程序,其中控件的样式与Vista/Xp面板中的样式相同.我该怎么办?
请为我指出一些示例和/或教程.
Hi!
I want to create an application where the controls are styled as in Vista/Xp panel. How can I do that?
Please point me to some examples and/or tutorials.
Thanks in advance!
推荐答案
每天重新发布此消息有什么意义?您已经有2个线程在这两个线程上得到了回答:
What''s the point in reposting this daily? You already have 2 threads on this, both of which were answered:
- 如何获得此设计? [ ^ ]
- 如何在VC#中使用xp面板样式? [ ^ ]
- how to obtain this design?[^]
- How to use xp panel style in VC#?[^]
请注意,您必须从一些东西开始.这里没有快速的解决方案,有人可以给您上一堂课,您可以在其中做new class().ShowSuperUI()
.完全不能那样工作.
Note that you''ve got to start with something. There''s no quick solution here where someone gives you a class where you can just do new class().ShowSuperUI()
. Doesn''t work that way, not at all.
您需要在计算机上安装Vista/Xp,并且主题应设置为Vista/Xp.控制到System.In Main()方法
You need to install Vista/Xp on your machine and the theme should be set to Vista/Xp.Change the FlatStyle property of the control to System.In Main() method
static void Main()
{
Application.EnableVisualStyles();
Application.DoEvents();
Application. Run(new Form1());
}
这篇关于如何在XP/VISTA中创建样式设置为控件的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文