Topic: Date on form
Hello everyone, I would like to know how to display the system time in a TextBox without going through DateTimePicker, I would like it to remain displayed permanently. THANK YOU
My Visual Database → Talks about all → Date on form
Hello everyone, I would like to know how to display the system time in a TextBox without going through DateTimePicker, I would like it to remain displayed permanently. THANK YOU
Hello everyone, I would like to know how to display the system time in a TextBox without going through DateTimePicker, I would like it to remain displayed permanently. THANK YOU
var
Time: TTimer;
procedure Form1_OnShow (Sender: TObject; Action: string);
begin
Time := TTImer.Create(Form1);
Time.Enabled := True;
Time.Interval := 100;
Time.OnTimer := @NowTime;
end;
procedure NowTime;
begin
Form1.Label2.Caption := FormatDateTime('HH:MM:SS', Now);
end;
Thanks Vladimir, that's exactly what I wanted.
My Visual Database → Talks about all → Date on form
Powered by PunBB, supported by Informer Technologies, Inc.
Theme Hydrogen by Kushi