1
,我很困惑,为什么当我创建控制台应用程序和“改造”与相同看的主要方法自动生成创建Windows窗体项目时,控制台仍然出现在屏幕上的主要方法:控制台应用程序的问题
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Globalization;
using System.Windows.Forms;
namespace Chapter16
{
static class Program
{
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new CultureTest());
}
}
}
此代码与位于Windows窗体应用程序的Program.cs中的代码相同。问题是控制台仍然出现在屏幕上,而Windows窗体项目中并非如此。这是为什么?
类Regadrs PK
确实。谢谢。 – pkolodziej 2009-04-25 11:11:10