Determine what caused item to loose focus

G

Guest

Our program uses .net cf 1.0

We have form validation that executes every time an item looses focus.
However the one time we don't want validation to execute is if the item
looses focus because the user hits the CANCEL button. Is it possible to
determine what an item is loosing its focus to. Here is an example of what I
would like to do:

Item_Looses_focus()
if( cancel button was clicked)
{
return
}
else
{
validate_item()
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top