Calling Control Panel Items from C# .NET

Here is a list of command & Code snippet to run control panel item from c# code.
It is mostly used for Application Developement


Files to Include

using System.Diagnostics;

Code Snippet
 
ProcessStartInfo
procStartInfo = new ProcessStartInfo("control","command name");
Process proc = new Process();
proc.StartInfo = procStartInfo;
proc.Start();


List of Commands

Control panel tool                 Command
-----------------------------------------------------------------
Accessibility Options           access.cpl
Add New Hardware             sysdm.cpl add new hardware
Add/Remove Programs       appwiz.cpl
Date/Time Properties           timedate.cpl
Display Properties               desk.cpl
FindFast                              findfast.cpl
Fonts Folder                        fonts
Internet Properties                inetcpl.cpl
Joystick Properties               joy.cpl
Keyboard Properties            main.cpl keyboard
Microsoft Exchange             mlcfg32.cpl
Microsoft Mail Post Office  wgpocpl.cpl
Modem Properties               modem.cpl
Mouse Properties                main.cpl
Multimedia Properties        mmsys.cpl
Network Properties             netcpl.cpl
Password Properties            password.cpl
PC Card                               main.cpl pc card (PCMCIA)
Power Management (Windows 95)   main.cpl power
Power Management (Windows 98)   powercfg.cpl
Printers Folder                 printers
Regional Settings              intl.cpl
Scanners and Cameras      sticpl.cpl
Sound Properties               mmsys.cpl sounds
System Properties              sysdm.cpl

Here the second word is the command name.

Search This Blog

Link Within Related Posts Plugin for WordPress, Blogger...