PDA

View Full Version : Activating a Control Panel properties dialog


JLGauntt
03-02-2006, 05:07 PM
Hi -

For obscure reasons, I would like my setup to automatically bring up a control panel properties dialog. A 'Mouse' dialog for example. I can't figure out how to specify the location. For example, the following line doesn't work:

Shell.Execute("Control Panel\\Mouse", "open", "", "", SW_SHOWNORMAL);

Any thoughts?

Thanks -

--- janet

Intrigued
03-02-2006, 05:37 PM
File.Open(_SystemFolder.."\\main.cpl", "", "")

There are other (I have posted this before, fwiw) .cpl (think .exe) files in the System32 folder. To see them I just click the "Type" column heading and then I scroll to near the bottom to see all of the .cpl. WARNING: Not all the .cpl files you see in your system will be what a user will see. Do a search on say Google for a list of default .cpl files.

(Tested on Windows XP SP2)

ps. firewall.cpl is another that may come in handy.

JLGauntt
03-03-2006, 01:45 PM
Ah thank you - that worked great.

--- janet

Intrigued
03-03-2006, 07:04 PM
You are welcome Janet. Just remember... I get five percent of the proceeds from your first block buster release to the public.

;)