Click here to Skip to main content
15,887,405 members
Home / Discussions / C#
   

C#

 
GeneralRe: week numbers Pin
robmays16-Apr-04 8:35
robmays16-Apr-04 8:35 
GeneralRe: week numbers Pin
robmays16-Apr-04 9:59
robmays16-Apr-04 9:59 
GeneralRe: week numbers Pin
robmays16-Apr-04 19:33
robmays16-Apr-04 19:33 
GeneralRe: week numbers Pin
Heath Stewart19-Apr-04 2:06
protectorHeath Stewart19-Apr-04 2:06 
Generalan error with tabpage Pin
robmays19-Apr-04 3:57
robmays19-Apr-04 3:57 
GeneralRe: an error with tabpage Pin
Heath Stewart19-Apr-04 3:58
protectorHeath Stewart19-Apr-04 3:58 
GeneralRe: an error with tabpage Pin
robmays19-Apr-04 4:06
robmays19-Apr-04 4:06 
GeneralRe: an error with tabpage Pin
Heath Stewart19-Apr-04 4:21
protectorHeath Stewart19-Apr-04 4:21 
The project name doesn't mean anything, except that the default root namespace is the project name. If you use folders in your project, source files added to those folders are defaulted to the root namespace plus the folder name(s) appended in hierarchical order. Just look at the source files to see what namespace they're in.

Also, do not make a namespace for each separate class! C'mon, think about it. Does each control in System.Windows.Forms have a separate namespace? No, they're all grouped into that namespace. Namespaces are there to logically group classes and other members, just like System includes all the ubiquitous stuff, and System.Data includes all the core ADO.NET classes, and System.Web includes all the core ASP.NET class while System.Web.UI.WebControls includes a bunch of web controls.

If your current class is in a different namespace, then you must import all namespaces that are different - regardless of whether or not they're in your current project! - or you must type in their fully-qualified type name (namespace + class/interface/struct/enum name).

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: an error with tabpage Pin
robmays19-Apr-04 6:14
robmays19-Apr-04 6:14 
GeneralRe: an error with tabpage Pin
Heath Stewart19-Apr-04 6:27
protectorHeath Stewart19-Apr-04 6:27 
GeneralRe: an error with tabpage Pin
robmays19-Apr-04 6:32
robmays19-Apr-04 6:32 
GeneralRe: an error with tabpage Pin
robmays19-Apr-04 8:26
robmays19-Apr-04 8:26 
GeneralRe: an error with tabpage Pin
robmays19-Apr-04 6:38
robmays19-Apr-04 6:38 
GeneralRe: an error with tabpage Pin
Heath Stewart19-Apr-04 8:42
protectorHeath Stewart19-Apr-04 8:42 
GeneralRe: an error with tabpage Pin
robmays19-Apr-04 4:13
robmays19-Apr-04 4:13 
GeneralRe: an error with tabpage Pin
Heath Stewart19-Apr-04 4:17
protectorHeath Stewart19-Apr-04 4:17 
Generalignore my last comment Pin
robmays16-Apr-04 21:53
robmays16-Apr-04 21:53 
GeneralPassing data between forms Pin
Chintan Vaishya15-Apr-04 23:57
Chintan Vaishya15-Apr-04 23:57 
GeneralRe: Passing data between forms Pin
Colin Angus Mackay16-Apr-04 2:14
Colin Angus Mackay16-Apr-04 2:14 
GeneralReflection Pin
Braulio Dez15-Apr-04 23:36
Braulio Dez15-Apr-04 23:36 
GeneralRe: Reflection Pin
Heath Stewart19-Apr-04 4:32
protectorHeath Stewart19-Apr-04 4:32 
GeneralUsing ActiveX In a windows service Pin
Big Trev15-Apr-04 22:42
Big Trev15-Apr-04 22:42 
GeneralRe: Using ActiveX In a windows service Pin
Heath Stewart19-Apr-04 4:37
protectorHeath Stewart19-Apr-04 4:37 
Generalpassing strings between ATL and c# Pin
rana7415-Apr-04 16:25
rana7415-Apr-04 16:25 
GeneralRe: passing strings between ATL and c# Pin
Mike Dimmick16-Apr-04 1:01
Mike Dimmick16-Apr-04 1:01 

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.