Having separate classes for tabbed pages in Visual C#

Hi Experts,

When I create GUI in C#( Visual Studio 2005), all the code goes to the same main class.  Say, my GUI has multiple Tabbed pages, how can I have different classes for each pages?
ambuliAsked:
Who is Participating?
 
Bob LearnedConnect With a Mentor Commented:
In MVC, the form is the View and the model would be a state class that would hold the values that you need to store for the view to display.  The controller can be defined in the form, and not a separate class to simplify the event model required to bridge the model with the view.

Bob
0
 
Bob LearnedCommented:
You wouldn't need separate classes, since you can share the same event handlers for all the instances of the TabPage objects.

Bob
0
 
ambuliAuthor Commented:
Yes, but when my GUI comprised of lot of buttons and other stuffs the class is getting really big.
0
 
Bob LearnedCommented:
Have you heard about the Model-View-Controller (MVC) or Model-View-Presenter (MVP) patterns?

Bob
0
 
ambuliAuthor Commented:
I am familiar with MVC pattern. What I did was to use the Visual Studio to create a Windows Form project.  So, it created the form and class.  Then I added tabbed pages, buttons etc to that form.  Now, what I have is a class with many functions... So, I think it is not right thing to do
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.