Wednesday, January 5, 2011

Minimize An Application From A Button Click

procedure TForm1.Button1Click(Sender: TObject);
begin
   Application.Minimize;
end;

This is a rather minor snippet; but a simple trick often forgotten;  most useful in cases where you have a form without a titlebar, but still need the capability to minimize to the taskbar.  A common error is attempting to minimize the form, rather than the application itself.

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Kang Iwan K-sev | Thank's for your visit To My Site - Ridwan Mulyana | Cibeureum