Home > Back-end >  How to update to the current system time in the form, and, like a watch, kneel for advice
How to update to the current system time in the form, and, like a watch, kneel for advice

Time:10-20

Want to update to the current time in the form, and time is pressing, urgent seek god advice

CodePudding user response:

Put a timer control Ontimer event in
Void __fastcall TForm1: : tmr1Timer (TObject * Sender)
{
Caption=FormatDateTime (" hh: nn: ss ", Now ());
}

CodePudding user response:

Thank you very much,,,,