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!