4

I tried to add:

using System.Windows.Forms 

But its shows me an error.

I know I must assembly that to my VS2012 but I srsly don't know how. I was searching everywhere and tried everything I've found but none of this helps me.

@edit 1 hour of searching in the web and... 2 minutes after write this post i found... Project >> add Reference...

Solved :]

4

2 回答 2

10

If you're using Visual Studio, right click the References folder in your project, select Add Reference... and then on the .NET tab, choose System.Windows.Forms and click OK.

于 2013-03-29T22:55:43.180 回答
5

Right click on project references in Solution Explorer, choose Add Reference..., there you have to find System.Windows.Forms assembly (under Assemblies=>Framework) and add it to the project.

于 2013-03-29T22:54:34.770 回答