简体   繁体   English

.show函数在visual studio中不起作用

[英].show function does not working in visual studio

I recently installed Visual Studio 2010 and when I write 我最近安装了Visual Studio 2010,当我写的时候

MessageBox.show("hello ");

It says show does not exists in type of system.windows.form.Message-box. 它说show在system.windows.form.Message-box的类型中不存在。

C# is case sensetive language. C#是案例敏感语言。 So "Show" and "show" are different. 所以“表演”和“表演”是不同的。
MessageBox. S how("hello ");
You may need to add using statement if there isn't System.Windows.Forms 如果没有System.Windows.Forms,您可能需要添加using语句
using System.Windows.Forms;
You can also type fully. 您也可以完全输入。
System.Windows.Forms.MessageBox.Show("hello ");
If dll is not referenced, it's in System.Windows.Forms.dll 如果未引用dll,则它位于System.Windows.Forms.dll中

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM