Show a message box from a class in c#?

后端 未结 4 1406
栀梦
栀梦 2021-01-07 16:55

How do you get a class to interact with the form to show a message box?

4条回答
  •  旧时难觅i
    2021-01-07 17:24

    using System.Windows.Forms;
    
    public class message
    {
        static void Main()
        {  
            MessageBox.Show("Hello World!"); 
        }
    }
    

提交回复
热议问题