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

后端 未结 12 1111
鱼传尺愫
鱼传尺愫 2020-11-28 08:39

I have a couple of buttons of which I modified how they look. I have set them as flat buttons with a background and a custom border so they look all pretty and nothing like

12条回答
  •  失恋的感觉
    2020-11-28 09:33

    Certainly you can draw the button yourself. One of the state flags is focused.

    So on the draw event if the flag is focused go ahead and draw the button how you like, otherwise just pass it on to the base method.

提交回复
热议问题