在C#程序中, 显示一个信息为”This is test!”,标题为“Hello”的消息框,正确的语句是( )

分类: 计算机基础与程序设计(02275) 发布时间: 2024-08-15 19:07 浏览量: 1
在C#程序中, 显示一个信息为”This is test!”,标题为“Hello”的消息框,正确的语句是( )
A、MessageBox("this is a test!","Hello");
B、MessageBox .Show("this is a test!","Hello");
C、MessageBox("Hello","this is a test!");
D、MessageBox.Show ("Hello","this is a test!");
【正确答案】:B