Pocket PC 2003 always show...

  • Thread starter Thread starter Dan Bass
  • Start date Start date
D

Dan Bass

When my application installs itself, it puts a shortcut into the start up
folder so that it loads on warm reboot.

But I'd also like it to be the focussed application when waking the device
from sleep... At the moment it comes up with the main screen, and you have
to click on the short cut placed in the programs folder to show it again.

How do I stop this minimisation?

Thanks for your help.
 
There is an option in the Settings for Today screen which returns the device
to the today screen after a period of non-use, you can remove this setting
and your app should continue to be visible when the device is resumed from
suspend. You can also use P/Invoke to SHFullScreen to disable the startmenu
when your form is active if you wish to lock the user into your application.
Another option available is to P/Invoke SetWindowPos and set your form
top-most sample code for the latter here:-
http://blog.opennetcf.org/pfoot/PermaLink.aspx?guid=11ad82c3-a428-4aac-959f-27c9c3590662

One thing to check is whether your app is being closed or is still running
but not visible. You can use the Memory applet in Settings to search for
your forms caption.

Peter
 
Thanks, the client has already found the games and other features so it
would be cruel to lock them out completely. ;o)

That Settings for Today bit is what I was looking for, is there a way you
know of to set this during an install, or set via RAPI?

Thanks for your time.
Nice web site too!

Dan.
 
I should imagine it's in the registry somewhere, but haven't found it so far
:-(

Normally for a setting like this to take effect you must also broadcast a
WM_SETTINGSCHANGE message to the system after changing the registry value,
or soft reset the device to ensure the new setting is used. However I'll
have another look around the registry later to find the elusive setting...

Cheers,

Peter
 
Yuhooooo...

I got it...

I encounterd the same problem a few weeks ago, and I found the registry
which make users feel their application was gone (in fact invisible) when
they power on after several hours later.

HKLM\SOFTWARE\Microsoft\Shell\Rai\SessionTimeout, set it to zero...

^_^b

--

Best Regards,

Jan Yeh
MVP - Windows CE.NET, MCSD.NET, .NETcf consultant
http://blog.mvpcn.net/janyeh


Peter Foot said:
I should imagine it's in the registry somewhere, but haven't found it so
far :-(

Normally for a setting like this to take effect you must also broadcast a
WM_SETTINGSCHANGE message to the system after changing the registry value,
or soft reset the device to ensure the new setting is used. However I'll
have another look around the registry later to find the elusive setting...

Cheers,

Peter

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

Dan Bass said:
Thanks, the client has already found the games and other features so it
would be cruel to lock them out completely. ;o)

That Settings for Today bit is what I was looking for, is there a way you
know of to set this during an install, or set via RAPI?

Thanks for your time.
Nice web site too!

Dan.

Peter Foot said:
There is an option in the Settings for Today screen which returns the
device to the today screen after a period of non-use, you can remove
this setting and your app should continue to be visible when the device
is resumed from suspend. You can also use P/Invoke to SHFullScreen to
disable the startmenu when your form is active if you wish to lock the
user into your application. Another option available is to P/Invoke
SetWindowPos and set your form top-most sample code for the latter
here:-
http://blog.opennetcf.org/pfoot/PermaLink.aspx?guid=11ad82c3-a428-4aac-959f-27c9c3590662

One thing to check is whether your app is being closed or is still
running but not visible. You can use the Memory applet in Settings to
search for your forms caption.

Peter

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

"Dan Bass" <danielbass [at] postmaster [dot] co [dot] uk> wrote in
message
When my application installs itself, it puts a shortcut into the start
up folder so that it loads on warm reboot.

But I'd also like it to be the focussed application when waking the
device from sleep... At the moment it comes up with the main screen,
and you have to click on the short cut placed in the programs folder to
show it again.

How do I stop this minimisation?

Thanks for your help.
 
Thanks for that!


Jan Yeh_eMVP said:
Yuhooooo...

I got it...

I encounterd the same problem a few weeks ago, and I found the registry
which make users feel their application was gone (in fact invisible) when
they power on after several hours later.

HKLM\SOFTWARE\Microsoft\Shell\Rai\SessionTimeout, set it to zero...

^_^b

--

Best Regards,

Jan Yeh
MVP - Windows CE.NET, MCSD.NET, .NETcf consultant
http://blog.mvpcn.net/janyeh


Peter Foot said:
I should imagine it's in the registry somewhere, but haven't found it so
far :-(

Normally for a setting like this to take effect you must also broadcast a
WM_SETTINGSCHANGE message to the system after changing the registry
value, or soft reset the device to ensure the new setting is used.
However I'll have another look around the registry later to find the
elusive setting...

Cheers,

Peter

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

Dan Bass said:
Thanks, the client has already found the games and other features so it
would be cruel to lock them out completely. ;o)

That Settings for Today bit is what I was looking for, is there a way
you know of to set this during an install, or set via RAPI?

Thanks for your time.
Nice web site too!

Dan.

There is an option in the Settings for Today screen which returns the
device to the today screen after a period of non-use, you can remove
this setting and your app should continue to be visible when the device
is resumed from suspend. You can also use P/Invoke to SHFullScreen to
disable the startmenu when your form is active if you wish to lock the
user into your application. Another option available is to P/Invoke
SetWindowPos and set your form top-most sample code for the latter
here:-
http://blog.opennetcf.org/pfoot/PermaLink.aspx?guid=11ad82c3-a428-4aac-959f-27c9c3590662

One thing to check is whether your app is being closed or is still
running but not visible. You can use the Memory applet in Settings to
search for your forms caption.

Peter

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

"Dan Bass" <danielbass [at] postmaster [dot] co [dot] uk> wrote in
message
When my application installs itself, it puts a shortcut into the start
up folder so that it loads on warm reboot.

But I'd also like it to be the focussed application when waking the
device from sleep... At the moment it comes up with the main screen,
and you have to click on the short cut placed in the programs folder
to show it again.

How do I stop this minimisation?

Thanks for your help.
 
Nice one Jan Yeh! I'll make a note of it!

Peter

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

Jan Yeh_eMVP said:
Yuhooooo...

I got it...

I encounterd the same problem a few weeks ago, and I found the registry
which make users feel their application was gone (in fact invisible) when
they power on after several hours later.

HKLM\SOFTWARE\Microsoft\Shell\Rai\SessionTimeout, set it to zero...

^_^b

--

Best Regards,

Jan Yeh
MVP - Windows CE.NET, MCSD.NET, .NETcf consultant
http://blog.mvpcn.net/janyeh


Peter Foot said:
I should imagine it's in the registry somewhere, but haven't found it so
far :-(

Normally for a setting like this to take effect you must also broadcast a
WM_SETTINGSCHANGE message to the system after changing the registry
value, or soft reset the device to ensure the new setting is used.
However I'll have another look around the registry later to find the
elusive setting...

Cheers,

Peter

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

Dan Bass said:
Thanks, the client has already found the games and other features so it
would be cruel to lock them out completely. ;o)

That Settings for Today bit is what I was looking for, is there a way
you know of to set this during an install, or set via RAPI?

Thanks for your time.
Nice web site too!

Dan.

There is an option in the Settings for Today screen which returns the
device to the today screen after a period of non-use, you can remove
this setting and your app should continue to be visible when the device
is resumed from suspend. You can also use P/Invoke to SHFullScreen to
disable the startmenu when your form is active if you wish to lock the
user into your application. Another option available is to P/Invoke
SetWindowPos and set your form top-most sample code for the latter
here:-
http://blog.opennetcf.org/pfoot/PermaLink.aspx?guid=11ad82c3-a428-4aac-959f-27c9c3590662

One thing to check is whether your app is being closed or is still
running but not visible. You can use the Memory applet in Settings to
search for your forms caption.

Peter

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

"Dan Bass" <danielbass [at] postmaster [dot] co [dot] uk> wrote in
message
When my application installs itself, it puts a shortcut into the start
up folder so that it loads on warm reboot.

But I'd also like it to be the focussed application when waking the
device from sleep... At the moment it comes up with the main screen,
and you have to click on the short cut placed in the programs folder
to show it again.

How do I stop this minimisation?

Thanks for your help.
 
Back
Top