Show Modal dialog
How can I create a modal dialog in winform without creating a new taskbar item?
I'm instanciating my modal as:
FrmDialog dialog = n开发者_开发知识库ew FrmDialog();
dialog .ShowDialog(this);
Edit the showInTaskbar property:
dialog.ShowInTaskbar = false;
Set the ShowInTaskBar
property to false
.
var dialog = new FrmDialog();
dialog.ShowInTaskbar = false;
dialog.ShowDialog();
dialog.ShowInTaskbar = false;
MSDN ShowInTaskbar
精彩评论