Simple Man
Member
- Joined
- Jul 7, 2010
- Messages
- 13
- Programming Experience
- 5-10
Is there a more efficient/easier way changing the backcolor of a control when it has focus and lost focus?
Let's say I've got 10 text boxes. Right now I would have 20 different events...10 for Enter event and 10 for Leave event. Of course, entering would change the back color to "green" and leaving would change it back to "white".
Is there another method of doing this?
Keep in mind, there could be multiple comboboxes, textboxes, etc.
Thanks.
Nick
Let's say I've got 10 text boxes. Right now I would have 20 different events...10 for Enter event and 10 for Leave event. Of course, entering would change the back color to "green" and leaving would change it back to "white".
Is there another method of doing this?
Keep in mind, there could be multiple comboboxes, textboxes, etc.
Thanks.
Nick