开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜