tags:

views:

51

answers:

1

When I run the following code, I want just my form to show up and not the console. How can I get this to work this way?

namespace NameSpace1
{
    public class Program
    {
        [STAThread]
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
    }
}
+8  A: 

Did you check your project properties? The output type may be set to 'Console Application' on the 'Application' tab.

Sandor Drieënhuizen
Bah another fast typer! +1
deltreme
Bingo! thanks :D
Soo