Hi,

I'd like to develop a winform to launch CPL (control panel file) file and
set some values on it.

For example, %windir%\system32\inetcpl.cpl file (this file brings up IE
"Internet Options" dialog) and I'd like to set some values on the dialog,
e.g. "home page address" on the "General" tab, "customs level" on "security"
tab, edit "web sites" list on "privacy" tab, etc. etc. etc.

Is it doable in C#? If yes, how to? If no, any other way to approach this?

Please advice, thanks!
-P

Re: Automation - CPL files by Wiktor

Wiktor
Wed Apr 06 06:32:20 CDT 2005

> For example, %windir%\system32\inetcpl.cpl file (this file brings up IE
> "Internet Options" dialog) and I'd like to set some values on the dialog,
> e.g. "home page address" on the "General" tab, "customs level" on
> "security"
> tab, edit "web sites" list on "privacy" tab, etc. etc. etc.
>
> Is it doable in C#? If yes, how to? If no, any other way to approach
> this?
>
> Please advice, thanks!

did you try the shell:

Process.Start( "....\inetcpl.cpl" );

Wiktor Zychla



Re: Automation - CPL files by Paul

Paul
Wed Apr 06 17:51:03 CDT 2005

I know how to launch it, but don't know how to set some settings on the
dialog itself.

"Wiktor Zychla" wrote:

> > For example, %windir%\system32\inetcpl.cpl file (this file brings up IE
> > "Internet Options" dialog) and I'd like to set some values on the dialog,
> > e.g. "home page address" on the "General" tab, "customs level" on
> > "security"
> > tab, edit "web sites" list on "privacy" tab, etc. etc. etc.
> >
> > Is it doable in C#? If yes, how to? If no, any other way to approach
> > this?
> >
> > Please advice, thanks!
>
> did you try the shell:
>
> Process.Start( "....\inetcpl.cpl" );
>
> Wiktor Zychla
>
>
>

Re: Automation - CPL files by Wiktor

Wiktor
Thu Apr 07 08:02:40 CDT 2005

>I know how to launch it, but don't know how to set some settings on the
> dialog itself.

I am sorry for misunderstanding of your problem.

Anyway, I think this is not the right way to call a window and
programmatically manipulate its interface. I suggest you'd rather search for
the place where system stores this information (for example, the registry)
and update it there.

Wiktor Zychla