创建自定义形状按钮 [英] create custom shaped button

查看:86
本文介绍了创建自定义形状按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何制作自定义形状的按钮?



例如:

windows 7登录界面显示''Go''按钮这是''圆''而不是矩形或方形。



我只是从按钮属性中为我的按钮选择一个''flat''外观并提供一个看起来圆的背景图像?或者我必须做别的什么?

how do i make a custom shaped button?

example:
windows 7 login screen shows the ''Go'' button which is ''round'' and not rectangular or square.

do i just select a ''flat'' appearence for my button from the buttons properties and provide a backgrpond image that looks ''round''? or do i have to do something else?

推荐答案

我假设您需要winform应用程序。因此,这篇MSDN文章向您展示了如何操作。使用Region的圆角按钮控件的属性 [ ^ ]
I am assuming that you needed for winform application. So this MSDN article shows you how to do so. A Rounded button using Region property of the control[^]


查看自定义带颜色和形状的按钮 [ ^ ]。



对于自定义按钮,WPF可能是最佳选择。
Have a look at Custom Button with Color and Shape[^].

For custom button, WPF maybe the way to go.


这篇关于创建自定义形状按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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