C# Class in VB.NET Project ??

H

harry

Hi,

I have downloaded a C# ComboBox DataGridColumnStyle Class from
http://www.codeproject.com/cs/miscctrl/datagridcomboboxcolumn.asp

I want to use it in my VB.NET program. I try to reference it but
intellisense doesn't pick it up.

Can I use C# class in my VB.NET project or do I need to create and reference
a seperate C# DLL project from my VB project?

I'm sure I've used a C# classes in a past VB.NET project however now I'm
wondering whether I just referenced a seperate project in my solution.

Thanks
Harry
 
J

Jon Skeet [C# MVP]

harry said:
I have downloaded a C# ComboBox DataGridColumnStyle Class from
http://www.codeproject.com/cs/miscctrl/datagridcomboboxcolumn.asp

I want to use it in my VB.NET program. I try to reference it but
intellisense doesn't pick it up.

Can I use C# class in my VB.NET project or do I need to create and reference
a seperate C# DLL project from my VB project?

You need to create a DLL and reference that.
I'm sure I've used a C# classes in a past VB.NET project however now I'm
wondering whether I just referenced a seperate project in my solution.

I'm sure you have.

In fact, using the command line tools you can create ".netmodules" from
each language and link them together to form a single assembly - but it
looks messy (the .netmodules still exist) and there's no way of doing
it from VS.NET.
 
C

Cor Ligthert

Harry,

Maybe you can try this one, I thought that Pat did write an answer and he
made a little addition which I have added to my code, so I have that in my
code, so when you have a problem and want to use this, tell me than I paste
in the class as I have it now.

http://groups.google.com/[email protected]

(this is the columnstyle one in VBNet code, not the standard one)

Pats question and answer are gone from the newsgroupthread in Google.

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top