Using vb.net classes in c#.net -- need help
-
Hi, I am writing a small project in C#.net. Now there is a need for me to use vb.net class in my project. However when I add vb.net class to my c#.net project, the project can not recognize the vb.net class and I can not instantiate an object of vb.net class. Can somebody advise me how to create an object of vb.net class in c#.net and use its methods/members etc.. Thanks
-
Hi, I am writing a small project in C#.net. Now there is a need for me to use vb.net class in my project. However when I add vb.net class to my c#.net project, the project can not recognize the vb.net class and I can not instantiate an object of vb.net class. Can somebody advise me how to create an object of vb.net class in c#.net and use its methods/members etc.. Thanks
The only way you can do this, is to put the VB.NET class in a dll, and then import that dll into your project ( so you'll have to distribute the dll with the project, too )
Christian Graus Driven to the arms of OSX by Vista.