E
Erik Jensen
Hi,
the subject says it all, A form has a textbox (which
doesnt allow 0 length strings) and has Validation set to
true. But I obviously dont want this event to return false
if Im closing the form or tabbing off the form.
Ive seen solutions that check for the mouse click vs. the
client rectangle to see if the user is clicking outside
the form area (i.e. the 'X' or some other window) and also
to check if they're Alt-TAB'ing . seen here:
http://www.dotnet247.com/247reference/msgs/9/45299.aspx
Are there more elegant solutions to this kind of
situation.
Thanks
Erik
the subject says it all, A form has a textbox (which
doesnt allow 0 length strings) and has Validation set to
true. But I obviously dont want this event to return false
if Im closing the form or tabbing off the form.
Ive seen solutions that check for the mouse click vs. the
client rectangle to see if the user is clicking outside
the form area (i.e. the 'X' or some other window) and also
to check if they're Alt-TAB'ing . seen here:
http://www.dotnet247.com/247reference/msgs/9/45299.aspx
Are there more elegant solutions to this kind of
situation.
Thanks
Erik