473,413 Members | 1,801 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,413 software developers and data experts.

How to use VB.Net class project in C# application

Hello:

I'm just starting to use C# for my ASP.Net applications. Before I used a
pretty complicated class written in VB.Net for my applications (I just added
this class project to several of my VS.Net solutions).

I don't have enough time to re-write this class in C#. Is there a way to
create a C# solution and use my original class project written in VB.Net?
Can I just create a new C# ASP.Net solution in VS.Net and add this class, or
there is some other way to do this?

I would appreciate your advice.

Thank you,
--
Peter Afonin
Nov 17 '05 #1
1 1453
I'm not sure you can(don't quote me on that) but, IMHO the best way to do
this is to add the VB class to a VB.NET class library project and build it
into it's own assembly, then add a reference to it in your C# project.

HTH
Brian W
"Peter Afonin" <pa**@specialtypulltabs.com> wrote in message
news:u9****************@TK2MSFTNGP11.phx.gbl...
Hello:

I'm just starting to use C# for my ASP.Net applications. Before I used a
pretty complicated class written in VB.Net for my applications (I just added this class project to several of my VS.Net solutions).

I don't have enough time to re-write this class in C#. Is there a way to
create a C# solution and use my original class project written in VB.Net?
Can I just create a new C# ASP.Net solution in VS.Net and add this class, or there is some other way to do this?

I would appreciate your advice.

Thank you,
--
Peter Afonin

Nov 17 '05 #2

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

Similar topics

1
by: Matthew | last post by:
Hello, I am using Visual C# .net Standard and want to create a Class Library. However I am having some difficulty. I am following the directions to do so from Deitel's "C# How to Program" in...
5
by: martin | last post by:
Hi, I have created a class that is totally seperate from my web application. However this class is used extensivly by the web application for stuff like data access. I wish to add a function to...
5
by: z. f. | last post by:
Hi, I'm working on a web project and i create classes to do business logic and connect to DB. i also need a windows application to do the same functionality as defined in classes inside the...
1
by: Mythran | last post by:
I have the following setup: BLL Project Category.vb AssemblyInfo.vb Schema Project Category.xsd AssemblyInfo.vb
15
by: Laurent Lequenne | last post by:
Hello All, I'm currently developing a free windows Scrabble (in french :)) application that uses extensively the WebBrowser class of NET 2.0 for configuration, and data browsing. It works 100%...
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()
1
by: =?Utf-8?B?d2lubGlu?= | last post by:
Hello Using VS 2005 VB.net when a class library gets created you can right click the project and add a Windows Application and then set it as the "startup project" then in the Windows...
8
by: shapper | last post by:
Hello, I am working with VS 2008 and created a Web Application Project. I added a class but whatever I do the class is not visible to my aspx pages or anywhere else. I then changed the...
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...
2
by: Reggie | last post by:
Hi and TIA! I have a class file located in my root directory with all me web pages. I call/use the class and it works fine. I have no imports statements aspx or codebehind. My question is why? ...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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
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.