Click here to Skip to main content
12,818,489 members (33,518 online)
Rate this:
Please Sign up or sign in to vote.
See more: VB6 C#

I want to convert this vb6 code into c#. I am very new to c# itself so i am not able to convert it by myself so anyone suggest me with any software (free) that can do this.

Thanks in advance.
Posted 18-Feb-13 2:54am
Updated 20-Feb-13 23:59pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

vebi1000 18-Feb-13 8:53am
Can i convert VB6 to c# using above link you have provided. I have n't seen any option that will convert vb6 to c# in the above link.
SChristmas 18-Feb-13 9:39am
yes, read below this section

Remember, If you want convert VB6 to C# don't go with that option. Convert VB6 to VB.NET using VS wizard & make sure the code is working and then do VB.NET to C#
vebi1000 18-Feb-13 9:42am
Thank you very much.
Rate this: bad
Please Sign up or sign in to vote.

Solution 3


The problem with conversion is that VB6 and .NET have totally different programming paradigms. VB6 was a procedural and object-based language, whereas .NET is fully object oriented, and this means that the way you would probably want to design your API will be rather different. The error handling capabilities are totally different, i.e. VB6 uses On Error with error numbers, whereas .NET uses exception classes and structured error handling, so the way you would want to design the exception management would be totally different (note that this also forms part of the API). In addition, things that you would have written yourself before now can often be handled by framework classes so you would write code in a different way too.


Just do it in C#. Do not convert!
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Devang Vaja 18-Feb-13 8:05am
me 2 using this.......
SChristmas 18-Feb-13 8:06am
he want to convert the code of VB6 to C#
Devang Vaja 18-Feb-13 8:09am
in this link there is also option of vb to csharp..
IpsitaMishra 18-Feb-13 8:18am
yes ofcourse but if we want to change a block of code then it help better.If we want to change the entire project then it is not good option.. :)
vebi1000 18-Feb-13 8:54am and vb6 both are same, because in above link only to c# option available. I don't know it is not converting the above code that i have posted.
Devang Vaja 19-Feb-13 0:31am
Yes, For Block Code It is Best Online Helper...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170308.1 | Last Updated 21 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100