Click here to Skip to main content
15,886,873 members

Comments by wojjas369 (Top 3 by date)

wojjas369 13-Nov-12 11:27am View    
Thank you. I'm glad you understood.
>> "here the first function is isNameValid. we have passed the textbox string to this. right said???"
Yes, the Text property of TextBox returns a String.
>> "but what output is given out?"
As expected, if string i valid true is returned, else false. Just try it out with the debugger.
wojjas369 13-Nov-12 4:58am View    
Nice, yes, of course, the TextChanged can be used instead. And I like the redirect of focus with textBox2.Focus(); I also thought of suggesting this but not knowing where to focus if both are empty I left it out.
wojjas369 12-Nov-12 17:07pm View    
Hi, does "okhay" mean that your problem is solved?
If not, please specify more precisely what "logic part" you did not understand and I will be glad to try to explain. Maybe you find the type conversion confusing "(TextBox)sender"? Don't worry that you are a beginner we have all been once ;-)