如何在不創建新任務欄項目的情況下在winform中創建模態對話框?顯示模式對話框
我instanciating我的模式爲:
FrmDialog dialog = new FrmDialog();
dialog .ShowDialog(this);
如何在不創建新任務欄項目的情況下在winform中創建模態對話框?顯示模式對話框
我instanciating我的模式爲:
FrmDialog dialog = new FrmDialog();
dialog .ShowDialog(this);
編輯ShowInTaskBar屬性:
dialog.ShowInTaskbar = false;
dialog.ShowInTaskbar = false;
設置ShowInTaskBar
property到false
。
var dialog = new FrmDialog();
dialog.ShowInTaskbar = false;
dialog.ShowDialog();
因爲ShowDialog作爲模態窗口打開窗口,所以我不確定要理解 – 2011-06-09 22:00:29