forcing a Smart Minimize

G

Guest

How can I force a Smart Minimize (have it respond to the OK button in the
upper right corner the way that the "X" button works?)

We have an app that tracks time for different events. The user goes through
a set of forms selecting the activity and then a person. Then the timing
window appears. (I am using ShowDialog which causes the forms to stack.
After the user sees the tracking form, they click the OK button. I want the
app to respond to this as a Smart Minimize with all the stacked windows being
minimized. When the user clicks the app icon again, it comes back up to the
tracker window and the user selects "Done" which ends the time tracking and
returns it to the starting form ready for the next task.

Thanks,

-Rob C
 
G

Guest

You will probably have to implement some "Event" mechanism to notify all the
forms that they should Minimize/Hide themselves. All your forms will have to
register for this event and take appropriate action when they receive this
event.
 
G

Guest

Thanks Mark,

If I hide all the windows to perform a "Smart minimize", will they all
"reappear" appropriately when the user clicks on the app icon again? WIll
the last one created be at the top of the stacking order or do I have to
programmatically manage that?

Also, do you know of any good code examples that show how to do this?

Regards,

-Rob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top