Changing Textbox Background color upon gaining focus
-
Hi, Thanks for looking. I'm trying to determine how to change the background color of a textbox when the focus is given to a textbox. Changing the color is easy. How do I determine who has the focus so I can change the color? Can someone help me? Thanks.
-
Hi, Thanks for looking. I'm trying to determine how to change the background color of a textbox when the focus is given to a textbox. Changing the color is easy. How do I determine who has the focus so I can change the color? Can someone help me? Thanks.
On the "Enter" event, you can set the background color of the event source. My latest articles: XOR tricks for RAID data protection Win32 process suspend/resume tool
-
Hi, Thanks for looking. I'm trying to determine how to change the background color of a textbox when the focus is given to a textbox. Changing the color is easy. How do I determine who has the focus so I can change the color? Can someone help me? Thanks.
Opps, sorry. Stealing bandwidth here. Here's what I found... Double click in the control. Delete the function the IDE creates. Select the "GotFocus" command in the right hand drophand list box in the IDE. A new function will appear. Type in: ctrlName.BackColor = {{valid color code}} Thanks anyway.