Ian Branch 130 Posted 6 hours ago MyCustomCalendar.pas Hi Team, Delphi 12.2 p2. 32 bit App. It builds and installs OK but when I go to add it to a form Delphi thinks about it for a while, way too long, and then falls over. 😞 It is a derivation of TMonthCalendar. Appreciate any insights.  Regards & TIA, Share this post Link to post
Lajos Juhász 300 Posted 6 hours ago Reading the code I believe it is the: procedure TMyCustomCalendar.CreateWnd; begin  inherited CreateWnd;  RecreateWnd; // Force the control to redraw and send MCN_GETDAYSTATE end;  Why do you want to create windows handle all the time? (just after it was created?) Share this post Link to post
Ian Branch 130 Posted 5 hours ago Tks Lajos, You, that fixed it Tks. I didn't think about the race condition it would set up.  Ian Share this post Link to post