removing taskbar button for dialog boxes

D

Darren

is there any way to create a modal dialog that doesn't create a button on
the taskbar? I have a app that creates nested dialogs and I'd like for only
the main app to be displayed on the taskbar. Currently each dialog is
creating a button.

Thanks
 
R

RAVI KRISHNASWAMY [MSFT]

There is no easy way to do this. You can make your Form maximized by
setting this.WindowState = FormWindowState.Maximized and then show that as
a dialog but that would cover the entire display and would hide the
parent's taskbar also. If that is alright with you then you can try that.

Another possible alternative might be to make your Form borderless by
setting this.FormBorderStyle = FormBorderStyle.None, which allows you to
adjust the size of the Form however you like. You can then show that Form
as a dialog

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top