winform开发中如何去掉按钮的边框.

AndyLee_919 2008-04-12 02:02:36
如题:
1.winform开发中如何去掉按钮的边框.
...全文
1098 15 打赏 收藏 转发到动态 举报
写回复
用AI写文章
15 条回复
切换为时间正序
请发表友善的回复…
发表回复
caoqinghua 2011-09-16
  • 打赏
  • 举报
回复
不要边框就是label呗
pupo 2011-09-16
  • 打赏
  • 举报
回复
还要用pevent.Graphics.DrawString、DrawImage等方法把设置的文字和图标画上去
pupo 2011-09-16
  • 打赏
  • 举报
回复
自己继承一个Button重写画
Public Class MyButton
Inherits System.Windows.Forms.Button

Protected Overrides Sub OnPaint(ByVal pevent As System.Windows.Forms.PaintEventArgs)
MyBase.OnPaint(pevent)
pevent.Graphics.Clear(Me.BackColor)
End Sub

End Class
Cosmo 2011-09-16
  • 打赏
  • 举报
回复
用个div想要什么样式都可以自己写样式了,再在div中加上 runat="server" 在后台就可以用了。。
红衣老大 2011-09-15
  • 打赏
  • 举报
回复
那就不用按钮好了

lable 如何?
暂时不想说 2011-09-15
  • 打赏
  • 举报
回复
[Quote=引用 9 楼 www199046www 的回复:]
在属性里面 自己找吧
[/Quote]
有种你给我找看看
「已注销」 2010-10-14
  • 打赏
  • 举报
回复
这个问题我也在思考!
www199046www 2010-10-14
  • 打赏
  • 举报
回复
在属性里面 自己找吧
你好ABC 2010-10-13
  • 打赏
  • 举报
回复
把Button的FlatStyle属性更改为Flat,然后再把FlatAppearance属性中的BorderSize值改为0
AndyLee_919 2008-04-13
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 CloneCenter 的回复:]
试试Button的FlatStyle属性。
[/Quote]

这个方法不能用.
yuanmanguo 2008-04-12
  • 打赏
  • 举报
回复
[Quote=引用 3 楼 CloneCenter 的回复:]
试试Button的FlatStyle属性。
[/Quote]
CloneCenter 2008-04-12
  • 打赏
  • 举报
回复
试试Button的FlatStyle属性。
  • 打赏
  • 举报
回复
好像得自己绘制
叶子 2008-04-12
  • 打赏
  • 举报
回复
按钮套个样式。
border-bottom-width: 0px;
border-left-width: 0px;
border-top-width: 0px;
border-right-width: 0px;

16,555

社区成员

发帖
与我相关
我的任务
社区描述
VB技术相关讨论,主要为经典vb,即VB6.0
社区管理员
  • VB.NET
  • 水哥阿乐
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧