By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,219 Members | 2,147 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,219 IT Pros & Developers. It's quick & easy.

validating a textbox

P: n/a
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
Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Cor
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.

Nov 20 '05 #2

P: n/a
* =?Utf-8?B?Um9iZXJ0IFNtaXRo?= <an*******@discussions.microsoft.com> scripsit:
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?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.