>I believe the standard way to take care of this is to make the button cancel (its one of the properties) and then check the value of lastkey() in in your save procedure. Lastkey() will equal 27 if the cancel button was pressed.
>
>Please note: You should have a "Are you sure you want to cancel" because pressing the escape key may trigger the button!
>
I disagree. Have an "Are you sure?" dialog is personal preference. IMO, it isn't needed. If you read Alan Coopers books, you'll see he agrees with this.
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer