Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 Calling C # class from VB.Net

Author  Topic 

vk18
Posting Yak Master

146 Posts

Posted - 2007-11-15 : 13:54:28
Hi Guys,

I have an application with Both C# and VB.NET. I want to call a C# class from vb.net. Is it possible?
Thx

karuna
Aged Yak Warrior

582 Posts

Posted - 2007-11-15 : 14:06:22
You can add a reference of your c# class in the vb.net project and use it.


Thanks
Karunakaran
Go to Top of Page

vk18
Posting Yak Master

146 Posts

Posted - 2007-11-15 : 14:18:56
quote:
Originally posted by karuna

You can add a reference of your c# class in the vb.net project and use it.


Thanks
Karunakaran



I tried to reference that but it is not working
Go to Top of Page

karuna
Aged Yak Warrior

582 Posts

Posted - 2007-11-15 : 14:29:29
You get any errors?

Thanks
Karunakaran
Go to Top of Page

vk18
Posting Yak Master

146 Posts

Posted - 2007-11-15 : 14:52:49
quote:
Originally posted by karuna

You get any errors?

Thanks
Karunakaran



No, iam trying to instantiate but it is not instantiating
Thx
Go to Top of Page

jsmith8858
Dr. Cross Join

7423 Posts

Posted - 2007-11-15 : 15:34:20
Well, you have certainly provided us with plenty of information to help you out.

- Jeff
http://weblogs.sqlteam.com/JeffS
Go to Top of Page
   

- Advertisement -