你的引用不全
添加对System.Windows.Forms.dll,System.dll的引用using System.Windows.Forms;
using System;
using System.ComponentModel;
using System.Drawing;public class frmHelloApp : Form
{
public static void Main( string[] args )
{
frmHelloApp frmHello = new frmHelloApp();
Application.Run(frmHello);
}
}