C#中的消息框有时会出现在任务栏中

  • 本文关键字:任务栏 消息 c#
  • 更新时间 :
  • 英文 :


当前在我的应用程序中,有时会正确看到消息框,在某些情况下,在任务栏中看到的某些情况。

if (!flag)
{
   MessageBox.Show("Fileds Cannot be empty. Please follow the format", "Message");
   return false;
}

听起来您可能需要设置消息框的所有者属性,@charlie在这篇文章中回答C#/.NET MessageBox不是Modal

要使用MessageBox.Show(IWIN32Window,String,String)方法,详细信息在此处http://msdn.microsoft.com/en-us/library/4y3c0fky.aspx.aspx

最新更新