By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,166 Members | 1,575 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,166 IT Pros & Developers. It's quick & easy.

C# Class in VB.NET Project ??

P: n/a
Hi,

I have downloaded a C# ComboBox DataGridColumnStyle Class from
http://www.codeproject.com/cs/miscct...oboxcolumn.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

Nov 21 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
harry <harry@nospam> wrote:
I have downloaded a C# ComboBox DataGridColumnStyle Class from
http://www.codeproject.com/cs/miscct...oboxcolumn.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.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 21 '05 #2

P: n/a
In 2005 this is supposed to be possible... Haven't tried it yet though..
"Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message
news:MP************************@msnews.microsoft.c om...
harry <harry@nospam> wrote:
I have downloaded a C# ComboBox DataGridColumnStyle Class from
http://www.codeproject.com/cs/miscct...oboxcolumn.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.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Nov 21 '05 #3

P: n/a
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/groups?selm...TNGP10.phx.gbl

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

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

Cor
Nov 21 '05 #4

P: n/a
Thanks for your help.

"harry" <harry@nospam> wrote in message
news:OW**************@TK2MSFTNGP15.phx.gbl...
Hi,

I have downloaded a C# ComboBox DataGridColumnStyle Class from
http://www.codeproject.com/cs/miscct...oboxcolumn.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

Nov 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.