How to create a custom MessageBox?

后端 未结 4 1208
星月不相逢
星月不相逢 2020-11-27 06:09

I\'m trying to make a custom message box with my controls.

public static partial class Msg : Form
{
    public static void show(string content, string descri         


        
4条回答
  •  攒了一身酷
    2020-11-27 07:08

    You don't need the class to be static. Just do something like:

    public partial class Msg : Form
    {
        public static void show(string content, string description)
        {
             Msg message = new Msg(...);
             message.show();
        }
    }
    

提交回复
热议问题