Click here to Skip to main content
15,885,435 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Updated 20-Feb-13 22:59pm
v2

 
Share this answer
 
Comments
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.
Sandesh M Patil 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.
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!
 
Share this answer
 
 
Share this answer
 
Comments
Devang Vaja 18-Feb-13 8:05am    
coool
me 2 using this.......
Sandesh M Patil 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.. :)
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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900