Cannot make a form auto-create lazarus / 21-General ---------------------------------------------------------------------- ozoltan · 2022-11-03 20:14 Hi! I have the following problem: - I have a project ported from Delphi to Lazarus, named SQLAUTOM, after a few modifications it works well - I want to add a form that I used in another project - I copied an another into the same directory as the SQLAUTOM project files - open the file in Lazarus IDE - using Project / Add file to project menu added this form to the SQLAUTOM project - in Project Options / Forms I see my newly added form in the right side Available forms list - add the form to the left side Auto-create forms - click OK - I open again Project Options / Forms and the newly added form still in the right Available Forms list Simply I cannot make it auto-create. I have tried to write manually into the LPR file, it gives an errorű message. Also tried the followings : - remove the newly added form from project but keep it open in the IDE - create from IDE a totally new form - name it differently then the previous one - copy the whole content from the not working form into the newly created form - even the newly created form in the Availabe Forms list and still canot add to the Auto-Create forms list. Please help, what am I doing wrong ? ---------------------------------------------------------------------- howardpc · 2022-11-03 20:39 Quote from: ozoltan on November 03, 2022, 09:14:57 pmSimply I cannot make it auto-create. I have tried to write manually into the LPR file, it gives an errorű message. What is the error message? ---------------------------------------------------------------------- egsuh · 2022-11-04 01:56 Did you write        NewForm.Show; ? ---------------------------------------------------------------------- ozoltan · 2022-11-04 03:24 Quote from: howardpc on November 03, 2022, 09:39:54 pmQuote from: ozoltan on November 03, 2022, 09:14:57 pmSimply I cannot make it auto- create. I have tried to write manually into the LPR file, it gives an errorű message. What is the error message? In the LPR file where the forms are listed I added as the last line and when compiling gives the error message ';' expected XXX found, aboiut what I think that the compiler doenst expects anything else there. ---------------------------------------------------------------------- ozoltan · 2022-11-04 03:26 Quote from: egsuh on November 04, 2022, 02:56:50 amDid you write        NewForm.Show; ? When I wanted to use that newly added module, then yes I used : NewForm.Show. Then I get an error message that unknown address meaning for me that that module doesnt exist in the memory ---------------------------------------------------------------------- ozoltan · 2022-11-04 04:06 Quote from: ozoltan on November 03, 2022, 09:14:57 pm It seems that I solved somehow: - changed the project type from {mode Delphi} to {mode objfpc} and in the Project Options too - in every form made the changes that the compiler was complaining - added manually to LPR file And it seems that is working. Thank You for reading and trying to help! Have a nice day! Zoltan ---------------------------------------------------------------------- CM630 · 2024-12-27 09:29 I have the same issue with Lazarus 4.0RC1 on Win10. I changed {$MODE Delphi} to {$MODE objfpc} in the LPR file, add the form to the left side Auto-create forms does not work. I press “OK” to close Project Options, then I reopen Project Options, the new form disappears from the left side and is shown only on the right side. Clean up and Build does not help. So I have to add the form manually in the LPR file (like I always did). Edit: I also changed {$MODE Delphi} to {$MODE objfpc} in the form itself - still the same.