On the main form of my application, I provide the user with the
current datetime, similar to the pocket pc Today screen. I would like
the user to be able to click that date, and bring up the built in CE
Clock settings. Is there any way to instantiate this form from the
compact framework? For that matter, how would you get access to
other programs on the device programatically?

Re: Pocket PC Clock by Peter

Peter
Tue Oct 05 08:37:26 CDT 2004

You can launch other processes using the CreateProcess or ShellExecuteEx API
functions through P/Invoke, or use the ready-made Process class in OpenNETCF
SDF (www.opennetcf.org/sdf/)

To launch any of the control panel applets you can call ctlpnl.exe with a
specific command line e.g. for the Time control panel:-

Process.Start("ctlpnl.exe", "cplmain.cpl,16,0")

You can find more control panel identifiers here:-
http://www.pocketpcdn.com/articles/controlpanel.html

Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org

Do have an opinion on the effectiveness of Microsoft Windows Mobile and
Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/community/newsgroups


"Justin Beckwith" <pittboner@yahoo.com> wrote in message
news:4a00bbe8.0410050518.4ce4d1ca@posting.google.com...
> On the main form of my application, I provide the user with the
> current datetime, similar to the pocket pc Today screen. I would like
> the user to be able to click that date, and bring up the built in CE
> Clock settings. Is there any way to instantiate this form from the
> compact framework? For that matter, how would you get access to
> other programs on the device programatically?



Re: Pocket PC Clock by baramuse

baramuse
Tue Oct 05 10:34:03 CDT 2004



> Process.Start("ctlpnl.exe", "cplmain.cpl,16,0")
Do you know where I could find the equivalent command but for WindowsCE?

Re: Pocket PC Clock by Peter

Peter
Tue Oct 05 11:55:46 CDT 2004

Looking at the CE.NET 4.2 Emulator I would imagine it to be the same (I
haven't tested this example on ce.net yet), although possibly the id for the
DateTime applet is different, it still appears to be implemented within
cplmain.cpl.
However since CE is modular there may be differences depending on the shell
your device is equipped with.

Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org

Do have an opinion on the effectiveness of Microsoft Windows Mobile and
Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/community/newsgroups

"baramuse" <baramuse@hotmail.com> wrote in message
news:OFJ$ADvqEHA.3324@TK2MSFTNGP15.phx.gbl...
>
>
> > Process.Start("ctlpnl.exe", "cplmain.cpl,16,0")
> Do you know where I could find the equivalent command but for WindowsCE?



Re: Pocket PC Clock by Paul

Paul
Tue Oct 05 12:07:28 CDT 2004

The Windows CE 4.2 (not Pocket PC), shell launches Clock.exe first. If
that's not present, it launches CtlPnl.exe with the parameter "clock.cpl".

Paul T.

"Peter Foot [MVP]" <feedback@no-spam.inthehand.com> wrote in message
news:%23gxQqwvqEHA.536@TK2MSFTNGP09.phx.gbl...
> Looking at the CE.NET 4.2 Emulator I would imagine it to be the same (I
> haven't tested this example on ce.net yet), although possibly the id for
> the DateTime applet is different, it still appears to be implemented
> within cplmain.cpl.
> However since CE is modular there may be differences depending on the
> shell your device is equipped with.
>
> Peter
>
> --
> Peter Foot
> Windows Embedded MVP
> www.inthehand.com | www.opennetcf.org
>
> Do have an opinion on the effectiveness of Microsoft Windows Mobile and
> Embedded newsgroups? Let us know!
> https://www.windowsembeddedeval.com/community/newsgroups
>
> "baramuse" <baramuse@hotmail.com> wrote in message
> news:OFJ$ADvqEHA.3324@TK2MSFTNGP15.phx.gbl...
>>
>>
>> > Process.Start("ctlpnl.exe", "cplmain.cpl,16,0")
>> Do you know where I could find the equivalent command but for WindowsCE?
>
>



Re: Pocket PC Clock by Dave

Dave
Tue Oct 05 16:51:25 CDT 2004

On My CE.NET 4.2 device, I had to specify the paths. I also had a different
control panel identifier than petr showed. My C# code lookes like this:

proc.Exec(@"\Windows\CtlPnl.exe", @"\Windows\cplmain.cpl,13");

"baramuse" <baramuse@hotmail.com> wrote in message
news:OFJ$ADvqEHA.3324@TK2MSFTNGP15.phx.gbl...
>
>
> > Process.Start("ctlpnl.exe", "cplmain.cpl,16,0")
> Do you know where I could find the equivalent command but for WindowsCE?



Re: Pocket PC Clock by pittboner

pittboner
Wed Oct 06 09:35:13 CDT 2004

Thanks for the suggestions, I actually got the desired functionality using this:

http://samples.gotdotnet.com/quickstart/CompactFramework/doc/notifications.aspx



"Dave Hall" <dhall@nospam.deboy.com> wrote in message news:<uVsT3VyqEHA.1296@TK2MSFTNGP12.phx.gbl>...
> On My CE.NET 4.2 device, I had to specify the paths. I also had a different
> control panel identifier than petr showed. My C# code lookes like this:
>
> proc.Exec(@"\Windows\CtlPnl.exe", @"\Windows\cplmain.cpl,13");
>
> "baramuse" <baramuse@hotmail.com> wrote in message
> news:OFJ$ADvqEHA.3324@TK2MSFTNGP15.phx.gbl...
> >
> >
> > > Process.Start("ctlpnl.exe", "cplmain.cpl,16,0")
> > Do you know where I could find the equivalent command but for WindowsCE?