|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Name space referencing problemI 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 wrote:
Show quoteHide quote > I have created an Add-in using a class library (let say the name of it is Look in your Project Properties. There you should find a Root> "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 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.
naming conventions forced by VS.NET?
Attribute instantiation How to declare a sub class thread dead lock Passing multiple arguments to the client-side JavaScript function in AJAX Replace " character in string Save Changes in VB.NET 2005 with Access 2003 --- Not using any Binding Navigator DataGridView1 (VS2005) Search string in textfile ConfigurationManager unrecognized |
|||||||||||||||||||||||