There are several similar forms (size, background, 1 button), to each of which different elements are added: to one - textbox, to the other - pictures, to the third - a few more buttons. How to organize it correctly?
1 answer
As an option, it is to place all the elements in a hidden state on the form. In the form class, you need to implement the named constructors (Factory Method), which will create the form with the necessary functionality.
- here, rather, you need a custom property that allows you to select a preset that activates the necessary elements, factories IMHO a little for another. But also a working version. - rdorn
|
Form.Visible = false.Form.Visible = false. There are many possible solutions. - rdorn