创建custon按钮 [英] creating custon buttons

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

问题描述

我想知道如何创建自己的按钮,比如独特的

形状等。我知道一个方法,但我不知道怎么...

i was wondering how i could create my own buttons, like with unique
shapes and such. i kno theres a way but i dont kno how...

推荐答案

iwdu


来自旧的来自Herfried的消息,请注意该地区仅适用于

24Kbits颜色设置,而不是W98 / Me.


\\\ >
Dim intDiameter As Integer = 300

Me.Height = intDiameter

Me.Width = intDiameter

Dim p As New Drawing2D .GraphicsPath()

p.AddEllipse(0,0,intDiameter,intDiameter)

Me.Region =新区域(p)

Me .BackColor = Color.Red

///

我希望这会有所帮助,

Cor
iwdu

From an old message from Herfried, be aware that region only works on
24Kbits color setting and not on W98/Me.

\\\
Dim intDiameter As Integer = 300
Me.Height = intDiameter
Me.Width = intDiameter
Dim p As New Drawing2D.GraphicsPath()
p.AddEllipse(0, 0, intDiameter, intDiameter)
Me.Region = New Region(p)
Me.BackColor = Color.Red
///
I hope this helps,
Cor

没有创建按钮....我不知道如果我解释自己的仪式但是喜欢,

从头创建一个按钮,所以我可以在事件中使用它,它可以是任何

shape等
that didnt create a button....i dunno if i explained myself rite but like,
create a button from scratch so i can use it in events and it can be any
shape and such


继承控件中的buttonbase类,如果你需要任何标准的

形状,请查看controlpaint用于绘制3D边框等内容的类,

在Windows中常见的字形(箭头,形状等)

" iwdu15" < IW **** @ discussions.microsoft.com>在留言中写道

news:84 ********************************** @ microsof t.com ...
inherit the buttonbase class in a control, and if you need any standard
shapes look at the controlpaint class to draw things like 3D boarders,
glyphs (arrows, shapes, etc) that are common in windows
"iwdu15" <iw****@discussions.microsoft.com> wrote in message
news:84**********************************@microsof t.com...
没有创建按钮....我不知道如果我解释自己的仪式但是喜欢,
从头创建一个按钮,这样我就可以在事件中使用它它可以是任何形状等
that didnt create a button....i dunno if i explained myself rite but like,
create a button from scratch so i can use it in events and it can be any
shape and such



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

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