VB.net 圆形 按钮
我给按钮添加两张png格式照片作为背景,当鼠标移动到按钮上面时切换图片以达到动态效果,现在问题是:怎样令到按钮的边框自适应的随图片的边框成为圆形啊?我已经将按钮的FlayStyle设为Flat了,而且FlatAppearance中的BorderSize也设为0了,但是,运行的时候还是有按钮的边框.求解!在线等............初始运行图:
Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Button1.BackgroundImage = My.Resources.a End Sub Private Sub Button1_MouseLeave(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.MouseLeave Button1.BackgroundImage = My.Resources.a End Sub Private Sub Button1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Button1.MouseMove Button1.BackgroundImage = My.Resources.b End Sub End Class