CodeItBetter Programming Another VB Programming Blog

How to open the Date and Time Properties Dialog (in two ways)

Posted on January 4, 2009
1
2
3
4
5
6
7
8
9
10
11
12
'System & API - How to open the Date and Time Properties Dialog (in two ways)
'Method 1:

Sub OpenDateTimePropertiesDialog()
    Call Shell("Control.exe Date/Time", vbNormalFocus)
End Sub
 
'Method 2:

Sub OpenDateTimePropertiesDialog()
    Call Shell("rundll32.exe shell32.dll,Control_RunDLL timedate.cpl,,0", vbNormalFocus)
End Sub
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


 

No trackbacks yet.