I need to pull up windows time and date program in my vb application to allow users to set system time and date. How do I run this prog. I also need it to run under windows and NT.(differnt paths).
Thanks
Brandon
Printable View
I need to pull up windows time and date program in my vb application to allow users to set system time and date. How do I run this prog. I also need it to run under windows and NT.(differnt paths).
Thanks
Brandon
To retrieve the time and date: use the following:
lblTime.Caption = Time
lblDate.Caption = Date
To set,
Time = {The Time Goes Here}
Date = {The Date Goes Here}
-------- Simple --------
------------------
Tom Young, 14 Year Old
[email protected]
ICQ: 15743470 Add Me ICQ Me
AIM: TomY10
PERL, JavaScript and VB Programmer
Thanks for the reply.
I am already able to pull the date and time into my app ok. What I need to do it CHANGE the system date and time.
this will do what you want, just replace the modem.cpl with desired .cpl
'Launch Windows Modem Properties Dialog
Dim dblReturn As Double
dblReturn = Shell("rundll32.exe shell32.dll,Control_RunDLL modem.cpl", 5)