Using Form.Dirty I can tell if the current form record has been edited and not yet saved. I cannot find a similar property for a control on the form.
I'm trapping the Escape key with KeyPreview events and want to be able to tell if the user is editing the current control when they press Escape.
The closest thing I can find is to compare the .Value of the control to the .Text of the control. This is has all kinds of problems. It would be so much easier if the control supported its own .Dirty property.
Got any ideas?
Thanks!
I'm trapping the Escape key with KeyPreview events and want to be able to tell if the user is editing the current control when they press Escape.
The closest thing I can find is to compare the .Value of the control to the .Text of the control. This is has all kinds of problems. It would be so much easier if the control supported its own .Dirty property.
Got any ideas?
Thanks!