Visual Basic System Services
Adding Control Panel Functions to a VB Application: O-R
     
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:   ODBC32 Data Source Administrator
Open With
Passwords Properties
Ports (WinNT)
Power Management Properties
Printer
Regional Settings
     
 Prerequisites
  
None.

Regional Settings
   
module: INTL.CPL
   
command: rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,0
result: displays the Regional Settings property page
   
command: rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,1
result: displays the Numbers property page
   
command: rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,2
result: displays the Currency property page
   
command: rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,3
result: displays the Time property page
   
command: rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,4
result: displays the Date property page
   
command: rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,5
result: displays the Locales property page (NT only)
   

ODBC32 Data Source Administrator
   
module: ODBCCP32.CPL
   
command: rundll32.exe shell32.dll,Control_RunDLL odbccp32.cpl
result: displays the ODBC32 Data Source Administrator properties dialog
   

Open With
     
module: SHELL32.DLL
   
command: rundll32.exe shell32.dll,OpenAs_RunDLL {drive:\path\filename}
result: displays the application/file "Open With" dialog
     
result: passing the full file drive, path and name as a parameter will cause the dialog to display the line "Click the program you want to use to open the file '{filename}'".
   

Passwords Properties
   
module: PASSWORD.CPL
   
command: rundll32.exe shell32.dll,Control_RunDLL password.cpl
result: displays the Passwords properties, Change Passwords tab
   

Ports (WinNT)
   
module: PORTS.CPL
   
command: WinNT: rundll32.exe shell32.dll,Control_RunDLL ports.cpl
result: displays the COM Ports Settings Dialog
   

Power Management Properties
   
module: POWERCFG.CPL
   
command: rundll32.exe shell32.dll,Control_RunDLL powercfg.cpl
result: displays the Power Management properties, Power Schemes tab
   

Printer
   
module: SHELL32.DLL
   
command: rundll32.exe shell32.dll,SHHelpShortcuts_RunDLL PrintersFolder
result: displays the Printers Folder (including Add Printer)
   
command: rundll32.exe shell32.dll,Control_RunDLL main.cpl @2
result: Also displays the Printers Folder (including Add Printer)
   

 
 

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