使用System.Windows.Forms的C#不存在

Fin*_*ize 4 c#

我试着添加:

using System.Windows.Forms 
Run Code Online (Sandbox Code Playgroud)

但它给我一个错误.

我知道我必须把它装到我的VS2012上,但我不知道怎么做.我到处搜索并尝试了我发现的一切,但这些都没有帮助我.

@edit在网上搜索1小时...写完这篇文章2分钟后我发现...项目>>添加参考...

解决了 :]

Cas*_*nco 10

如果你使用Visual Studio中,右键单击引用在项目文件夹,选择Add Reference ...然后在.NET选项卡上,选择System.Windows.Forms的,然后单击确定.


Pio*_*fer 5

右键单击解决方案资源管理器中的项目引用,选择Add Reference ...,您必须找到System.Windows.Forms程序集(在Assemblies => Framework下)并将其添加到项目中.