Click here to Skip to main content
15,892,059 members
Home / Discussions / C#
   

C#

 
GeneralRe: .net application without .net framework Pin
Gerald Schwab9-Jan-04 20:02
Gerald Schwab9-Jan-04 20:02 
GeneralRe: .net application without .net framework Pin
Bo Hunter10-Jan-04 12:54
Bo Hunter10-Jan-04 12:54 
GeneralRe: .net application without .net framework Pin
hxxbin10-Jan-04 14:32
hxxbin10-Jan-04 14:32 
GeneralRe: .net application without .net framework Pin
leppie10-Jan-04 23:39
leppie10-Jan-04 23:39 
GeneralHelp regarding Listview & Progressbar Pin
jomargon9-Jan-04 18:53
jomargon9-Jan-04 18:53 
GeneralRe: Help regarding Listview & Progressbar Pin
Heath Stewart9-Jan-04 19:41
protectorHeath Stewart9-Jan-04 19:41 
QuestionSecure remoting channel? Pin
Alex Korchemniy9-Jan-04 14:18
Alex Korchemniy9-Jan-04 14:18 
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 

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.