我建了个Windows应用程序,想改用调试台界面启动新建了类using System;namespace MyTest1
{
/// <summary>
/// MyTest1 的摘要说明。
/// </summary>
public class MyTest1
{ /// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main(string[] args)
{
MyForm mf1=new MyForm();
int btwid=mf1.button1.Width;
int bthei=mf1.button1.Height;
Console.WriteLine("button's width is:"+btwid);
}
}
}并且已经删掉原来MyForm里的入口.编译通过了,但是什么也不显示,也看不到调试台DOS窗口是不是这个改动要设置??