If you have been using Xojo, you may be used to adding controls at runtime using Control Sets. You may not know it but beginning with Xojo 2021r3, there is a better way. Using the new Desktop Controls introduced in Xojo 2021r3, you can add controls to a DesktopWindow at runtime using AddControl, just like you do with Xojo Mobile and Web projects.
Once you start using AddControl in your new Desktop projects (we definitely recommend that!) you’ll see it’s more convenient, plus you aren’t required to have a control to be used as a template already on the Window.
Related: Read “Simplified: Adding User Interface Controls at Runtime“