Click here to Skip to main content
15,891,981 members
Home / Discussions / C#
   

C#

 
AnswerRe: Resizing Controls According to Forms' Size Pin
David C# Hobbyist.27-Dec-11 2:34
professionalDavid C# Hobbyist.27-Dec-11 2:34 
AnswerRe: Resizing Controls According to Forms' Size Pin
Shameel27-Dec-11 4:08
professionalShameel27-Dec-11 4:08 
AnswerRe: Resizing Controls According to Forms' Size Pin
BillWoodruff27-Dec-11 4:38
professionalBillWoodruff27-Dec-11 4:38 
GeneralRe: Resizing Controls According to Forms' Size Pin
Roger Wright27-Dec-11 20:58
professionalRoger Wright27-Dec-11 20:58 
GeneralRe: Resizing Controls According to Forms' Size Pin
BillWoodruff29-Dec-11 2:31
professionalBillWoodruff29-Dec-11 2:31 
GeneralRe: Resizing Controls According to Forms' Size Pin
BobJanova30-Dec-11 14:44
BobJanova30-Dec-11 14:44 
GeneralRe: Resizing Controls According to Forms' Size Pin
BillWoodruff2-Jan-12 14:29
professionalBillWoodruff2-Jan-12 14:29 
AnswerRe: Resizing Controls According to Forms' Size Pin
RaviRanjanKr31-Dec-11 3:41
professionalRaviRanjanKr31-Dec-11 3:41 
Questionhow can we write large source code in 2 or more seperate units? Pin
Fred 3427-Dec-11 2:04
Fred 3427-Dec-11 2:04 
AnswerRe: how can we write large source code in 2 or more seperate units? Pin
PIEBALDconsult27-Dec-11 2:30
mvePIEBALDconsult27-Dec-11 2:30 
GeneralRe: how can we write large source code in 2 or more seperate units? Pin
Shameel27-Dec-11 3:32
professionalShameel27-Dec-11 3:32 
GeneralRe: how can we write large source code in 2 or more seperate units? Pin
Tosche Station27-Dec-11 3:55
Tosche Station27-Dec-11 3:55 
AnswerRe: how can we write large source code in 2 or more seperate units? Pin
AmitGajjar27-Dec-11 3:10
professionalAmitGajjar27-Dec-11 3:10 
AnswerRe: how can we write large source code in 2 or more seperate units? Pin
Shameel27-Dec-11 3:34
professionalShameel27-Dec-11 3:34 
AnswerRe: how can we write large source code in 2 or more seperate units? Pin
#realJSOP27-Dec-11 4:08
mve#realJSOP27-Dec-11 4:08 
GeneralRe: how can we write large source code in 2 or more seperate units? Pin
PIEBALDconsult27-Dec-11 4:29
mvePIEBALDconsult27-Dec-11 4:29 
GeneralRe: how can we write large source code in 2 or more seperate units? Pin
Shameel27-Dec-11 4:42
professionalShameel27-Dec-11 4:42 
GeneralRe: how can we write large source code in 2 or more seperate units? Pin
PIEBALDconsult27-Dec-11 4:56
mvePIEBALDconsult27-Dec-11 4:56 
GeneralRe: how can we write large source code in 2 or more seperate units? Pin
Shameel27-Dec-11 5:09
professionalShameel27-Dec-11 5:09 
GeneralRe: how can we write large source code in 2 or more seperate units? Pin
PIEBALDconsult27-Dec-11 5:30
mvePIEBALDconsult27-Dec-11 5:30 
GeneralRe: how can we write large source code in 2 or more seperate units? Pin
#realJSOP27-Dec-11 7:37
mve#realJSOP27-Dec-11 7:37 
GeneralRe: how can we write large source code in 2 or more seperate units? Pin
Shameel27-Dec-11 8:02
professionalShameel27-Dec-11 8:02 
GeneralRe: how can we write large source code in 2 or more seperate units? Pin
PIEBALDconsult27-Dec-11 8:28
mvePIEBALDconsult27-Dec-11 8:28 
GeneralRe: how can we write large source code in 2 or more seperate units? Pin
Jan Steyn28-Dec-11 2:08
Jan Steyn28-Dec-11 2:08 
AnswerRe: how can we write large source code in 2 or more seperate units? Pin
BillWoodruff27-Dec-11 5:14
professionalBillWoodruff27-Dec-11 5:14 
I think another way to "frame" this question ... if my intuition is on-line here ... is to ask: how can I design, or re-design, my getting-very-big project into functional units, or: how can I determine a set of "organic criteria" which to use as an "organizing principle" to divide my project into logical "chunks" which, in the long run, contribute to program extension, maintenance, and de-bugging (and lend themselves to unit-testing in "isolation" ?).

All the "tools" mentioned here, including "Partial Classes," "Class Libraries," etc. are valuable.

... edit in appreciative response to feedback from PiebaldConsult ...

Please note: in Visual Studio the option to create a "Class Library" is one that appears when you create a new Solution, and also appears as an option when you choose to add a "New Project" to an existing "Solution." The question of whether a "Solution," which "begins life" as "only" a "Class Library," is, semantically, a "Solution," or a "Project" ... we'll we won't touch that one ... Smile | :)

... end edit ...

You create it, compile it, and, then, to use it "externally," you must reference it, by adding a Reference to the compiled .dll via the Solution Explorer/ References / Add Reference facility. The location of that compiled .dll can be anywhere: and the Add Reference dialog will let you browse to find it.

Once the Reference is added: you do not need to have a 'using' statement for it to be accessed.

The one "tool," not mentioned here, that may also be useful in "encapsulating functional units,"
is using NameSpaces: within one solution you can add Classes, etc., and encapsulate them in the scope of a different NameSpace.

In that case, to access the "whatever inside" that NameSpace, you will need to have a "using" statement in your Form or whatever it is that requires access. Or, you can avoid having a "using," statement kby using a "fully qualified" reference: Example:

C#
using SpecialNameSpace;

// now you can reference a class in SpecialNameSpace directly:

SpecialClass theSpecialClass = new SpecialClass();

// or ... without the "using" statement:

SpecialNameSpace.SpecialClass theSpecialClass = new SpecialNameSpace.SpecialClass();


However, when your solution, with multiple NameSpaces, is compiled, the resulting .exe incorporates everything: no separate files are created just by using different NameSpaces.

I have never experimented with trying to import a compiled class library dll into another class library, but, come to think of, I think I will Smile | :) ~
"It is the mark of an educated mind to be able to entertain a thought without accepting it." Aristotle

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.