473,394 Members | 1,866 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

C# Class in VB.NET Project ??

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 22 '05 #1
4 1241
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 22 '05 #2
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 22 '05 #3
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 22 '05 #4
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 22 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Nancy | last post by:
I have the following situation and could use some advise. I have a Base Class CreditReport, classes BoatCreditReport and HomeCreditReport Inherit from CreditReport. I would like to have the...
2
by: Rafael Pivato | last post by:
Hi, How can I make two libraries with referencing each other ? --------- Thanks, Rafael Pivato
8
by: Brett Romero | last post by:
I have this situation: myEXE <needs< DerivedClass <which needs< BaseClass Meaning, myEXE is using a type defined in DerivedClass, which inherits from BaseClass. I include a reference to...
5
by: D Witherspoon | last post by:
What is happening is that I have a class (ClassA) that inherits a class (ClassB) which inherits System.Net.Mail.MailMessage Project 1 references Project 2, Project 2 references Project 3. ...
4
by: Tony Johansson | last post by:
Hello! I have one solution file that consist of three project. One project that build the exe file called A One project that build a user control dll. Here we have a class called B One project...
5
by: Tony Johansson | last post by:
Hello! I have one solution file that consist of three project. One project that build the exe file called A One project that build a user control dll. Here we have a class called B One project...
0
by: tony | last post by:
Hello! I have one solution file that consist of three project. One project that build the exe file called A One project that build a user control dll. In this user control we have a class...
16
by: Robert Dufour | last post by:
Here's the class code snippet Imports System.Configuration.ConfigurationManager Public Class Class1 Public _strTestSetting As String Public Sub SetTestsetting()
4
by: Alan Mailer | last post by:
Again, I'm new to VB.net and there is something I need help with: Like (I assume) many of us, over time I want to be able to create some VB.net classes that I might want to use in more than one...
5
by: Ohad weiss | last post by:
Hi all, I have a class in project A. At the same solution, I have another project - named project B. I want to write a piece of code in that class from project B that finds the class in...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.