Sign in to follow this  
Followers 0
fxg4758

Set time in DateTimePick32

1 post in this topic

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

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

WinActivate("Form1")

$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")

Sleep(250)

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

_GUICtrlDTP_SetSystemTime($hDTP, $a_Date)

Sleep(250)

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?

Regards.

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  
Followers 0