showing a form lazarus / 9-Editor ---------------------------------------------------------------------- mirttex · 2005-08-15 17:25 hi this is a newbie and easy question (I guess) but Im not having succes with opening another form. I used to prograns on VB6 but the sintax like formX.show doesn't work in here :-( , of course. so if anyone cold put the code here I'll be very happy! :-) thanks! ---------------------------------------------------------------------- marmin · 2005-08-15 17:34 please, elaborate. opening form? you can not make a new form in your project? ---------------------------------------------------------------------- Anonymous · 2005-08-15 17:43 hum sorry.. I have form1 and form2, I wanna call the form2 from the form1 by clicking on a button! ---------------------------------------------------------------------- Anonymous · 2005-08-15 17:58 hi i found this on the internet. you put the unit name of the sencond form at the uses word.. and on the button you put this Application.CreateForm(Tform,form);    form.Showmodal; I really need to put Application.Crea.....??? ---------------------------------------------------------------------- RudieD · 2005-08-15 19:35 You can just use ...   with TForm2.Create(Self) do   begin      ...      Name := 'SomeName';      Show;   end; ... Hope this helps ! ---------------------------------------------------------------------- RudieD · 2005-08-15 19:40 Hi , (Me again) The previous Sample will still enable you to switch between the forms. If you want to wait for the second form then you can use something like this ... with TForm2.Create(Self) do try   ...   Name := 'SomeName';   ShowModal;   if ModalResult = mrOk then   begin     ...   end; finally   Free; end; ... Hope this also helps !