How do I convert a .NET console application to a Winforms or WPF application

后端 未结 2 1832
余生分开走
余生分开走 2020-11-30 05:19

I frequently start with a simple console application to try out an idea, then create a new GUI based project and copy the code in. Is there a better way? Can I convert my ex

2条回答
  •  爱一瞬间的悲伤
    2020-11-30 05:58

    For completeness - and for other newbs like me - you also need to add:

    using System.Windows.Forms;

    ... to the top of Program.cs

提交回复
热议问题