问题
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