Check control focus and change backcolor
Posted on 2009-05-05
I was wondering if there is a easy way of doing this.
I would like to change the BackColor of the control on a windows Form that has the focus. When the control has the Focus, I would like the BackColor to be say Yellow; when the control looses focus I would like the BackColor to go back to White.
I know I could use the GotFocus event of each control but If I have 20 controls on a form that would not be a good pratice to do like that.
Thanks for your sugestions.