Solved

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

Posted on 2006-11-14
7
192 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
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!

 
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

Technology Partners: 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

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

729 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