Hi,
ShowDialog can not work with FormWindowState.Minimized. It is by design. Consider using Show(this) and
foreach (Form form in Application.OpenForms){
form.WindowState = FormWindowState.Minimized;
}
For your reference: Why does modal-form disappear completely when minimized?
When the user minimizes the dialog window, there are no windows left that the user can access. Making the app unusable. Winforms ensures this cannot happen by automatically closing the dialog when it gets minimized.
Best regards,
Minxin Yu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.