Delete the internal borders while focusing the tool

  • Thread starter Thread starter ahmeddc
  • Start date Start date
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

1611588.png

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?

1611589.png

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...
 

Similar threads

D
Replies
0
Views
190
David William Smith
D
D
Replies
0
Views
149
David William Smith
D
V
Replies
0
Views
146
Vaishfacer
V
A
Replies
0
Views
70
ahmeddc
A
Back
Top