I perform an extended data operation during which I show a modal status child form with a progress bar and a cancel button. The user is able to minimize this status form so that other things can be done while the process runs.
The problem is that the modal child status form does not minimize to the task bar but rather becomes a small rectangle with the minimize, restore, and close buttons at the lower left hand corner of the screen above the taskbar. Also, the parent form does not and will not minimize but remains in the way of the desktop.
I have these forms setup up as follows:
What do I need to change so that both the parent and the modal child are hidden when the child is minimized, so that there is only one button on the taskbar for both, and the child does not turn into a small rectangle?
The problem is that the modal child status form does not minimize to the task bar but rather becomes a small rectangle with the minimize, restore, and close buttons at the lower left hand corner of the screen above the taskbar. Also, the parent form does not and will not minimize but remains in the way of the desktop.
I have these forms setup up as follows:
Code:
class Parent : Form {
void ShowStatus() {
Status frmStatus = new Status();
frmStatus.ShowDialog(this);
}
}
class Status : Form {
Status() {
this.ShowInTaskbar = false;
}
}
What do I need to change so that both the parent and the modal child are hidden when the child is minimized, so that there is only one button on the taskbar for both, and the child does not turn into a small rectangle?