Visual Basic System Services
Adding Control Panel Functions to a VB Application: D-F
     
Posted:   Friday September 17, 1999
Updated:   Monday December 26, 2011
     
Applies to:   VB4-32, VB5, VB6
Developed with:   VB4-32, Windows 95, VB6, Windows NT4
OS restrictions:   Win9x, NT4, 2000
Author:   VBnet - Randy Birch, Karl E. Peterson, Others (below)
     

Related:  

Rundll32: Control Panel Functions A-C
Rundll32: Control Panel Functions D-F
Rundll32: Control Panel Functions G-J
Rundll32: Control Panel Functions K-N
Rundll32: Control Panel Functions O-R
Rundll32: Control Panel Functions S-Z
     
 Below:   Date & Time Properties
Dial Up Networking (DUN)
Display Options (Standard Windows Display Property Page*)
FindFast
Fonts
Format Drive Dialog (floppy disk only)
  
 Prerequisites
  
None.

Date & Time Properties
   
module: TIMEDATE.CPL
   
command: rundll32.exe shell32.dll,Control_RunDLL timedate.cpl,,0
result: displays Set Date & Time properties tab
   
command: rundll32.exe shell32.dll,Control_RunDLL timedate.cpl,,1
result: displays the Time Zone properties tab
   

Dial Up Networking (DUN)
   
module: RNAUI.DLL
     
command: rundll32.exe rnaui.dll,RnaDial {name of connection to establish}
result: displays the Connect To dialog for the passed connection. If connected, displays the connection status dialog.
   
command: rundll32.exe rnaui.dll,RnaWizard
result: displays the Dial Up Networking Connection Wizard
     

Display Options (Standard Windows Display Property Page*)
   
module: DESK.CPL
   
command: rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,0
result: displays the Background tab selected
   
command: rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,1
result: displays the Screen Saver tab selected
   
command: rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,2
result: displays the Appearance tab selected
   
command: rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,3
result: displays the Settings tab selected
   
comments: Note: Your video adapter may install other property pages into DESK.CPL dynamically when selected with its own icon (i.e an ATI or Matrox control panel icon). Additionally, it also may invoke its own control panel applet mimicking the Windows display options.
   

FindFast
   
module: FINDFAST.CPL
   
command: rundll32.exe shell32.dll,Control_RunDLL findfast.cpl
result: displays the Office FindFast control panel applet (if installed)
   

Fonts
   
module: SHELL32.DLL
   
command: rundll32.exe shell32.dll,SHHelpShortcuts_RunDLL FontsFolder
result: displays the Fonts Folder in Explorer view
   
command: rundll32.exe shell32.dll,Control_RunDLL main.cpl @3
result: Also displays the Fonts Folder in Explorer view
   

Format Drive Dialog (floppy disk only)
   
module: SHELL32.DLL
   
command: rundll32.exe shell32.dll,SHFormatDrive
result: displays the floppy disk Format Drive dialog. Causes the Drive A to be accessed on showing.
           
Thanks to Marty List for sending in this command
   

 
 

PayPal Link
Make payments with PayPal - it's fast, free and secure!

 
 
 
 

Copyright ©1996-2011 VBnet and Randy Birch. All Rights Reserved.
Terms of Use  |  Your Privacy

 

 

Hit Counter