February 26th, 2004, 08:34 AM
TDateTimePicker in Delphi 6
I am facing a problem with Delphi and the TDateTimePiccker component.
I place it on the form and i have also a TEdit Box.What i want is when i click on a date on the TDateTimePicker...that date to be shown in the edit box.Any ideas?
February 29th, 2004, 05:33 AM
Hook to the OnChange event of the TDateTimePicker component like this:
procedure TForm1.DateTimePicker1Change(Sender: TObject);
Edit1.Text := DateToStr(DateTimePicker1.Date);
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne
"I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo