Showing Control Panel applets programmatically

private void ShowApplet(AppletType applet)
{
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName = "ctlpnl.exe";
startInfo.Arguments = String.Format("cplmain.cpl,{0}", (int)applet);
Process.Start(startInfo);
}
public enum AppletType
{
Contrast,
Password,
OwnerInformation,
Power,
Memory,
About,
Backlight,
AlignScreen,
InputMethod,
SoundsReminders,
RemovePrograms,
Menus,
Buttons,
TodaySettings,
PCConnections,
ModemConnections,
Clock,
NetworkConnections,
RegionalSettings
}

留言

這個網誌中的熱門文章

使用VB讀取健保卡基本資料

使用VB讀取自然人評証卡號