Jump to content
Sign in to follow this  

Set time in DateTimePick32

Recommended Posts


Hi all. I have a control WindowsForms10.SysDateTimePick32. I use this code:

$Test = _GetFileProperty("1.wmv", "Duration")


$a_DateX = StringSplit($Test, ":", 1)

Local $hDTP, $a_Date[7] = [False, @YEAR, @MON, @MDAY, $a_DateX[1], $a_DateX[2], $a_DateX[3]]

$hDTP = NET_ControlGetHandleByName("Form1", "", "dTime")


_GUICtrlDTP_SetFormat($hDTP, "H:mm:ss")

_GUICtrlDTP_SetSystemTime($hDTP, $a_Date)


I can put the text in the WindowsForms10.SysDateTimePick32, but when i try to save, will revert to 0:00:00. Can someone tell me what i´m doing wrong?


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.