开发者

Reference to System.Windows.Forms

开发者 https://www.devze.com 2023-03-02 11:46 出处:网络
I\'m using C# to command something in Excel but when I type using System.Windows.Forms it\'s not recognized by Visual Studio

I'm using C# to command something in Excel but when I type

using System.Windows.Forms

it's not recognized by Visual Studio When I added the reference, I have this error message

开发者_JS百科

A reference to 'System_Windows_Forms' could not be added. The ActiveX type library '...' was exported from a .NET assembly and cannot be added as a reference. Add a reference to the .NET assembly instead

Do you have any solutions?


Did you try to add it from the COM-tab? Find the System.Windows.Forms.dll in the .NET-tab instead! (Sorting the dll-s by name makes it so much easier to find the right one.)


Reference Manager>Assemblies>Framework

Reference to System.Windows.Forms

0

精彩评论

暂无评论...
验证码 换一张
取 消