EDN Admin
Well-known member
Hello,
I have two winforms 1 and 2. 2 inherit 1.
Winform 1: I want to create a property named EditableControls (control collection), when in edit mode, I have one method to set all controls in EditableControls editable, otherwise set read only.
Winform 2: in designer mode, go to property EditableControls, select controls defined in winform 2 (could be textbox, combobox etc). Better can select via collection editor.
Anybody knows how to design property EditableControls? If I have such property, it will be very easy to set editable/read only controls when edit mode changes.
Thanks for any help!
Ay
View the full article
I have two winforms 1 and 2. 2 inherit 1.
Winform 1: I want to create a property named EditableControls (control collection), when in edit mode, I have one method to set all controls in EditableControls editable, otherwise set read only.
Winform 2: in designer mode, go to property EditableControls, select controls defined in winform 2 (could be textbox, combobox etc). Better can select via collection editor.
Anybody knows how to design property EditableControls? If I have such property, it will be very easy to set editable/read only controls when edit mode changes.
Thanks for any help!
Ay
View the full article