在代码上添加using System.Windows.Forms; 然后在“解决方法资源管理器"里右击“引用”—"“添加引用”-“.net选项卡”找到System.Windows.Forms 确定即可 相关文章: 2022-02-15 2021-10-22