DEV Community


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

Calin Baenen
I'm a programmer born on October 30th, 2006. I love programming, it has, and always will be my passion.
・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)

Forem Open with the Forem app