简体   繁体   English

将vb6应用程序转换为c#时仅保留GUI?

[英]keep only GUI when converting vb6 app to c#?

I have a large VB6 app which I want to convert to C#. 我有一个大型VB6应用程序,我想将其转换为C#。

The majority of the code in VB6 is quite badly written. VB6中的大多数代码编写得很糟糕。

I thought that a good strategy would be to keep the GUI design since it is adequate and would be a pain to recreate. 我认为,一个好的策略是保留GUI设计,因为它足够了,并且很难重新创建。 But I would want to rewrite the code behind the GUI and the data layer. 但是我想重写GUI和数据层后面的代码。

I could keep the GUI design by using one of the VB6 to .NET converters provided by Microsoft. 我可以使用Microsoft提供的VB6到.NET转换器之一来保留GUI设计。

Would this be a good strategy? 这会是个好策略吗?

有几种迁移工具可以执行从VB6到.NET语言的迁移,当今最好的一种就是VBUC ,但是,如果您重写基础代码,也许最好也重写GUI层,因为迁移工具通常不会不能很好地完成gui迁移,生成的gui看起来通常很丑陋且“过时”。

Please refer to my post in your related thread stackoverflow 请参阅我在相关线程stackoverflow中的帖子

I would not. 我不会。 You have a great chance to build something good from the start. 您将有很大的机会从一开始就建立好的东西。 Don't simply import the old UI. 不要简单地导入旧的UI。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM