I am using a textbox control array and the text boxes should only accept real numbers. I am validating the user input at the lost focus event of the textbox control. The problem is that even when user presses Cancel Button the textbox lostfocus event is call and the validation is done. I don't want the validation to occur when user presses cancel button. How can I achieve this behaviour.
Is there a better event in which I can do the validation, but I must validate the input before user enter another control.
Secondly if I validate the user input in the lost focus event for a textbox control array, the lost focus event keeps on trigering, although it a should triger only once. If I put a break point in the lostfocus event the the behaviour is OK. How can I fix this problem.
Finally when I use the setfocus method of a text box only the cursor moves to that textbox. I want the text to be highlighted also. How can I do that?

I would be greatfull for your help in this regard

Ali.