How to start setting from control panel?

4 views
Skip to first unread message

cetis

unread,
Aug 11, 1998, 3:00:00 AM8/11/98
to
I would like to show (start) Date/Time form from Control Panel to allow
user to change date. How can I do this??

Dejan Mauer
dejan...@iname.com

Christopher D. Pisano

unread,
Aug 11, 1998, 3:00:00 AM8/11/98
to
Run the file "timedate.cpl" in the Windows/System Directory.

Christopher Pisano
chris...@spectrumtech.com

Chris Eastwood

unread,
Aug 11, 1998, 3:00:00 AM8/11/98
to
Just do a 'Shell' in VB like :

Shell "rundll32.exe shell32.dll,Control_RunDLL timedate.cpl,,0"

VBNet has a whole list of control panel applets you can run.


Regards

Chris Eastwood
Software Engineer
ACNielsen Ltd

cetis wrote in message <01bdc4fb$55fb2640$9900...@dani.cetis.si>...

S. Merchant

unread,
Aug 11, 1998, 3:00:00 AM8/11/98
to
Hello Dejan,

Shell the rundll statement, You can also specify the TAB that will be
active:

To Call the Date & Time Properties/Options :
rundll32.exe shell32.dll,Control_RunDLL timedate.cpl,,0
(displays the Set Date & Time Properties tab)
rundll32.exe shell32.dll,Control_RunDLL timedate.cpl,,1
(diplays the Time Zone Properties tab)

Heres a complete list for calling Control Panel Applets for your reference:

To Call the whole control panel window :
rundl32.exe shell32.dll, Control_RunDLL
To Call the Accessibilty Properties/Options :
rundll32.exe shell32.dll,Control_RunDLL access.cpl,,5
(displays the General properties tab of Accessibilty options)
rundll32.exe shell32.dll,Control_RunDLL access.cpl,,1
(displays the Keyboard properties tab of Accessibilty options)
rundll32.exe shell32.dll,Control_RunDLL access.cpl,,2
(displays the Sound properties tab of Accessibilty options)
rundll32.exe shell32.dll,Control_RunDLL access.cpl,,3
(displays the General properties tab of Accessibilty options)
rundll32.exe shell32.dll,Control_RunDLL access.cpl,,4
(displays the General properties tab of Accessibilty options)

To Call the Add New Hardware Wizard :
rundll32.exe shell32.dll,Control_RunDLL systemdm.cpl @1
(Starts the Add New Hardware Wizard)

To Call the Add New Printer Wizard :
rundll32.exe shell32.dll,SHHelpShortcuts_RunDLL AddPrinter
(Starts the Add New Printer Wizard)

To Call the Add/Remove Programs Properties/Options :
rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,1
(displays the Install/Uninstall tab selected from Add/Remove Programs)
rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,2
(displays the Windows Setup tab selected from the Add/Remove Programs)
rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,3
(displays the Startup Disk tab selected from the Add/Remove Programs)


To Call the Dialup Networking Connection Dialog box :
rundll32.exe rnaui.dll,RnaDial internet
(displays the DUN Connection Dialog Box 'in the above command internet is
the name of DUN Connection)

To Call the Desktop Properties/Options :
rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,0
(displays the Background tab selected from the Desktop)
rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,1
(displays the Screen Saver tab selected from the Desktop)
rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,2
(displays the Appearance tab selected from the Desktop)
rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,3
(displays the Settings tab selected from the Desktop)

To Call the Multimedia & Sound Properties/Options :
rundll32.exe shell32.dll,Control_RunDLL main.cpl,,0
(displays the Multimedia/Audio Property tab)
rundll32.exe shell32.dll,Control_RunDLL main.cpl,,1
(displays the Multimedia/Video Property tab)
rundll32.exe shell32.dll,Control_RunDLL main.cpl,,2
(displays the Multimedia/Midi Property tab)
rundll32.exe shell32.dll,Control_RunDLL main.cpl,,0
(displays the Multimedia/CD Music Property tab)
rundll32.exe shell32.dll,Control_RunDLL main.cpl,,0
(displays the Multimedia/Advanced Property tab)
rundll32.exe shell32.dll,Control_RunDLL main.cpl,,0
(displays the Sound Property tab)

To Call the System Properties/Options :
rundll32.exe shell32.dll,Control_RunDLL sysdm.dll,,0
(displays the General Property tab from the System Properties/options)
rundll32.exe shell32.dll,Control_RunDLL sysdm.dll,,1
(displays the Device Manager Property tab from the System
Properties/options)
rundll32.exe shell32.dll,Control_RunDLL sysdm.dll,,2
(displays the Hardware Profiles Property tab from the System
Properties/options)
rundll32.exe shell32.dll,Control_RunDLL sysdm.dll,,3
(displays the Performance Property tab from the System Properties/options)

To Call the Network Properties/options :
rundll32.exe shell32.dll,Control_RunDLL netcpl.cpl
(displays the Network Configuration tab)

Hope this helps,
All the BEST.

------------------------------------------------------------------------
I Love Newgroup family :-)

Jia H(Henry Jia)

unread,
Aug 12, 1998, 3:00:00 AM8/12/98
to
Try this one:
Shell("control timedate.cpl").
Reply all
Reply to author
Forward
0 new messages