如何在vb.net/Visual Studio 2010中制作光泽按钮 [英] How to Make Glossy Button in vb.net / Visual studio 2010

查看:97
本文介绍了如何在vb.net/Visual Studio 2010中制作光泽按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

伙计们

有谁知道如何在VB.NET中为Windows窗体创建一个有光泽的按钮

甚至只需更改标准按钮的两种颜色即可.

谢谢Guys

Hi Guys

Does anybody know how to create a glossy button for windows form in VB.NET

Or even just change the two colors of a standard button.

Thanks Guys

推荐答案

您可以使按钮显示位图,或编写代码使其绘制.我不确定您所说的光泽"是什么意思,但是位图是获得照明效果的最佳方法.
You can make your button show a bitmap, or write code to make it draw itself. I''m not sure what you mean by ''glossy'', but a bitmap is the best way to get lighting effects.


使用工具条.将其停靠设置为无,将其夹点样式设置为隐藏,将其渲染模式设置为系统.更改其背景颜色以匹配您的表单,或更改为透明.将其放在您喜欢的表单上,然后添加按钮.在按钮上使用图像和/或文本.它们将没有边界,并且当您将鼠标悬停在它们上面时,它们会弹出并看起来像玻璃一样.适用于图像.

您可以在此处下载我的项目之一,以及操作方法.

希望这会有所帮助...如果这是您的答案,请按绿色按钮.

-皮特
Use a toolstrip. Set it''s dock to none, it''s grip style to hidden, and it''s render mode to system. Change it''s background color to match your form, or to transparent. Place it on your form wherever you like, and add buttons. Use images and / or text on the buttons. They will have no border, and will pop up and look glassy when you mouse over them. Works great with images.

You can download one of my projects here to see it, and how to do it.

hope this helps... and if this is your answer, please hit the green button.

- Pete


这篇关于如何在vb.net/Visual Studio 2010中制作光泽按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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