How to assign an icon for subforms and dialogs? lazarus / 31-LCL ---------------------------------------------------------------------- Vodnik · 2019-02-11 21:00 I'm using TImageList for assigning icons for controls. For Forms I can see only Icon property. Is it possible to assign icon for a Form from ImageList? For Dialogs (e.g. TSaveDialog) I didn't find any property to assign icon. Is it possible anyway? ---------------------------------------------------------------------- wp · 2019-02-11 21:23 This code with an image list populated by some png images works for me: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TForm1.FormCreate(Sender: TObject);begin  ImageList1.GetIcon(0, Icon);end; The SaveDialog gets the icon from the form from which it is opened. ---------------------------------------------------------------------- Blaazen · 2019-02-11 21:43 I use this code for ImageLists with more resolutions, when I need higher (non-default) resolution: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i   aBMP:=TBitmap.Create;  ImageList.ResolutionForPPI[cIconWidth, 96, 1].GetBitmap(aImageIndex, aBMP);  FormXYZ.Icon.Assign(aBMP);  aBMP.Free;Maybe there's a simpler way.