I am building an application with a TPageControl.
This is used to dock forms. The user may use the form inside or outside the TPageControl.
Some times, the application may start with the form on the desktop, other times inside the TPageControl.
Forms are automatically created at startup.
This is the code I use to load the form in at runtime:
fPanelLights.ManualDock(pcMain);
fPanelLights.Show;
The problem is when I take the form out of the TPageControl manually at runtime, I get a stack overflow error.
Not sure why this is happening since the form is owned by the application.
How do I solve this?
Cheers, E.