Hello!
I have an app that starts up and has a starting form. One of the icons on this beginning Form opens a new form and lets the user give some information on a task they need to remember to do soon. Upon submitting this information, it takes the user back to the starting form, BUT also opens up another form to serve as a popup-reminder. This reminder is minimized to the system tray upon instantiation, and after 10 minutes (or the user clicking on the system-tray icon) it pops up and lets them give details about how they completed the thing it's reminding them to complete.
My problem: After the user submits the information they need to remember and they get dropped back to the beginning point, instinct says "get rid of this window, I no longer need it", and they close that mainForm. Since my App's Main() says Application.Run (mainForm) - when they close the mainForm it terminates the whole program, including the popup reminder. What I *want* is for the program not to terminate unless all windows (including the minimized popup) are closed, OR for the popup to run as a seperate App so that closing the first app doesn't affect it. Any guidance on which is better, and perhaps a nudge in the right direction? All help is appreciated!
Maxx
ps - Telling Main() to do Application.Run (formPopupRemin der) after instantiating and show()ing what's currently the mainForm won't work - because they could need to do other work off that mainForm, and this would make it so that upon submitting the information in the popup-reminder, it would close the whole app. An inverse problem from what I have now ;)
I have an app that starts up and has a starting form. One of the icons on this beginning Form opens a new form and lets the user give some information on a task they need to remember to do soon. Upon submitting this information, it takes the user back to the starting form, BUT also opens up another form to serve as a popup-reminder. This reminder is minimized to the system tray upon instantiation, and after 10 minutes (or the user clicking on the system-tray icon) it pops up and lets them give details about how they completed the thing it's reminding them to complete.
My problem: After the user submits the information they need to remember and they get dropped back to the beginning point, instinct says "get rid of this window, I no longer need it", and they close that mainForm. Since my App's Main() says Application.Run (mainForm) - when they close the mainForm it terminates the whole program, including the popup reminder. What I *want* is for the program not to terminate unless all windows (including the minimized popup) are closed, OR for the popup to run as a seperate App so that closing the first app doesn't affect it. Any guidance on which is better, and perhaps a nudge in the right direction? All help is appreciated!
Maxx
ps - Telling Main() to do Application.Run (formPopupRemin der) after instantiating and show()ing what's currently the mainForm won't work - because they could need to do other work off that mainForm, and this would make it so that upon submitting the information in the popup-reminder, it would close the whole app. An inverse problem from what I have now ;)
Comment