Opening Control Panels

Introduction

This example demonstrates how to open Control Panel items such as Internet Settings, Mouse, Monitor etc..

The .CPLs can be found in C:\Windows\System, just mess about with the numbers, there are too many to list. Basically the number represents the tab, ie Display->Settings/Appearance/Background etc..

' Internet Settings
x = Shell("Rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl")

' Internet->Security
x = Shell("Rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl,1")

' Printers Folder
x = Shell("Rundll32.exe shell32.dll,Control_RunDLL main.cpl @2")

' Fonts Folder
x = Shell("Rundll32.exe shell32.dll,Control_RunDLL main.cpl @3")

' Display->Appearance
x = Shell("Rundll32.exe shell32.dll,Control_RunDLL desk.cpl ,2")

' Display->ScreenSaver
x = Shell("Rundll32.exe shell32.dll,Control_RunDLL desk.cpl ,1")

' Display->Settings
x = Shell("Rundll32.exe shell32.dll,Control_RunDLL desk.cpl ,3")

' Display->Background
x = Shell("Rundll32.exe shell32.dll,Control_RunDLL desk.cpl ,5")

You might also like...

Comments

Kym Manson Till the Roof comes off Till the Lights go out Till my Legs give out Can't shut my mouth I will not fall, my Wisdoms all.

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“There are 10 types of people in the world, those who can read binary, and those who can't.”