Design Time Collection Property

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
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
 
Back
Top