removing taskbar button for dialog boxes

  • Thread starter Thread starter Darren
  • Start date Start date
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
 
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.
 
Back
Top