<div dir="ltr">Is there some reason, other than for Delphi compatibility, that the MainForm of an application must descend from TForm, rather than allowing other TCustomForm derived forms?<div><br></div><div>I was writing some custom form modules and was surprised that they cannot be made at the first form in an application.</div><div><br></div><div>Also I thought I submitted a patch for this a year ago, but TCustomForm.PaintWindow still prevents a form from doing any painting while in design mode. The simple fix is:</div><div><br></div><div><div>    Paint;</div><div>    if Designer <> nil then Designer.PaintGrid;</div></div><div><br></div><div>Rather than as it is now:</div><div><br></div><div><div><div>    if Designer <> nil then Designer.PaintGrid else Paint;</div></div></div><div><br></div></div>