开发者

Show Modal dialog

开发者 https://www.devze.com 2023-03-12 08:26 出处:网络
How can I create a modal dialog in winform without creating a new taskbar item? I\'m instanciating my modal as:

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

0

精彩评论

暂无评论...
验证码 换一张
取 消