A
ahmeddc
Guest
hi
I created a circular button as follows and I had a problem
how to Delete the internal borders while focusing the button
button without focus
When focusing on the button or Or move between tools with a button tab
, the border frame appears in this way, so how can it be hidden or changing its color?
code round
Private Sub Button1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Button1.Paint
Dim buttonPath As New System.Drawing.Drawing2D.GraphicsPath
Dim newRectangle As Rectangle = Button1.ClientRectangle
newRectangle.Inflate(-2, -2)
buttonPath.AddEllipse(newRectangle)
Button1.Region = New System.Drawing.Region(buttonPath)
End Sub
My attempt without result
button1.FlatAppearance.BorderSize = 0
Continue reading...
I created a circular button as follows and I had a problem
how to Delete the internal borders while focusing the button
button without focus
When focusing on the button or Or move between tools with a button tab
, the border frame appears in this way, so how can it be hidden or changing its color?
code round
Private Sub Button1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Button1.Paint
Dim buttonPath As New System.Drawing.Drawing2D.GraphicsPath
Dim newRectangle As Rectangle = Button1.ClientRectangle
newRectangle.Inflate(-2, -2)
buttonPath.AddEllipse(newRectangle)
Button1.Region = New System.Drawing.Region(buttonPath)
End Sub
My attempt without result
button1.FlatAppearance.BorderSize = 0
Continue reading...