0

i would like to set 'ShowFocusCues' to false

http://msdn.microsoft.com/en-US/library/system.windows.forms.control.showfocuscues(v=vs.80).aspx

protected public:
virtual property bool ShowFocusCues {
    bool get ();
}

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

i tried:

virtual property bool ShowFocusCues {
bool get ();
}

bool ShowFocusCues() override
{
    get
    {
        return false;
    }
}

but both is wrong and complains about 'get' i want to prevent the focus

Community
  • 1
  • 1
NaturalDemon
  • 934
  • 1
  • 9
  • 21

1 Answers1

0

Have you tried something like this.

protected override bool ShowFocusCues { get { return false; } }

This must be included in code of a control class that must hied focus rectangle from being drawn