Results 1 to 6 of 6

Thread: How to Convert VB6 code to C#

  1. #1
    Join Date
    Dec 2009
    Posts
    42

    How to Convert VB6 code to C#

    I have coded an application in Visual basic 6.0 but now i want to convert this code (application) in to the C# language. Please tell me how can i convert VB6.0 code to C#. Is there any language translator available to achieve this conversion. Please help me pertaining to this matter any help would be appreciated highly.

  2. #2
    Join Date
    Apr 2008
    Posts
    1,948

    Re: How to Convert VB6 code to C#

    I think that you will have to convert the VB6 code to VB.Net first and after converting this VB 6.0 code to VB.Net code you can change it to the C # language. as far as i know the VB.net is a language which can run any program written in any programming language. Hence i think it would be better if you ae using the VB.Net .

  3. #3
    Join Date
    Apr 2008
    Posts
    2,005

    Re: How to Convert VB6 code to C#

    You can do this conversion by finding some websites which does online conversion of codes such as the developerfusion.com . After visiting this website you will see a large text area in which you will have to paste your code and after that press the convert button. This will generate the code in the language you prefer. But i am not sure of the security of your code.
    Last edited by kelfro; 27-01-2010 at 09:50 PM.

  4. #4
    Join Date
    May 2008
    Posts
    2,297

    Re: How to Convert VB6 code to C#

    I am not aware of any method which will directly convert your code to your desired preferably. But if your VB 6.0 code is working properly you could compile it as a DLL(dynamic link libraries ) and add it to the references in your C# project. This will help you to run your VB 6.0 code in the C# compiler . If nothing has worked for you so far try this.

  5. #5
    Join Date
    May 2008
    Posts
    2,389

    Re: How to Convert VB6 code to C#

    It is possible if you are using the Instant C# converter. This program converts the VB code to C# code instantly. With Instant C#, You can convert the VB 6.0 code to the C# code by just clicking a button. The C# code produced is closer to functional production-quality code than the code produced by any other VB to C# converter on the market today.

  6. #6
    Join Date
    Nov 2005
    Posts
    1,323

    Re: How to Convert VB6 code to C#

    As far as i now you can't convert VB6 to any of the .Net Language easily. Because the VB.Net is an object oriented language and VB6 is a linear language, you actually have to rewrite these codes. I will suggest you a simple way to achieve this try to create a class in VB.Net and translate all of your VB6 functions into it. You can make use of code converter but the rely on those codes.

Similar Threads

  1. Convert pdf to swf using .net code
    By Sheena_thakkar in forum Software Development
    Replies: 9
    Last Post: 07-01-2013, 09:24 AM
  2. pls convert this c++ to java code
    By xSim21 in forum Software Development
    Replies: 4
    Last Post: 26-03-2012, 06:32 PM
  3. convert code to as3
    By gege79 in forum Software Development
    Replies: 1
    Last Post: 01-05-2011, 12:29 AM
  4. How to convert C++ code to VB6
    By LetsC in forum Software Development
    Replies: 3
    Last Post: 05-10-2009, 05:10 PM
  5. How to convert Javascript code to Html code
    By Bosch in forum Software Development
    Replies: 3
    Last Post: 21-09-2009, 01:20 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,657,739.55636 seconds with 17 queries