J
James Carnley
I am learning how to use windows forms and I have come across a small
problem. Whenever I run my program it opens a console window before
launching the windows form. The console doesnt go away until the program
exits. When you use VS.net to make a windows application it makes a form
without a console and I dont know why.
What specifies whether a program starts with a console or not?
I know that this code is probobly not right but I just made the most
basic thing I could.
Code:
using System;
using System.Windows.Forms;
namespace Tetris
{
class MainClass : System.Windows.Forms.Form
{
static void Main(string[] args)
{
Application.Run(new MainClass());
}
}
}
problem. Whenever I run my program it opens a console window before
launching the windows form. The console doesnt go away until the program
exits. When you use VS.net to make a windows application it makes a form
without a console and I dont know why.
What specifies whether a program starts with a console or not?
I know that this code is probobly not right but I just made the most
basic thing I could.
Code:
using System;
using System.Windows.Forms;
namespace Tetris
{
class MainClass : System.Windows.Forms.Form
{
static void Main(string[] args)
{
Application.Run(new MainClass());
}
}
}