C# MessageBox提示框

提示框: MessageBox.Show("用户名不能为空", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information);
错误警告框: MessageBox.Show(ex.Message, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Error);

原文地址:https://www.cnblogs.com/leiyf/p/5542910.html