对按钮重新绘制
2007-10-07 12:58
197 查看
Private Sub Button2_Paint()Sub Button2_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Button2.Paint
Dim MyGp As New System.Drawing.Drawing2D.GraphicsPath
MyGp.AddEllipse(New Rectangle(-50, -50, 125, 125))
MyGp.AddEllipse(New Rectangle(55, 55, 20, 20))
' MyGp.AddEllipse(New Rectangle(0, 0, 125, 125))
'MyGp.AddEllipse(New Rectangle(0, 0, 125, 125))
Button2.BackColor = Color.Blue
Button2.BackgroundImage = Image.FromFile("F:壁纸 _6289.jpg")
MyGp.AddString("中华人民共和国", New FontFamily("宋体"), FontStyle.Regular, 15, New PointF(5, 40), StringFormat.GenericDefault)
'Button2.Size = New Size(256, 256)
Button2.Region = New Region(MyGp)
End Sub
相关文章推荐
- 重新绘制TabControl的Tabpage标签,添加图片及关闭按钮
- 重新绘制TabControl的Tabpage标签,添加图片及关闭按钮
- 自绘制按钮初探一
- 用CSS3/JS绘制自己想要的按钮
- 绘制屏幕时给单选按钮分组
- ZedGraph控件重新绘制时需要注意的…
- 重新绘制焦点到某控件*(js实现)
- Android开发--圆角按钮和绘制直线的实现
- Android:使用PathMeasure绘制动画效果的搜索按钮
- 自绘制按钮的实现
- Win8.1重新引回开始按钮想知道这个开始按钮应该怎么改
- android--ImageView绘制开关按钮
- IE 7 重新绘制页面视乎有双缓冲处理!
- Qt下 圆形按钮的绘制
- 自绘制按钮(通过重载DrawItem函数实现)
- bootstrapValidator 重新启用提交按钮的方法
- 【转】Android使用XML Shape绘制带阴影效果的圆形按钮
- Android开发中在drawable中自定义绘制图形作为按钮背景.txt
- 使用rxjava2实现验证码重新发送按钮的倒计时
- 重新想象 Windows 8 Store Apps (2) - 控件之按钮控件: Button, HyperlinkButton, RepeatButton, ToggleButton, RadioButton, CheckBox, ToggleSwitch