如何创建漂亮的控件?
我发现一个软件使用的很好的控件,所以想在 vb.net 中为我的应用程序使用或构建类似的漂亮控件
第一个示例控件是漂亮的圆角组框 [我猜是这样]: http://sachicomputer.com/kabin/samples/control1.jpg
和第二个控件看起来很漂亮的选项卡控件:
http://sachicomputer.com/kabin/samples/control1.jpg< /a>
编辑:
是的,我尝试了enablevisualstyles,但没有显示出任何差异。我需要与它结合运行其他命令吗?我发现我的程序仍然显示相同的旧外观,但其他应用程序显示 Office 2007 外观。那么如何才能做到呢?
我正在Windows 2003服务器上测试它。
I found a nice controls used by a software so wanted to use or build similar nice looking controls for my applications in vb.net
First Sample control is nice rounded cornor group box [ i guess so ]:
http://sachicomputer.com/kabin/samples/control1.jpg
and second control is nice looking tab control:
http://sachicomputer.com/kabin/samples/control1.jpg
Edited:
Yeah I tried enablevisualstyles but it didn't show any difference. Do i need to run other commands in conjucation with it? I found my program still displaying same old look but other one application showing office 2007 look. So how can it be done?
I am testing it in windows 2003 server.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你必须自己画很多画。此 MSDN 部分涉及自定义控件绘制和渲染 以及控件的文档。 Region 有一个用于制作圆形按钮的示例,您可以对其进行调整。
我建议也看看 codeproject 网站,很多人都在那里写过关于自定义各种控件
You'll have to do quite a bit of drawing by yourself. This MSDN section deals with Custom Control Painting and Rendering and the documentation for Control.Region has a sample for making round buttons that you might be able to adapt.
I'd suggest having a look at the codeproject site as well, a lot of people have written articles there about customizing various controls