Name space referencing problem

  • Thread starter Thread starter Prashwee
  • Start date Start date
P

Prashwee

Hello All

I have a simple problem with name space concept

I have created an Add-in using a class library (let say the name of it is
"ClassLibrary1")
Then I added one form (say "Form1") and one class (say "Class1")

Class1 is under the name space of "ifs.cadIntegeration:)

But when I import my name space in form1 I have to import it as
"Classlibrary1.ifs.cadIntegeration"
I found that Classlibrary1 claues is redundant. if I omit Classlibrary1
clause and try to import it complains about that I don't have any public
members in the name space.

What is the problem here?
I need to import my class as ifs.cadIntegeration and not
Classlibrary1.ifs.cadIntegeration

Please help

Thanks in Advace
Prash
 
Prashwee said:
I have created an Add-in using a class library (let say the name of it is
"ClassLibrary1")
Then I added one form (say "Form1") and one class (say "Class1")

Class1 is under the name space of "ifs.cadIntegeration:)

But when I import my name space in form1 I have to import it as
"Classlibrary1.ifs.cadIntegeration"
I found that Classlibrary1 claues is redundant. if I omit Classlibrary1
clause and try to import it complains about that I don't have any public
members in the name space.

What is the problem here?
I need to import my class as ifs.cadIntegeration and not
Classlibrary1.ifs.cadIntegeration

Look in your Project Properties. There you should find a Root
Namespace. In VB, all namespaces start with this root. When you
created the project, if you chose Class Library as the project type,
then the Root Namespace, by default, is set to something like
ClassLibrary1.
 
Back
Top