DEV Community

loading...

How do I disable the focus-highlight of a C# WinForms element?

baenencalin profile image Calin Baenen ・1 min read

More important issue here!

How do I remove the white?

Before focus:

A button with text in it, that has no white border.

After focus:

A button with text in it, that DOES have a white border.
The worst part is, the focus border doesn't leave if I click off of the button, or go to a different window. It stays indefinitely focused.

I've tried using .ShowFocusCues, but apparently that's readonly (for no good reason).

Discussion (0)

pic
Editor guide