문제

I recently installed Visual Studio 2010 and when I write

MessageBox.show("hello ");

It says show does not exists in type of system.windows.form.Message-box.

도움이 되었습니까?

해결책

C# is case sensetive language. So "Show" and "show" are different.
MessageBox.Show("hello ");
You may need to add using statement if there isn't System.Windows.Forms
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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top