这是一个渐显窗体的程序,运行后form1窗体慢慢显现出来,我是在vs2005中新建---项目---空白项里写入这个代码的,运行后除了form1窗体显现外,还出现一个类似ms-dos的界面,是怎么回事啊?如何消掉呢?   如果在新建---项目---windows应用程序中输入代码则不会出现这个界面。
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;namespace Example002
{
    public partial class Form1 : System.Windows.Forms .Form /// Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        [STAThread]
        static void Main()
        {
            Application.Run(new Form1());
        }
        private void Form1_Load(object sender, EventArgs e)
        {
            this.timer1.Enabled = true;
            this.Opacity = 0;
            this.TopMost = true;
        }        private void timer1_Tick(object sender, EventArgs e)
        {
            if (this.Opacity < 1)
            {
                this.Opacity  = this.Opacity  + 0.05;
            }
            else
            {
                this.timer1.Enabled = false;
            }
        }        
    }
}