Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB6 C#
Hi,
 
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 1:54am
Edited 20-Feb-13 22:59pm
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
Comments
vebi1000 at 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 at 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 at 18-Feb-13 9:42am
   
Thank you very much.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

Quote
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.

 
Source: http://social.msdn.microsoft.com/Forums/en-US/csharplanguage/thread/ea9dd08e-78fd-45ef-8858-38d38ed3a676/[^]
 
Just do it in C#. Do not convert!
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

  Permalink  
Comments
Devang Vaja at 18-Feb-13 8:05am
   
coool
me 2 using this.......
SChristmas at 18-Feb-13 8:06am
   
he want to convert the code of VB6 to C#
Devang Vaja at 18-Feb-13 8:09am
   
in this link there is also option of vb to csharp..
IpsitaMishra at 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.. :)
Devang Vaja at 19-Feb-13 0:31am
   
Yes, For Block Code It is Best Online Helper...
vebi1000 at 18-Feb-13 8:54am
   
vb.net and vb6 both are same, because in above link only vb.net to c# option available. I don't know it is not converting the above code that i have posted.

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

  Print Answers RSS
0 OriginalGriff 210
1 kbrandwijk 100
2 Richard MacCutchan 100
3 ProgramFOX 80
4 Mukesh Bhagat 65
0 Sergey Alexandrovich Kryukov 9,050
1 OriginalGriff 8,151
2 CPallini 2,613
3 Richard MacCutchan 2,221
4 Abhinav S 1,928


Advertise | Privacy | Mobile
Web02 | 2.8.140827.1 | Last Updated 21 Feb 2013
Copyright © CodeProject, 1999-2014
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