如何创建类似Windows7的控件? [英] How to create Controls like windows7?

查看:83
本文介绍了如何创建类似Windows7的控件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Windows XP操作系统.
我想将.Net控件(按钮,窗体等)的视觉样式更改为window7
换句话说,如何使控制变得透明?

I am using operating system Windows XP.
I want to change the visual style of .Net Controls(Button, Form & etc) to window7
In other words How to make control transparant?
Is there any way to do this?

推荐答案

不确定"Windows 7"视觉样式的含义是什么...许多Windows 7窗口和控件仍然看起来像我的常规WinForms控件.尽管这也取决于您的Windows设置.
要获得更现代的外观,您可以使用 WPF [ ^ ],但是如果您不习惯这种编程,那将是一个艰难的学习过程.
如果要在WinForms中获得相同的结果,可以创建自己的控件 [ ^ ],但这并不是一件容易的事.许多公司为不同的平台创建了自己的控件库.我目前正在使用 DevExpress WinForms控件 [ ^ ]在工作中,它看起来比标准WinForm控件要好得多.
Not sure what you mean with the "Windows 7" visual style... Many Windows 7 windows and controls still look like regular WinForms controls to me. Although this also depends on your Windows settings.
To get a more modern look and feel you can use WPF[^], but if you are not used to that kind of programming it can be a difficult learning curve.
If you want to get the same results in WinForms you could create your own Controls[^], but that is no easy task. Many companies have created their own Controls library for different platforms. I am currently using DevExpress WinForms Controls[^] at work, which look a lot better than the standard WinForm Controls.


这篇关于如何创建类似Windows7的控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆