Click here to Skip to main content
15,884,967 members
Home / Discussions / C#
   

C#

 
AnswerRe: Secure remoting channel? Pin
Guillermo Rivero10-Jan-04 7:46
Guillermo Rivero10-Jan-04 7:46 
GeneralRe: Secure remoting channel? Pin
Alex Korchemniy10-Jan-04 9:45
Alex Korchemniy10-Jan-04 9:45 
GeneralProblem adding a reference Pin
Judy1011019-Jan-04 12:11
Judy1011019-Jan-04 12:11 
GeneralRe: Problem adding a reference Pin
Heath Stewart9-Jan-04 12:20
protectorHeath Stewart9-Jan-04 12:20 
GeneralRe: Problem adding a reference Pin
Judy1011019-Jan-04 15:56
Judy1011019-Jan-04 15:56 
GeneralRe: Problem adding a reference Pin
Heath Stewart9-Jan-04 17:09
protectorHeath Stewart9-Jan-04 17:09 
GeneralRe: Problem adding a reference Pin
Judy1011019-Jan-04 17:30
Judy1011019-Jan-04 17:30 
GeneralRe: Problem adding a reference Pin
Heath Stewart9-Jan-04 18:11
protectorHeath Stewart9-Jan-04 18:11 
You should read Inside the .NET Framework / Assemblies[^] on MSDN, as well as the rest of the overviews of .NET under .NET Framework[^]. It's important to understand the basic concepts before getting started.

Assemblies contain not only the stuff I mentioned earlier, but all the Types defined in that assembly. A Type is a class, struct, enum, or delegate that is contained in a simple assembly. If you want to reference a Type from one assembly in a different assembly, you must reference that assembly in Visual Studio .NET (or using the /r param for the command-line compiler for the language in which you're developing).

For example, if you want to develop a Windows Forms application, you project must reference the System.Windows.Forms.dll assembly, as well as a few others like System.dll and System.Drawing.dll. If your application references another project (that compiles to an assembly), right-click on References and click Add Reference. Select the Projects tab and add your project (if it's in the same solution, otherwise use the .NET tab for .NET assemblies or the COM tab to add an interop assembly).

The using keyword used to "import" namespaces is only to save you from having to type the full namespace and class name, similar to the import keyword in Java. If you try using using with a namespace that is defined in another assembly (and remember, a namespace can span multiple assemblies so just because the namespace is available doesn't mean the class is available), then you must reference that assembly.

Remember, be sure to read about the .NET Framework and understand the concepts, such as .NET isn't limited to C# and - once compiled - the fact that the source was written in C# makes little to no difference (different languages compilers that target the Common Language Runtime, or the CLR, all produce Intermediate Language, or IL, with only a few differences depending on compiler optimizations and what the compilers supports).

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralChanging DataGrid column value Pin
RadioButton9-Jan-04 11:59
RadioButton9-Jan-04 11:59 
GeneralRe: Changing DataGrid column value Pin
Heath Stewart9-Jan-04 12:17
protectorHeath Stewart9-Jan-04 12:17 
GeneralGraphic Event Pin
hxxbin9-Jan-04 11:40
hxxbin9-Jan-04 11:40 
GeneralRe: Graphic Event Pin
Charlie Williams9-Jan-04 12:11
Charlie Williams9-Jan-04 12:11 
GeneralRe: Graphic Event Pin
Heath Stewart9-Jan-04 12:11
protectorHeath Stewart9-Jan-04 12:11 
GeneralRe: Graphic Event Pin
Meysam Mahfouzi9-Jan-04 18:23
Meysam Mahfouzi9-Jan-04 18:23 
GeneralRe: Graphic Event Pin
Heath Stewart9-Jan-04 19:36
protectorHeath Stewart9-Jan-04 19:36 
GeneralRe: Graphic Event Pin
hxxbin10-Jan-04 13:34
hxxbin10-Jan-04 13:34 
GeneralRe: Graphic Event Pin
leppie9-Jan-04 12:42
leppie9-Jan-04 12:42 
Generalwinform start location Pin
Peter Reiter9-Jan-04 11:20
Peter Reiter9-Jan-04 11:20 
GeneralRe: winform start location Pin
hxxbin9-Jan-04 11:38
hxxbin9-Jan-04 11:38 
GeneralRe: winform start location Pin
Peter Reiter9-Jan-04 11:52
Peter Reiter9-Jan-04 11:52 
GeneralRe: winform start location Pin
leppie9-Jan-04 11:56
leppie9-Jan-04 11:56 
GeneralRe: winform start location Pin
Heath Stewart9-Jan-04 12:06
protectorHeath Stewart9-Jan-04 12:06 
GeneralRe: winform start location Pin
hxxbin10-Jan-04 14:40
hxxbin10-Jan-04 14:40 
GeneralEmail setting rendez-vous in outlook. Pin
Demo3609-Jan-04 10:41
Demo3609-Jan-04 10:41 
GeneralRe: Email setting rendez-vous in outlook. Pin
Heath Stewart9-Jan-04 12:04
protectorHeath Stewart9-Jan-04 12:04 

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.