RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TForm.Icon Property

Specifies the icon that appears when the form is minimized.

Pascal
property Icon: TIcon;
C++
__property TIcon Icon;

Set the Icon property to provide an icon for the form. If Icon is not set, the system provides a default icon when the form is minimized.  

Delphi Examples: 

 

{
This code assigns an icon to a form when the form is created:
}
procedure TForm1.FormCreate(Sender: TObject);
begin
  Icon.LoadFromFile('MDIChild1.ICO');
end;

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!