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 existing console application easily?
views:
1333answers:
2
+11
A:
Just add a new Winform, add the following code to your Main:
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
Then right click your project and select properties and change the "Output type" to Windows application and you're done.
AlbertEin
2008-09-27 23:21:25
Nice, proves i'm stupid.
Rayne
2008-09-27 23:28:10
+1
A:
For completeness - and for other newbs like me - you also need to add:
using System.Windows.Forms;
... to the top of Program.cs
dbruning
2009-03-31 00:58:24