Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear All,

Is there any possibility to let the textBox or textbox color

blinking when we press button without entered data at text. without timer

this one is possible or not ??

If yes: how do I do that?

if no: thanks for reading!

Thanks & Regards

Dhinesh Kumar.V
Posted
Updated 25-Aug-12 4:10am
v3

You can't make things blink without a timer, no. There's no blink functionality built in to the textbox.
 
Share this answer
 
Comments
Dhinesh kumar.V 25-Aug-12 10:11am    
Thanks for your comment...

Dhinesh kumar.V
Not sure why you don't want to use the timer but if you like, you can always have another thread running which would track the elapsed time and toggle the properties of a textbox. For this purpose you can use for example a BackgroundWorker[^].

Just remember that depending on the technology you may not update the properties of a UI control from another thread so you need to check if invoke is required (or similar, again depending on the UI technology).
 
Share this answer
 
The first two answers are good. But check this link
http://ganeshmohan.wordpress.com/c-windows-validation-by-errorprovider-control/[^]. It helps how to show validation on control.
--NDK
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900