The form width and control width not match lazarus / 31-LCL ---------------------------------------------------------------------- LemonParty · 2026-02-24 21:41 In FormCreate event I do: 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 TImage.Width:= Width;and visually TImage have the same size like form. But then, in different procedure I set up a breackpoint and see that TImage.Width is 196 when form width is 360. I have a High DPI screen. How is this happening? ---------------------------------------------------------------------- wp · 2026-02-25 00:54 OnCreate may be too early. Put your code into OnActivate or OnShow or OnResize.