2
Reply

C# MessageBox1 program

Maha

Maha

Mar 23 2007 5:17 PM
1.6k

I am a novice to C# program. When I tried to execute the following program following error message is coming. Please anybody explain.

 

“The type or namespace name 'Windows' does not exist in the class or namespace 'System' (are you missing an assembly reference?)”

using System;

using System.Windows.Forms;

public class MessageBox1

{

public static void Main()

{

MessageBox.Show("Hello!");

}

}




Answers (2)