开发者

C# Console Keeps On Popping Up On Form Application

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 开发者_JAVA百科void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new Form1());
        }
    }
}


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜