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?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Just add a new Winform, add the following code to your
Main:Also, be sure the
[STAThread]attribute is declared above yourMainfunction to indicate the COM threading model your Windows application will use (more about STAThread here).Then right click your project and select properties and change the ‘Output type’ to Windows application and you’re done.
EDIT :
In VS2008 the property to change is Application type