Example


// Edit your header file and insert:
// private: // User declarations
// void __fastcall Minimized(TObject *Sender);

// Each time the application is minimized
// it will be automatically restored

__fastcall TForm1::TForm1(TComponent* Owner)
: TForm(Owner)
{
Application->OnMinimize = Minimized;
}

void __fastcall TForm1::Minimized(TObject *Sender)
{
Application->Restore();
}


See Also

Minimize
OnMinimize