Results 1 to 9 of 9

Thread: Convert VB to C#

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2009
    Location
    Milan
    Posts
    810

    Convert VB to C#

    Is there any programs out there that can convery VB.NET into C#???

    I don't want to have to rewrite my entire program in C#

  2. #2

    Re: Convert VB to C#

    If you use Google, you might have found something like this. It takes single files (copy-paste), and you can use it to some degree of accuracy.

    Why are you going from VB.net to C#, and not asking something like this on a C# forum?

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Convert VB to C#

    I highly recommend Instant C# from Tangible Software Solutions, although the trial version will only convert snippets while the full version is required to convert projects. I believe that SharpDevelop can convert projects too, although I've never tried it.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  4. #4

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2009
    Location
    Milan
    Posts
    810

    Re: Convert VB to C#

    Why am i going to c#

    Well i believe C# is a more powerful language so why not make the move?

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Convert VB to C#

    Quote Originally Posted by AirlineSim View Post
    Why am i going to c#

    Well i believe C# is a more powerful language so why not make the move?
    Because C# isn't a more powerful language, unless you intend to use pointers. By all means learn C#. By all means use C# for future projects. Converting existing projects to C# is pointless though, unless there is something specific you want to do that is more difficult in VB. In fact, you may actually loose something by converting to C#, e.g. there's no application framework so you can't select a splash screen from a drop-down or make a single-instance app with the tick of a box.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  6. #6
    Hyperactive Member Troy Lundin's Avatar
    Join Date
    May 2006
    Posts
    489

    Re: Convert VB to C#

    SharpDevelop can do this and many other things. Plus, it's free.
    Prefix has no suffix, but suffix has a prefix.

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2009
    Location
    Milan
    Posts
    810

    Re: Convert VB to C#

    What are pointers?

    I'm thinking my current project might expand and future project might be done in C# so why not learn it now with a "simple" working project

  8. #8
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: Convert VB to C#

    Pointers are datatypes that are used to point to a specific location in memory. This allows you to read and write from certain memory pretty fast.
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  9. #9
    PowerPoster
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,070

    Re: Convert VB to C#

    You want to learn C#, so you take a VB project and use an automatic converter...? That doesn't make much sense. If you want to learn C#, start a new simple project, or try to convert your project manually. You won't learn anything by having it converted for you. I, as others, advice you to start a new project, even if it's just for learning purposes, because that's much more fun than translating a working project, and you'll learn the language faster that way.

    If you don't know the syntax for a certain construct in C#, you can always use the automatic converters to convert a VB snippet to C# just to see how you do it in C#. For some things like loops you probably need to do that a few times, but then you'll have memorized it and you've learned something new

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width