OK,
A second 'issue' with the DateTimePicker control.
When I use a format on hh:mm:ss, I can not get it to show 24 hour time, instead, when I toggle up and down on the hours sector (i.e. use the up and down arrows to cycle up or down, it just goes to 12, and not 13, 14 15 ... 23, 0 , 1, 2, 3 etc.
How do I get 24 hour time to be displayed?
Regards
Andrew
The format string is all explained at this link: http://msdn.microsoft.com/en-us/library/bb761726(VS.85).aspx
In your WM_CREATE for the form, set the date format to use 24-hour.
Function FORM1_WM_CREATE ( _
hWndForm As Dword, _ ' handle of Form
ByVal UserData As Long _ ' optional user defined Long value
) As Long
Local hWndControl As Dword
hWndControl = HWND_FORM1_DATETIMEPICKER1
DateTime_SetFormat hWndControl, "HH-mm-ss"
...etc...
Cheers Paul,
Much apreciated.
Regards
Andrew