keep only GUI when converting vb6 app to c#?

扶醉桌前 提交于 2019-12-25 02:43:14

问题


I have a large VB6 app which I want to convert to C#.

The majority of the code in VB6 is quite badly written.

I thought that a good strategy would be to keep the GUI design since it is adequate and would be a pain to recreate. But I would want to rewrite the code behind the GUI and the data layer.

I could keep the GUI design by using one of the VB6 to .NET converters provided by Microsoft.

Would this be a good strategy?


回答1:


There are several migration tool to perform a migration from VB6 to a .NET language, one of the best today is VBUC , however if your rewriting your underlying code maybe it is better to rewrite also the GUI layer, because the migration tools usually don't do a perfect job with gui migration and the generated gui often looks ugly and "old-style".




回答2:


Please refer to my post in your related thread stackoverflow

I would not. You have a great chance to build something good from the start. Don't simply import the old UI.



来源:https://stackoverflow.com/questions/8192468/keep-only-gui-when-converting-vb6-app-to-c

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!