Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

How do I split .Net 4.0 Windows Form event handlers into separate files?

Avatar of tejicles
tejicles asked on
.NET ProgrammingProgramming Theory
2 Comments1 Solution396 ViewsLast Modified:
I am using Visual Basic for a Windows Forms project at work in Visual Studio 2010, using the .Net Framework 4. Without going into too much unnecessary detail (because my question is more theoretical), my main Windows Form is becoming unwieldy at its current size. I have a number of tabs on this form. In the interest of sticking as close to an Model-View-Controller design as possible, I would like to create a separate form for each tab, which I have already done. The problem is that the only way I know how to do that is to make each file a partial part of  the same class. This is better, but not necessarily any more maintainable, because there is no file scope that I am aware of. I want to limit the scope of each of the variables used in each tab to that file. Is there any facility in Visual Basic for what I am talking about? I have a workable version now, but, in the interest of maintainability, I would like to find a solution to this if I can. Thank you in advance for your responses
Avatar of Craig Wagner
Craig WagnerFlag of United States of America imageSoftware Architect

Our community of experts have been thoroughly vetted for their expertise and industry experience.

This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answers