[solved] Datamodule not in project lazarus / 16-Databases ---------------------------------------------------------------------- WimS · 2020-07-14 17:43 Fresh install Windows 10 64bit, Lazarus v2.0.10r63526 File new Application. File new form (unit2 below) file new datamodule (unit3 below) then save. Result: program project1; {$mode objfpc}{$H+} uses   {$IFDEF UNIX}{$IFDEF UseCThreads}   cthreads,   {$ENDIF}{$ENDIF}   Interfaces, // this includes the LCL widgetset   Forms, Unit1, Unit2, Unit3   { you can add units after this }; {$R *.res} begin   RequireDerivedFormResource:=True;   Application.Scaled:=True;   Application.Initialize;   Application.CreateForm(TForm1, Form1);   Application.CreateForm(TForm2, Form2);   Application.Run; end. Problem: the datamodule form is not created. (Application.CreateForm) Tested on 2 PC's result the same, what I doing wrong? (I did it manual and then everything is OK) best regards WimS ---------------------------------------------------------------------- TRon · 2020-07-14 18:08 @WimS Lazarus IDE -> Menu -> Project -> Project Options. Treeview in Dialog: Project options -> Forms. There you can see a list of Auto-created forms and Available forms. Is your datamodule listed there ? I have no idea if there is a setting/option especially for datamodules that could turn on/off auto-creation. ---------------------------------------------------------------------- howardpc · 2020-07-14 18:13 Alternatively, you can manually add a Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i Application.CreateForm(TDataModule1, DataModule1);line to your project's .lpr ---------------------------------------------------------------------- WimS · 2020-07-14 18:17 The Datamodule was at available forms and I moved it to auto-creation. Thank you very much, now it is working. ---------------------------------------------------------------------- TRon · 2020-07-14 18:37 @WimS: Ok, Thank you for reporting back. Happy coding ! PS: could you do us a favour and edit your first post and insert [solved] before your original topic-subject ? That way people know your issue was solved without the need to read the thread. It is common courtesy to do it, although not mandatory.