How can i capture the Form1->Onminimze event? In other words, when somebody presses the minimize button of a form, i want to run some code. (in this case hide it from the taskbar) with
Application->Minimize();
Form1->Hide();
This works fine, though i want it ran when the user presses the normal minimize button.
Second... why does this not bring the window to the front? (from a hidden and minimized state)
Form1->Show();
Application->Restore();
Application->BringToFront(
);
Any ideas? This code runs from a popummenuitem in the tray icon.
Start Free Trial