Solved

Need to break up a very large C# program...

Posted on 2006-11-14
7
193 Views
Last Modified: 2010-04-16
I have a very large C# program (currently 740 Kb) that I want to break up (the entire program is developed around a tab control with about 16 tabs on it..)  My thinking is that I might break it up by each tab and it's related functions because the program is just getting too big to manage, especially waiting for VS to re-draw the main form each time I make a change to any of the code.  Although the execution of the program seems to be ok, I just need to figure out a better way to manage the source.

Any suggestions?

0
Comment
Question by:rmmarsh
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
7 Comments
 
LVL 15

Accepted Solution

by:
ozymandias earned 300 total points
ID: 17939878
Create separate custom component classes for each tab as controls that inherit from TabPage ?
0
 

Author Comment

by:rmmarsh
ID: 17939928
What would that buy me?
0
 
LVL 8

Assisted Solution

by:sabeesh
sabeesh earned 200 total points
ID: 17944018
create seperate usercontols for each tab item and place the user control in the tabs. so you could write your code in different different controls. this could be more easy and very easy to maintain the code.
Refer msdn for how to use usercontrols
0
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 
LVL 15

Expert Comment

by:ozymandias
ID: 17945175
It would break up your code and make it more managable.
I thought that was what you wanted, quote : ".... I want to break up .... just getting too big to manage..."
0
 

Author Comment

by:rmmarsh
ID: 17951030
OK... just read up (on what I could find) on user controls... please provide some clarification for the following:
1.  There is a "UserCode Designer" component of VS; does or can each user control compile into a .dll?
2.  Any known way of moving existing controls to the Designer? (would probably have to have both projects open at the same time, right?)
3.  Is there an easy way to take some of the code that is pretty much static now and move it into something that will compile into a .dll, like a separate assembly?
0
 
LVL 15

Expert Comment

by:ozymandias
ID: 17951096
>> UserCode designer...not sure what that is.

You can take your controls and compile them into a dll, just create a class library project and move the code into it.
It will compile as a dll.
Create a reference to this dll in your main project and then you can use the controls.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

622 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question