0

I have a WinForm which has many panels, and each panel has many controls, which make it very hard to handle the design of this form, how to move each panel to a new form and return all panels to the main form at runtime?

Jason Aller
  • 3,541
  • 28
  • 38
  • 38
T.Hajjar
  • 77
  • 1
  • 5

1 Answers1

3

Creating a UserControl will help modularize your user interface. You should create one user control per panel let's say and then use those user controls in your form.

The nice thing about UserControl is that they are reusable and can be designed (visually) just like the Forms are designed.

You can refer to this below link to know more about UserControls for WindowsForms: https://msdn.microsoft.com/en-us/library/aa302342.aspx

Chandan Kumar
  • 4,570
  • 4
  • 42
  • 62