Create (AOwner: TComponent);

When I perform a

form[i] = form.create(self);
form[i].visible := true;

It will pop an additional form for me.
However, if I say

button[i] := TButton.Create(Self); or
button[i] := TButton.Create(Form1);
button[i].visible := true;

No button will appear.

How come?
and how do I get it to appear?
LVL 4
binkzzAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
viktornetConnect With a Mentor Commented:
You need to set its parent like so.....

button[i] := TButton.Create(Self);
button[i].Parent := Form1;
button[i].visible := true;

Regards,
Viktor Ivanov
0
 
binkzzAuthor Commented:
(Edited by Computer101) you that's quick..

Here's your A plus an additional 50 points for speed.

Binkzz
0
 
viktornetCommented:
ThankZ ;->

Vik
0
 
viktornetCommented:
ThanZ ;->

Vik
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.