在你的項目管理器(solution Explorer)上展開,找到引用(reference),在其它上點右鍵,然后選增加引用(add reference...),在.net上的屬性頁里找到System.Windows.Forms.dll,加入就行