Hello!

I'm developing an application for Windows Mobile 5.0, CF 2.0 SP1. This
application has two forms:

One of them acts as a Splash Screen. When it's loaded and visible, creates
the second form, execute some work on this second form and then show the form
and hide itself.

I'm going to explain it better with an example:

SplashForm loads and its visible.
Create SecondForm.
Call SecondForm.DoItsWork();
Call SecondForm.Show().
Call this.Hide();

Between SecondForm.Show() and this.Hide(); I can see the Desktop of Pocket PC.

How can I fix this?

Thanks!

Re: Prevent transtion between to forms by Fabien

Fabien
Tue Mar 11 05:12:44 CDT 2008

Hi,

You must hide the WM taskbar :
Find its handle:
int h = FindWindow("HHTaskBar", "");

http://fabdecret.blogspot.com/2007/05/find-window-handle.html

and hide it:
ShowWindow(h, SW_HIDE);

[DllImport("coredll.dll", CharSet=CharSet.Auto)]
public static extern int FindWindow(string lpClassName, string
lpWindowName);
[DllImport("coredll.dll", CharSet=CharSet.Auto)]
public static extern bool ShowWindow(int hwnd, int nCmdShow);

public const int SW_HIDE = 0x0000;
public const int SW_SHOW = 0x0001;

Don't forget to show it again when you exit from your application:

BR

Fabien Decret (Device Application Development MVP)
Windows Embedded Consultant

ADENEO (ADESET)
http://www.adeneo.adetelgroup.com/ | http://fabdecret.blogspot.com/


On 7 mar, 20:29, Liberado27 <Liberad...@discussions.microsoft.com>
wrote:
> Hello!
>
> I'm developing an application for Windows Mobile 5.0, CF 2.0 SP1. This
> application has two forms:
>
> One of them acts as a Splash Screen. When it's loaded and visible, creates
> the second form, execute some work on this second form and then show the form
> and hide itself.
>
> I'm going to explain it better with an example:
>
> SplashForm loads and its visible.
> Create SecondForm.
> Call SecondForm.DoItsWork();
> Call SecondForm.Show().
> Call this.Hide();
>
> Between SecondForm.Show() and this.Hide(); I can see the Desktop of Pocket PC.
>
> How can I fix this?
>
> Thanks!


Re: Prevent transtion between to forms by r_z_aret

r_z_aret
Tue Mar 11 14:30:57 CDT 2008

On Fri, 7 Mar 2008 11:29:01 -0800, Liberado27
<Liberado27@discussions.microsoft.com> wrote:

>Hello!
>
>I'm developing an application for Windows Mobile 5.0, CF 2.0 SP1. This
>application has two forms:
>
>One of them acts as a Splash Screen. When it's loaded and visible, creates
>the second form, execute some work on this second form and then show the form
>and hide itself.
>
>I'm going to explain it better with an example:
>
>SplashForm loads and its visible.
>Create SecondForm.
>Call SecondForm.DoItsWork();
>Call SecondForm.Show().
>Call this.Hide();
>
>Between SecondForm.Show() and this.Hide(); I can see the Desktop of Pocket PC.
>
>How can I fix this?

The simplest method would be to make the splash box fill the whole
screen. If you're real concern is making sure you're program is the
only one users see, then I recommend using google to look up
kiosk
in this thread ("kiosk mode" is a common term for "lock down").

>
>Thanks!

-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 478
Boston, MA 02116
www.penfact.com

Re: Prevent transtion between to forms by Liberado27

Liberado27
Fri Mar 14 11:00:04 CDT 2008

All the windows, including splash windows, are maximized without menu
covering the entire screen.

If I start the app from desktop I see the desktop, but if I start the app
from file browser I see the file browser. I always see the image of the "app
laying back".

Thanks!

"r_z_aret@pen_fact.com" wrote:

> On Fri, 7 Mar 2008 11:29:01 -0800, Liberado27
> <Liberado27@discussions.microsoft.com> wrote:
>
> >Hello!
> >
> >I'm developing an application for Windows Mobile 5.0, CF 2.0 SP1. This
> >application has two forms:
> >
> >One of them acts as a Splash Screen. When it's loaded and visible, creates
> >the second form, execute some work on this second form and then show the form
> >and hide itself.
> >
> >I'm going to explain it better with an example:
> >
> >SplashForm loads and its visible.
> >Create SecondForm.
> >Call SecondForm.DoItsWork();
> >Call SecondForm.Show().
> >Call this.Hide();
> >
> >Between SecondForm.Show() and this.Hide(); I can see the Desktop of Pocket PC.
> >
> >How can I fix this?
>
> The simplest method would be to make the splash box fill the whole
> screen. If you're real concern is making sure you're program is the
> only one users see, then I recommend using google to look up
> kiosk
> in this thread ("kiosk mode" is a common term for "lock down").
>
> >
> >Thanks!
>
> -----------------------------------------
> To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).
>
> Robert E. Zaret, eMVP
> PenFact, Inc.
> 20 Park Plaza, Suite 478
> Boston, MA 02116
> www.penfact.com
>

Re: Prevent transtion between to forms by r_z_aret

r_z_aret
Sat Mar 15 13:57:08 CDT 2008

On Fri, 14 Mar 2008 09:00:04 -0700, Liberado27
<Liberado27@discussions.microsoft.com> wrote:

>All the windows, including splash windows, are maximized without menu
>covering the entire screen.
>
>If I start the app from desktop I see the desktop, but if I start the app
>from file browser I see the file browser. I always see the image of the "app
>laying back".

If you see part of another program behind your application window,
your window is not covering the entire screen. You might find useful
info in my 22 June 2007 contribution to a thread called "Can CE's
title bar be covered up by other windows?" in this newsgroup.

>
>Thanks!
>
>"r_z_aret@pen_fact.com" wrote:
>
>> On Fri, 7 Mar 2008 11:29:01 -0800, Liberado27
>> <Liberado27@discussions.microsoft.com> wrote:
>>
>> >Hello!
>> >
>> >I'm developing an application for Windows Mobile 5.0, CF 2.0 SP1. This
>> >application has two forms:
>> >
>> >One of them acts as a Splash Screen. When it's loaded and visible, creates
>> >the second form, execute some work on this second form and then show the form
>> >and hide itself.
>> >
>> >I'm going to explain it better with an example:
>> >
>> >SplashForm loads and its visible.
>> >Create SecondForm.
>> >Call SecondForm.DoItsWork();
>> >Call SecondForm.Show().
>> >Call this.Hide();
>> >
>> >Between SecondForm.Show() and this.Hide(); I can see the Desktop of Pocket PC.
>> >
>> >How can I fix this?
>>
>> The simplest method would be to make the splash box fill the whole
>> screen. If you're real concern is making sure you're program is the
>> only one users see, then I recommend using google to look up
>> kiosk
>> in this thread ("kiosk mode" is a common term for "lock down").
>>
>> >
>> >Thanks!
>>
>> -----------------------------------------
>> To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).
>>
>> Robert E. Zaret, eMVP
>> PenFact, Inc.
>> 20 Park Plaza, Suite 478
>> Boston, MA 02116
>> www.penfact.com
>>

-----------------------------------------
To reply to me, remove the underscores (_) from my email address (and please indicate which newsgroup and message).

Robert E. Zaret, eMVP
PenFact, Inc.
20 Park Plaza, Suite 478
Boston, MA 02116
www.penfact.com