Delphi XE Add Icons and Images as Resources

Posted on August 27, 2020 at 4:16 pm

First Click on Project -> Resources and Images:

Then just click on “Add” to add an icon or image:

For icons, make sure to use all UPPERCASE characters.

Here is an example to use a icon resource in the trayicon:

procedure TForm1.Button4Click(Sender: TObject);
  TrayIcon1.Visible := False;
  TrayIcon1.Icon.LoadFromResourceName(hInstance, 'ICON1');
  TrayIcon1.Visible := True;

Receive updates via email

Other Posts

Updated Posts