validating a textbox

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,
I have a text box called txtOrder and I wish to validate the entry that the user enters into it. The txtOrder_validated
event deals with this validation when the user presses enter and inputting data. However if the user enters a value and just clicks on another form for example what event of the text box is triggered. Is it the Leave event, if so how do I activate the leave event of the text box.

Regards

Robert
 
Hi Robert,

I think you mean Lostfocus?

Cor
Hello,
I have a text box called txtOrder and I wish to validate the entry
that the user enters into it. The txtOrder_validated
event deals with this validation when the user presses enter and
inputting data. However if the user enters a value and just clicks on
another form for example what event of the text box is triggered. Is it the
Leave event, if so how do I activate the leave event of the text box.
 
* =?Utf-8?B?Um9iZXJ0IFNtaXRo?= said:
I have a text box called txtOrder and I wish to validate the entry
that the user enters into it. The txtOrder_validated event deals with
this validation when the user presses enter and inputting data. However
if the user enters a value and just clicks on another form for example
what event of the text box is triggered. Is it the Leave event, if so
how do I activate the leave event of the text box.

'LostFocus' or 'Leave'. What's the problem in adding a handler to this
event?
 
Back
Top