Iam developing visual studio window application i have lot o textbox in it how can i validate when the user enter the value,if it is in web form means i can easily validate using javascript.please help me how can test it whether if correct or not and another thing id iam not want to validate the testbox indivitually please sent me the logic using looping condition or something else
i cant understand your question completly. any how i am giving you a suggesstion.it can help you.
as you have told that you have a lot of textboxes.you can make a sub routien add handler to that sub routien for all textbox controle's key press events. like this
Public Function ValidateControle(you can mentioned Parameters here) hadles textbox1.keypress,textbox2.keypress............... ..................
'Here you will write your entire logic
End Function
now call this function at your required event.