How to set/change/remove focus style on a Button in C#?

Is this the effect you are looking for?

public class NoFocusCueButton : Button
{
    protected override bool ShowFocusCues
    {
        get
        {
            return false;
        }
    }
}

You can use this custom button class just like a regular button, but it won’t give you an extra rectangle on focus.

Leave a Comment