unit Unit1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls;
type
TForm1 = class(TForm)
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.FormCreate(Sender: TObject);
var
MyLabel: TLabel;
begin
MyLabel := TLabel.Create(Self);
MyLabel.Parent := Self;
MyLabel.Top :=100;
MyLabel.Left := 100;
MyLabel.Caption := 'Mylabel';
MyLabel.Visible := True;
end;
end.