I have been stumbling around for a long time trying to figure out the best way to deal with enabling
and disabling text fields on the forms of my WinForms application. In particular, I have been unable find a 'clean' way that allows me to disable form fields when a the form is first loaded and I don't
know whether the user wants to add, change, delete or just view a record. Right now I am creating
a new object in the form load event which puts the form in 'new' mode. This works but the users do
not want the forms to automatically open in 'new' mode.
My design is based on Ptracker and I have the new, cancel, save buttons working smoothly thanks
to BindingSource_CurrentItemChanged, CanEditObject, CanDeleteObject IsSaveable, and IsDirty et al.
Any ideas on how to best start up a form with the text fields disabled without having to write
enabled = False/True throughout my form button handling code? What are others doing in this situation.
Thanks in advance
Copyright (c) Marimer LLC