Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



How to Convert VB6 code to C#

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 27-01-2010
Member
 
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.

Reply With Quote
  #2  
Old 27-01-2010
Member
 
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 .
Reply With Quote
  #3  
Old 27-01-2010
Member
 
Join Date: Apr 2008
Posts: 2,000
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.
Reply With Quote
  #4  
Old 27-01-2010
Member
 
Join Date: May 2008
Posts: 2,291
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.
Reply With Quote
  #5  
Old 27-01-2010
Member
 
Join Date: May 2008
Posts: 2,383
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.
__________________
The FIFA Manager 2009 PC Game
Reply With Quote
  #6  
Old 27-01-2010
Member
 
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to Convert VB6 code to C#"
Thread Thread Starter Forum Replies Last Post
Convert pdf to swf using .net code Sheena_thakkar Software Development 9 07-01-2013 09:24 AM
pls convert this c++ to java code xSim21 Software Development 4 26-03-2012 07:32 PM
convert code to as3 gege79 Software Development 1 01-05-2011 01:29 AM
How to convert C++ code to VB6 LetsC Software Development 3 05-10-2009 06:10 PM
How to convert Javascript code to Html code Bosch Software Development 3 21-09-2009 02:20 PM


All times are GMT +5.5. The time now is 12:13 AM.