twinBASIC CustomControls Notes about the form designer - twinbasic/documentation GitHub Wiki
Notes about the form designer
For the painting of controls in the form designer, CustomControl instances are instantiated and then release immediately after painting has finished.