开发者

How do I use a message box in C#?

开发者 https://www.devze.com 2023-02-19 15:11 出处:网络
How can I use a message box in C# without 开发者_开发问答a script?You haven\'t really specified your target application type, so:

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

精彩评论

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