控制台程序,载入界面。
using System;
using System.Reflection;
using System.Windows.Forms;
using System.Drawing;
class Class1:Form
{
public Class1()
{
}
[STAThread]
static void Main(string[] args)
{
Class1 aForm=new Class1();
aForm.Width=Screen.AllScreens[0].WorkingArea.Width+10;
aForm.Height=Screen.AllScreens[0].WorkingArea.Height+100;
Application.Run(aForm);
}
}