我想控制在Visual Studio 2010 C#中的遊標。我有它的代碼(Cursor.Position = new Point(x, y);
),但我需要包含System.Windows.Forms
來使用它,或者它只是給我一個錯誤。事情是,它無法找到Windows下的窗體!我在我的程序集中包含了System.Windows.Forms.dll
,但仍然沒有運氣。任何幫助表示讚賞。使用System.Windows.Forms
-1
A
回答
0
您應該將項目的目標框架更改爲.NET 4 Framework Client配置文件。
/提筆
0
在VS2010轉到項目 - >添加引用 - > .NET選項卡 - >找System.Windows.Forms的 - >確定,然後添加使用指令
+0
我做到了! 「我在我的程序集中包含了System.Windows.Forms.dll」 – user1313872 2012-04-05 14:25:54
相關問題
- 1. 不能使用System.Windows.Forms的
- 2. 引用System.Web和System.Windows.Forms
- 3. 如何在Ubuntu的MonoDevelop中使用System.Windows.Forms?
- 4. System.Windows.Forms中的AccessViolationException,在WPF中使用WinFormsHost
- 5. 我應該使用System.Windows.Forms的在MVP
- 6. 使用system.windows.forms參考不顯示asp.net 4.0
- 7. 參考System.Windows.Forms
- 8. 參考System.Windows.Forms的
- 9. 在Ubuntu下的System.Windows.forms
- 10. 無法訪問System.Windows.Forms Android應用程序
- 11. System.Windows.Forms的.NET Framework 4.6.1錯誤
- 12. C#,區別System.Window.Controls和System.Windows.Forms?
- 13. Resources.resx中的System.Windows.Forms參考
- 14. 在System.Windows.UIElement中從System.Windows.Forms中打包控件
- 15. .NET System.Windows.Forms的的DateTimePicker CustomFormat不正確
- 16. Python System.Windows.Forms瀏覽文件對話窗口
- 17. 如何在基於.NET Framework 4.0的應用程序中使用System.Windows.Forms,Version = 2.0.0.0?
- 18. 如何使用programmaticaly寫入Resx文件並在不使用System.Windows.Forms的情況下不使用亂碼?
- 19. 通過徵收使用System.Windows.Forms的 命名空間</p> <p>在Asp.Net
- 20. C# - WPF - 獲取文件夾瀏覽器對話框而不使用System.Windows.Forms?
- 21. 用於CLR項目的Intellisense - 例如沒有Intellisense System.Windows.Forms的
- 22. 無法將`System.Windows.Forms`引用添加到我的WCF服務庫
- 23. 事件序列和System.Windows.Forms中提供的所有鉤子
- 24. 爲什麼System.Windows.Forms BeginInvoke似乎在WPF中工作
- 25. VS編譯器警告在.net版本的system.windows.forms
- 26. System.Windows.Forms中的單元測試數據綁定
- 27. 具有System.Windows.Forms和自定義基類的自定義WinForms控件
- 28. Windows Mobile設備聲明無法找到程序集System.Windows.Forms 2.0.0.0
- 29. 無法加載文件或程序集System.Windows.Forms版本= 2.0.0.0
- 30. PHP DOTNET():捕獲System.Windows.Forms控件事件以創建可用的WIN gui
謝謝!我會嘗試的 – user1313872 2012-04-08 14:43:09
它已經在.NET 4 Framework Client Profile – user1313872 2012-04-11 19:34:09