473,400 Members | 2,163 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,400 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 21 '05 #1
4 3750
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
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
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
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 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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.