开发者

How do I use a message box in C#?

How can I use a message box in C# without 开发者_开发问答a script?


You haven't really specified your target application type, so:

  • For a Console application:

    Console.WriteLine("hello world");
    
  • For a WinForms/desktop application:

    MessageBox.Show("hello world");
    
  • For a web application:

    alert('hello world');
    

    or you could also implement custom dialogs with javascript and jquery.


MessageBox.Show()

have you tried googling?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜