Home All Groups Group Topic Archive Search About

Is there code to convert a c# module to VB?

Author
1 Jul 2005 9:35 PM
Jim Bob
I am primarily a VB writer but I have code written in C# I want to use.

Is this feasible?

jwc

*** Sent via Developersdex http://www.developersdex.com ***

Author
1 Jul 2005 9:49 PM
David Anton
You can either compile the C# code into a separate assembly or use a C# to
VB.NET converter.  I will obviously plug ours: Instant VB (download the Demo
Edition at www.instantvb.com).  Instant VB is the only one that converts all
files appropriate to entire projects and is the only one that converts
ASP.NET pages also (as part of a project or individually).

David Anton
www.tangiblesoftwaresolutions.com
Home of:
Instant C#: VB.NET to C# Converter
Instant VB: C# to VB.NET Converter
Instant J#: VB.NET to J# Converter

Show quoteHide quote
"Jim Bob" wrote:

> I am primarily a VB writer but I have code written in C# I want to use.
>
> Is this feasible?
>
> jwc
>
> *** Sent via Developersdex http://www.developersdex.com ***
>
Author
1 Jul 2005 9:54 PM
Herfried K. Wagner [MVP]
"Jim Bob" <nspam@cableone.net> schrieb:
>I am primarily a VB writer but I have code written in C# I want to use.

In addition to Davids reply:

You will find some other converters on the page below.  However, note that
the output of the Instant VB converter is much better than those of most
freeware converters.

Converting code between .NET programming languages
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=languageconverters&lang=en>

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
3 Jul 2005 8:31 AM
Cor Ligthert
Jim,

The most simple in my opinion is to Add the C# project to your project.
Than you change in the properties the "output type" from that in Class
Library
Than you select again your VB project and do
Project Add References and go to the button Projects

The C# code is now a part of your project.

I hope this helps,

Cor
Author
3 Jul 2005 11:40 AM
Herfried K. Wagner [MVP]
"Cor Ligthert" <notmyfirstn***@planet.nl> schrieb:
> The most simple in my opinion is to Add the C# project to your project.

.... should read "... project to your solution".

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
3 Jul 2005 11:40 AM
Cor Ligthert
>> The most simple in my opinion is to Add the C# project to your project.
>
> ... should read "... project to your solution".
>
ACK,

thanks,

Cor