C#Windows Forms 使MessageBox顶层显示--xdd

方法1.

MessageBox.Show("Text", "Caption", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1, MessageBoxOptions.ServiceNotification);

方法2.

MessageBox.Show("Text", "Caption", MessageBoxButtons.OK, MessageBoxIcon.Information, MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly);

关于MessageBox的详细用法:https://blog.csdn.net/C_gyl/article/details/85336605

你可能感兴趣的:(C#Windows Forms 使MessageBox顶层显示--xdd)