views:

185

answers:

3

Highlight, just like when you hover over to the button, its being highlighted. But how do you retain the highlight when you have clicked the button?

+2  A: 

I don't know exactly why do you need this behaviour, but maybe you could use another control instead of Button. You could use CheckBox, with the appearance of a button. You can change this appearance in the properties window of the checkbox.

If you don't want to use this option, just let me know :-)

Javier Morillo
+1  A: 

It is not much of a functional spec. When it is supposed to turn off? Anyhoo, use a CheckBox, set Appearance = Button, AutoSize = False, TextAlign = MiddleCenter.

Hans Passant
+1  A: 

If this is WPF or Silverlight, you can simply re-template the Button control, and change the "Normal" state to match the "MouseOver" state. Not sure what you're using though?

Steve Danner
this is only a winform