Using System.Windows.Forms

Go To StackoverFlow.com

-1

I Am trying to control the cursor in Visual Studio 2010 C#. I have the code for it (Cursor.Position = new Point(x, y);) but I need to include System.Windows.Forms to use that, or it just gives me an error. The thing is, it can't find Forms under windows! I have included System.Windows.Forms.dll in my assembly, but still no luck. Any help is appreciated.

2012-04-04 21:09
by user1313872


0

You should change the Target framework of your project to .NET 4 Framework Client profile.

/Tibi

2012-04-04 21:12
by Tibi
Thanks! I will try tha - user1313872 2012-04-08 14:43
It is already on .NET 4 Framework Client Profil - user1313872 2012-04-11 19:34


0

In VS2010 go to project -> add reference -> .net tab -> look for system.windows.forms -> ok, then add the using directive

2012-04-04 21:13
by BlackBear
I did that! "I have included System.Windows.Forms.dll in my assembly - user1313872 2012-04-05 14:25
Ads