如何将Windows窗体应用程序从VB转换为C#

问题描述:

您好,我正在尝试将Windows窗体应用程序窗体从vb转换为c#,我想找到一种方法来进行这种跳跃,从而创建新的c#winforms

Hi i´m trying to convert a windows forms app forms from vb to c# and i´m want to find a way to make this jump whitout creating a new c# winforms

这可能会对您有所帮助.

http://www.developerfusion.com/tools/convert/vb-to-csharp/ [ ^ ]
This may help you.

http://www.developerfusion.com/tools/convert/vb-to-csharp/[^]


如果您使用的是VB6,则VB.net版本将尝试将您的应用程序升级到.net.

如果您使用的是VB.net,则可以查看SharpDevelop http://sharpdevelop.net/opensource/sd/ [ ^ ]
会将VB.net转换为C#.

(对于vb6到.net,请为您的应用程序的主要重做做准备)
If you are using VB6, the VB.net edition will try to upgrade your application to .net.

If you are using VB.net you can look at SharpDevelop http://sharpdevelop.net/opensource/sd/[^]
which will convert VB.net to C#.

(for vb6 to .net be prepared for a major redo of your application)


如果您具有有效的VB.net程序(至少是可编译的),
您可以将exe文件加载到.NET Reflector(www.reflector.net)中,
显示反汇编窗口,然后使用工具栏中的组合框
指定要显示的语言,在这种情况下为C#.

结果代码没有原始注释,也没有任何代码
由于#if-#else-#endif丢失而未编译的代码,但
Reflector是个很棒的工具.
If you have a working VB.net program (at least compilable, that is)
you can load the exe file into .NET Reflector (www.reflector.net),
show the dis-assembly window, then using the combobox in toolbar
specify the language to display, C# in this case.

The resulting code has none of the original comments and any code
that was not compiled due to a #if-#else-#endif is lost but
Reflector is a great tool.