DEV Community

Calin Baenen
Calin Baenen

Posted on

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

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

Top comments (0)