Click here to Skip to main content
15,890,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi! I am making class in vb.net and compiled to a DLL no problem there. My question is in the reference part how can I add a Class.class like the one in a references System.XML, System.Data... I want to make my class appear like that, MyClass.Data.
Posted

if you need your class appear like System.Some.Things ...
use just Namespaces Creating and using Namespaces in VB.NET and C# and add your assembly (dll) to another project to test it
 
Share this answer
 
Comments
teebonaire 20-Jun-10 9:10am    
Hi!, I tried it did not work, it still show as a class in reference not a class.class.
Adrabi Abderrahim 20-Jun-10 9:47am    
can you give us more details!
example "System.Xml" is not "class.class" this "Namespace.Namespace"
(System = namespace, Xml = namespace)
teebonaire 20-Jun-10 20:24pm    
This is my sample code

Namespace MyNameSpace
Public Class thisClass
Public Function TestMSG()
MsgBox("This is a Test")
Return Nothing
End Function
End Class
End Namespace

after compiled to myClass.dll and create a new project add this in the reference...
it only shows in reference as "myClass" not "myClass.myNameSpace".
Adrabi Abderrahim 21-Jun-10 8:40am    
by default if you create a project with this name "myClass.myNameSpace" add you add it as reference (right click ->add reference -> project).
you can see "myClass.myNameSpace" in reference list.
teebonaire 21-Jun-10 20:10pm    
could you please update my code to what you mean. I'm kinda confuse, and Thank you for always replying on my question
Right click on references in solution explorer -> Add reference ->
Browse to your dll -> Click OK.

BTW System.Data, System.Xml are dll files.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900