From the help on Form:
Quote:
The first form that is shown will be the main form.
Program ends when the user closes the main form (or using AppClose).
When closing non main forms the forms actually hide and can be visible again using Form.Show
|
I understand that what happens to you is because the form you are trying to minimize is the main form, the first form that the program shows.
A workaround - call another form first (the form that you want to show after you minimize ) and immediately the form you want to show.
If the form is the only one, and you want to minimize the program - use notifyicon.dll