我想控制在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.Windows.Forms的
- 3. 引用System.Web和System.Windows.Forms
- 4. 我應該使用System.Windows.Forms的在MVP
- 5. 使用system.windows.forms參考不顯示asp.net 4.0
- 6. 如何在Ubuntu的MonoDevelop中使用System.Windows.Forms?
- 7. System.Windows.Forms中的AccessViolationException,在WPF中使用WinFormsHost
- 8. 參考System.Windows.Forms
- 9. System.windows和system.windows.forms
- 10. 痣和System.Windows.Forms
- 11. 參考System.Windows.Forms的
- 12. 在Ubuntu下的System.Windows.forms
- 13. 無法訪問System.Windows.Forms Android應用程序
- 14. C#,區別System.Window.Controls和System.Windows.Forms?
- 15. Resources.resx中的System.Windows.Forms參考
- 16. System.Windows.Forms的.NET Framework 4.6.1錯誤
- 17. 在Mono上使用system.windows.forms在Linux上開發
- 18. .NET System.Windows.Forms的的DateTimePicker CustomFormat不正確
- 19. Python System.Windows.Forms瀏覽文件對話窗口
- 20. 在System.Windows.UIElement中從System.Windows.Forms中打包控件
- 21. 如何在基於.NET Framework 4.0的應用程序中使用System.Windows.Forms,Version = 2.0.0.0?
- 22. 如何使用programmaticaly寫入Resx文件並在不使用System.Windows.Forms的情況下不使用亂碼?
- 23. 在WPF中工作時,我應該使用System.Windows.Controls還是System.Windows.Forms控件?
- 24. 通過徵收使用System.Windows.Forms的 命名空間</p> <p>在Asp.Net
- 25. C# - WPF - 獲取文件夾瀏覽器對話框而不使用System.Windows.Forms?
- 26. PowerShell System.Windows.Forms禁用列表框中的某些項目
- 27. 用於CLR項目的Intellisense - 例如沒有Intellisense System.Windows.Forms的
- 28. 在VSTA項目啓動時缺少對System.Windows.Forms的引用
- 29. System.Windows.Forms定時器在主線程上運行時不起作用
- 30. 無法將`System.Windows.Forms`引用添加到我的WCF服務庫
謝謝!我會嘗試的 – user1313872 2012-04-08 14:43:09
它已經在.NET 4 Framework Client Profile – user1313872 2012-04-11 19:34:09