转换"UserControl.Cls"; VB6转换为C#? [英] Convert "UserControl.Cls" of VB6 to C#?
本文介绍了转换"UserControl.Cls"; VB6转换为C#?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个VB6代码行,如下所示:
UserControl.Cls
(此代码段位于VB6的用户控件中)
我想将其转换为C#代码,该怎么做?谢谢.
I have a code line of VB6 as following:
UserControl.Cls
(this code snippet is in a usercontrol of VB6)
I want to convert it to C# code, how to do this? Thanks.
推荐答案
实际上,没有有效的转换"方法,因为困扰的VB6 API和.NET之间没有一对一的对应关系. .有一个转换工具,但是由于可以理解的原因,它不能很好地工作.如果您有VB.NET代码,则可以自动转换为C#.您需要编写代码,而不是转换"它.
—SA
There is no effective way of "conversion", in fact, because there is no one-to-one correspondence between the haunted VB6 API and .NET. There is a conversion tool, but it does not work well, due to the understandable reasons. If you had VB.NET code, automatic conversion to C# would be possible. You need to write code, not "convert" it.
—SA
这篇关于转换"UserControl.Cls"; VB6转换为C#?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文