Forum > Editor

showing a form

(1/2) > >>

mirttex:
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:
please, elaborate.

opening form? you can not make a new form in your project?

Anonymous:
hum sorry.. I have form1 and form2, I wanna call the form2 from the form1 by clicking on a button!

Anonymous:
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:
You can just use
...  
  with TForm2.Create(Self) do  
  begin
     ...
     Name := 'SomeName';
     Show;
  end;
...

Hope this helps !

Navigation

[0] Message Index

[#] Next page

Go to full version