messagebox.show引用错误 [英] messagebox.show reference error
本文介绍了messagebox.show引用错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在我的网络应用程序中使用messagebox.show()
作为参考我使用过System.Windows.Forms;
但是当我运行应用程序时会出现此错误:
编译器错误消息:CS0234:名称空间系统中不存在类型或命名空间名称Windows(你错过了程序集引用吗?)
我应该使用什么参考?
i am using messagebox.show("")
in my web appl
and as reference i have used using System.Windows.Forms;
but when i run the app results this error:
Compiler Error Message: CS0234: The type or namespace name ''Windows'' does not exist in the namespace ''System'' (are you missing an assembly reference?)
What reference should i use?
推荐答案
如果你想使用组件和控件哪个在命名空间System.Windows.Forms
中定义,您需要通过右键单击解决方案资源管理器中的项目并选择<$ c $来添加对它的引用c>上下文菜单中的添加参考
- >标签净
- >System.Windows.Forms
。
有关详细信息,请参阅MSDN [ ^ ]
If you would like to use the components and controls which are defined in the namespace"System.Windows.Forms"
, you need to add a reference to it by right mouse clicking the project in the solution explorer and choosing"Add Reference"
in thecontext menu
-> Tab"Net"
->"System.Windows.Forms"
.
For more details refer MSDN[^]
添加 System.Windows.Forms 从VS IDE的右侧面板引用..然后使用它:)
Add System.Windows.Forms reference from right panel of your VS IDE.. and then use it :)
这篇关于messagebox.show引用错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文