I am wondering how to handle a Form with a lot of controls. Do you stuff all of the handling code into the Form? This is how I have been doing it, but my most recent project is getting out of hand because of all of the controls that I need to work with. I have menus, multiple toolbars, tabcontrols filled with controls, statusbar, ... you get the idea. I am thinking of using partial classes to split up things, but that's probably a bad idea. I just need some advice on what I should do.
I would recommend using UserControls to break up your functionality. By moving independent pieces into UserControl instances, you can segregate your logic.
In addition, using an architectural pattern like MVC or MVP can help tremendously as an application gets larger.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With