How to create forms at run time in Free Pascal/Lazarus

When you add a new form in Lazarus project, it will be created automatically when application starts. If you want to create forms only when needed to reduce memory consumption, or to create many instances of that form during application execution, you can create it at run time using the following procedures: Suppose that your…