加入System.Windows.Forms.MessageBox("内容","标题");
按F5键后,出现:“System.Windows.Forms.MessageBox”表示“类”,它在给定的上下文中无效。
这是怎么一回事呀?我刚学c#,问的问题很简单,但我不会,请帮一下,谢谢了!
…………
…………
static void Main() 
{
Application.Run(new Form1());
} private void button1_Click(object sender, System.EventArgs e)
{
System.Windows.Forms.MessageBox("内容","标题");
}