Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

VB.net2C#

Posted on 2006-11-14
6
Medium Priority
?
639 Views
Last Modified: 2012-06-27
Can i convert VB.net 2 C# code ?
0
Comment
Question by:doan_cdf
  • 2
6 Comments
 
LVL 35

Expert Comment

by:Raynard7
ID: 17936579
You can - but you have to do it manually, vb.net and c# both go down to the same intermediate code that is interpreted by the CLR - so they have access to the same essential functions and libraries (even though they are different in operation)
0
 
LVL 35

Accepted Solution

by:
Raynard7 earned 100 total points
ID: 17936593
http://www.developerfusion.co.uk/utilities/convertvbtocsharp.aspx supposedly does this for free - but I have not tried it
0
 
LVL 1

Assisted Solution

by:Leah_
Leah_ earned 100 total points
ID: 17936882
I have used the site Raynard recommended a lot.

Most of the time if I find a C# example on-line somewhere I can copy it into the convertor and it converts without errors. If there are errors I try breaking down the code into smaller bits.

If you need to convert a large amount of code you might want to consider leaving the code as C# and making it a separate project in your VB .Net solution, like an old style DLL or library.
0
 
LVL 5

Expert Comment

by:kumar_jac
ID: 17937719

Plz try this

http://www.carlosag.net/Tools/CodeTranslator/Default.aspx

here you can uplad .vb files and get .cs source.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn different types of Android Layout and some basics of an Android App.
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question