命名空间system.windows中不存在“表单” [英] 'Forms' does not exist in the namespace system.windows

查看:94
本文介绍了命名空间system.windows中不存在“表单”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始使用c#,并且在弄弄我从某个论坛获得的一些代码示例。

I have just started working on c#, and was fiddling with some code sample that I got from some forum.

此代码使用的是命名空间正在使用system.windows.forms ,但我遇到了错误:

This code is using a namespace using system.windows.forms for which I am getting an error:


不存在表单命名空间system.windows。

Forms does not exist in the namespace system.windows.

我也收到与 senddown & sendup ,我相信它是在 Forms 命名空间中。

Also I am getting some error related to undefined functions for senddown & sendup which I believe to be in the Forms name space.

我正在使用Visual Studio 10(带有.net frame work 4.0)。知道如何解决此错误吗?

I am using visual studio 10 (with .net frame work 4.0). Any idea how to fix this error?

推荐答案

在解决方案树中展开项目,右键单击引用上的code>,添加引用,选择 System.Windows.Forms 在 $code>框架选项卡上。

Expand the project in Solution Tree, right click on References, Add Reference, Select System.Windows.Forms on Framework tab.

有时您需要添加对某些非默认程序集的引用

You need to add reference to some non-default assemblies sometimes.

这篇关于命名空间system.windows中不存在“表单”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆