Solved

How to I add a component at runtime

Posted on 1998-06-10
1
144 Views
Last Modified: 2010-05-18
How to I add a component at runtime in Delphi 2.0
0
Comment
Question by:koger
1 Comment
 
LVL 2

Accepted Solution

by:
rene100 earned 50 total points
ID: 1351999
hi koger

this is an example how to create a new button (TButton):

var
NewButton: TButton;
begin
NewButton:=TButton.Create(Self)
NewButton.Parent:=form1;
NewButton.width:=100
.
.
NewButton.show;
end;

hope this helps

rene
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question