C# formatting a MessageBox

前端 未结 5 1247
你的背包
你的背包 2020-12-19 01:32

I want to display a MessageBox alerting the user that the process is complete, and giving a breakdown on how long each stage of the process took. I\'ve got the text that I w

5条回答
  •  情书的邮戳
    2020-12-19 02:23

    I use this:

    public void myMessageBox(object str)
    {
        System.Windows.Forms.MessageBox.Show( new System.Windows.Forms.Form{ TopMost = true, Width = 300}, str.ToString() );
    }
    

提交回复
热议问题