When using a dotNetControl CheckBox or Button (actually any UI dotnetcontrol), an additional 1 pixel border appears after the user has pressed the TAB or ALT button on the keyboard and this controls is in focus (when the mouse is clicked). How can I disable this border showing that the dotnetcontrol has focus? Using the .TabStop=false property didn’t help.
Before pressing TAB or ALT:

After pressing TAB or ALT:

For the example above, I used this code:
rollout dnb "" width:323 height:114
(
dotNetControl btn1 "button" pos:[4,5] width:152 height:105
dotNetControl btn2 "button" pos:[164,5] width:152 height:105
on dnb open do
(
btn1.flatstyle = (dotnetclass "System.Windows.Forms.Flatstyle").flat
btn1.Text = "A Flat DotNet Button!!"
btn1.TextAlign = (dotnetclass "system.drawing.contentalignment").bottomcenter
btn1.flatappearance.MouseoverBackColor = (dotnetclass"System.Drawing.color").yellow
btn1.flatappearance.MousedownBackColor = (dotnetclass"System.Drawing.color").limegreen
btn2.flatstyle = (dotnetclass "System.Windows.Forms.Flatstyle").popup
btn2.Text = "A Popup DotNet Button!!"
btn2.TextAlign = (dotnetclass "system.drawing.contentalignment").topcenter
)
)
createdialog dnb
