I am only using C#, but I assume this works the same way in VB.NET; The
answer applies to projects in visual studio.net.
You may change the default namespace of your project by using the properties
on the project; right-click the project-name, select "properties", find
"default namespace". Here you may want to change from the "project-name"
(which is the normal) to "company.project" or something.
Further, by creating subdirectories in the project folder, the namespace for
new elements will default to the default namespace-name of elements in the
parent directory + the name of the directory.
You may also change the namespace manually using the namespace-statement;
this is what automatically happens using the methods mentioned above.
What I think would be normal with regards to namespace; would be to make
library-projects with sensible namespaces for what library it is;
company.controls.winforms company.net.smtp; and such; and in the main
program just use the default namespace. You may want to subdivide some
libraries, then you would use folders to create new namespaces.
Regards,
Harald Bjorøy
www.ulriken-consulting.no [quoted text, click to view] "Simon Edwards" <simonedwards52@hotmail.com> wrote in message
news:1064010318.893259@ananke.eclipse.net.uk...
> Ok i've put something together as an example...
>
> Public Class Test1
>
> Public ReadOnly Property test1_prop()
>
> Get
>
> End Get
>
> End Property
>
> Public Class Test2
>
> Public ReadOnly Property test2_prop()
>
> Get
>
> End Get
>
> End Property
>
> End Class
>
> End Class
>
>
>
> The above when insntaned will let you see the test1 property and the test
2
> class but not thye test2 property?
>
> i want to build my own classes with a structure similar to how dot net
works
> with its namespaces
>
> franko@acadx.com> wrote in message
> news:eI19frvfDHA.2260@TK2MSFTNGP10.phx.gbl...
>
> > Thus spake Simon Edwards:
> >
> > > how do you create a namespace that has many children (namespaces)
> >
> > Just specify the desired namespace in each file:
> >
> > (File A)
> > namespace MyUtilityLibrary.Data
> >
> > (File B)
> > namespace MyUtilityLibrary.Data.Sql
> >
> > --
> > There are 10 kinds of people. Those who understand binary and those who
> > don't.
> >
> >
http://code.acadx.com > >
> >
>
>