Hey there. I'm making an application that will minimize to the tray, and notify the user when certain dates come about. I'm able to send it to the tray and hide the form with a button, but I wanted to make it so it would hide the form if they were to minimize the app as well. I'd also LIKE to make it so it still runs if they click the 'X' button, and only close when they right click and exit on the icon.
My only real issue, so far, is just making the app do what I want it to do when minimized. I tried using the ApplicationEvents object to use it's "onminimize" event. That works once, but if I then use my menu to "show" the form again...the minimize button stops working entirely. Normally I can minimize the thing to the task bar all I want, and use my menu to "hide" and "show" the form just fine. I just want to be able to "hide" the form on minimize and then "show" it with my menu.
Wow, I that was a lot of "off the cuff" rambling there. I hope someone understands my problem
Thanks for reading!
My only real issue, so far, is just making the app do what I want it to do when minimized. I tried using the ApplicationEvents object to use it's "onminimize" event. That works once, but if I then use my menu to "show" the form again...the minimize button stops working entirely. Normally I can minimize the thing to the task bar all I want, and use my menu to "hide" and "show" the form just fine. I just want to be able to "hide" the form on minimize and then "show" it with my menu.
Wow, I that was a lot of "off the cuff" rambling there. I hope someone understands my problem
Thanks for reading!