Hello,

When you say it doesn't work, what do you mean? It does not compile, or it
does not work the way you expected?

If compiling is a problem, it could be that you forgot to add the unit of
form2 in the uses clause for the unit of form1.

Charl

On 7/14/07, German C. Basisty <[EMAIL PROTECTED]> wrote:

 Hi!



This is a very newby question, but you have to understand I'm a Linux c++
(console) developer, not familiar with Delphi.

I could install Lazarus, tryed a few examples, and now I'm trying to call
a form from another form. So I designed a form (Form1) with a button and a
second form, but it starts on a diferent unit or something. I want to make
the button on form1 call form2, but it seems this button does not know form2
exist. The statement I used was something like



procedure TForm1.Button1Click(Sender: TObject);

begin

  Form1.Hide;

  Form2.Show;

end;



This does not work J



Can someone tell me where to start reading??



Best regards




--
"I love deadlines. I especially love the whooshing sound they make as they
fly by." - Douglas Adams

Reply via email to