G
Guest
I have a text box (several actually) that I need to validate. Some of the
conditions is that it can't be empty, it can only contain numeric characters
and optionally dashes, etc. One of the problems is that once a user has
started entering text in this text box, unless it is valid input focus stays
on that control. I would like for there to be a way for the user to "get out"
of the control. Typically I would expect that hitting <ESC> would do that but
I don't see an event like for DataGridView where there is a CellEndEdit event
for a text box. Another problem is that if the user hits <ENTER>, notihing
happens. Again I would expect for the validating event to fire but it
doesn't. Is there a more robust way of validating text box input?
Thank you.
Kevin
conditions is that it can't be empty, it can only contain numeric characters
and optionally dashes, etc. One of the problems is that once a user has
started entering text in this text box, unless it is valid input focus stays
on that control. I would like for there to be a way for the user to "get out"
of the control. Typically I would expect that hitting <ESC> would do that but
I don't see an event like for DataGridView where there is a CellEndEdit event
for a text box. Another problem is that if the user hits <ENTER>, notihing
happens. Again I would expect for the validating event to fire but it
doesn't. Is there a more robust way of validating text box input?
Thank you.
Kevin