>Hi Craig,
>
>But how do you solve the "irrelevent enabled controls" problem? For example, is your Undo and/or Cancel button always enabled? That's my problem; I get downright anal about controls not being enabled that have no function depending on the current form state. In a permanent edit mode, you have to get cute with the interactivechange of your parent classes.
>
>
Nope, not always enabled. When the Save button gets enabled, the Cancel button also gets enabled. Interactive change is exactly what I've used. It wasn't a big deal to put a couple of lines of code into my base classes and add a Mode property to the form so that it knows if it's in one of 4 states:
- Edit
- Add
- Query
- None
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer