Ads Inside Post

Search in This Blog

System properties dialog box


Problem:

Sometime you are developing a software in the winform environment and yo need to to
open different system properties dialog box from your software. then How to open windows System Properties Dialog box?

System properties dialog box
















Solution:

To open system properties dialog box you will run "shell32.dll" from "rundll32.exe".

Example:

To open System Properties dialog box:
ans = Shell("rundll32.exe shell32.dll,Control_RunDLL sysdm.cpl @1", 6)
To open Sound and Audio Devices Properties:
ans =Shell("rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl @1", 6)
To open Date and Time Properties:
ans = Shell("rundll32.exe shell32.dll,Control_RunDLL timedate.cpl", 6)
To open Internet Properties:
ans =Shell("rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl,,0", 6)
To open Keyboard Properties:
ans = Shell("rundll32.exe shell32.dll,Control_RunDLL main.cpl @1", 6)
To open Mouse Properties:
ans = Shell("rundll32.exe shell32.dll,Control_RunDLL main.cpl @0", 6)
To open Regional and Language Options:
ans = Shell("rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,0", 6)
To open Add or Remove Programs:
ans = Shell("rundll32.exe shell32.dll,Control_RunDLL appwiz.cpl,,1", 6)
To open Display Properties:
ans =Shell("rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,0", 6)
To open Game Controllers:
ans =Shell("rundll32.exe shell32.dll,Control_RunDLL joy.cpl", 6)
To open Phone and Modem Options:
ans =Shell("rundll32.exe shell32.dll,Control_RunDLL modem.cpl", 6)