On Apr 28, 7:23 am, "John" <J...@nospam.infovis.co.ukwrote:
Thanks. I have created a c# class library project with classes all belonging
to myns.utils.myutil namespace. I have added this c# project to the solution
that contains my vb.net project. How can I now use c# classes from within my
vb.net project?
Thanks
Regards
"Robin Tucker" <rtgro...@removehotmail.comwrote in message
news:Xq******************************@giganews.com ...
Hi John,
You can't mix the two in the same project but you can add projects that
use C# and VB.NET together in the same solution. If you have C# classes,
separate them into a library and then import the library into your VB.NET
project to use them.
Robin
Set the output type of the C# project to a dll (if not set already)
and then rebuild the entire solution. Then, in the VB project add a
reference to the C# project and use it like you would any other Dll
file.
Thanks,
Seth Rowe