Hi ,
你可以这样将方形按钮变成圆形:
Button1.FlatStyle = FlatStyle.Flat
Button1.FlatAppearance.BorderSize = 0
Button1.BackColor = Color.LightGray
Dim p As GraphicsPath = New GraphicsPath()
p.AddEllipse(1, 1, Button1.Width - 4, Button1.Height - 4)
Button1.Region = New Region(p)
或者如果你需要更详尽的解决方案,请参考以下链接:
RoundButton Windows Control - Ever Decreasing Circles
考虑到链接中的代码是C#,你可以将其转换成VB.NET.
以上希望对你有帮助。
Best Regards,
Xingyu Zhao
Visual Basic and CLR forum will be migrating to a new home on Microsoft Q&A! (VB.NET and
CLR) We invite you to post new questions in the new home on Microsoft Q&A ! For more information, please refer to the sticky post(VB.NET
and
CLR).