Rendering problem with WM%: Fullscreen forms

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Situation:
- JasJar WM5 phone app. in landscape mode
- CF2 Multiple form application
- Written using VB.NET 2005
- Forms are all maximized with all form controls etc disabled
- Form backcolor is black

When the forms are rendering from form.show call from another form,
the bar at the form top momentarily appears before the form appears in
fullscreen.
The top part of the form with the form name, that briefly renders using the
OS windows color/s shouldn't appear at all.???

The (typical) winows blue is claerly viewable for a fraction of a second.

Any ideas??



--
David Jones
Senior Lecturer
School of Electrical & Computer Engineering
RMIT University
+61 3 99255318
 
Hi,

Try to hide the taskBar :

//------ Hide/Show Taskbar and Taskmanager
private const int SW_HIDE = 0x00;


private const int SW_SHOW = 0x0001;


[DllImport("coredll.dll", CharSet = CharSet.Auto)]


private static extern IntPtr FindWindow(string lpClassName,
string lpWindowName);


[DllImport("coredll.dll", CharSet = CharSet.Auto)]


private static extern bool ShowWindow(IntPtr hwnd, int
nCmdShow);


[DllImport("coredll.dll", CharSet = CharSet.Auto)]


private static extern bool EnableWindow(IntPtr hwnd, bool
enabled);


private static void ShowTaskbar()
{


IntPtr h = FindWindow("HHTaskBar", "");


ShowWindow(h, SW_SHOW);


EnableWindow(h, true);


}


private static void HideTaskbar()
{


IntPtr h = FindWindow("HHTaskBar", "");


ShowWindow(h, SW_HIDE);


EnableWindow(h, false);


}


BR


Fabien Decret
Windows Embedded Consultant

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





David Jones a écrit :
 
Great , that works well.
I owe you a beer if we met up some time!

PSor others: Literally use the code with the "HHTaskBar" string unchanged.
I originally thought that this might have to be a specific window name/text
but no.

I've turned it into a DLL so I can reuse easily, including in my VB app.
Cheers
--
David Jones
Senior Lecturer
School of Electrical & Computer Engineering
RMIT University
+61 3 99255318


Fabien said:
Hi,

Try to hide the taskBar :

//------ Hide/Show Taskbar and Taskmanager
private const int SW_HIDE = 0x00;


private const int SW_SHOW = 0x0001;


[DllImport("coredll.dll", CharSet = CharSet.Auto)]


private static extern IntPtr FindWindow(string lpClassName,
string lpWindowName);


[DllImport("coredll.dll", CharSet = CharSet.Auto)]


private static extern bool ShowWindow(IntPtr hwnd, int
nCmdShow);


[DllImport("coredll.dll", CharSet = CharSet.Auto)]


private static extern bool EnableWindow(IntPtr hwnd, bool
enabled);


private static void ShowTaskbar()
{


IntPtr h = FindWindow("HHTaskBar", "");


ShowWindow(h, SW_SHOW);


EnableWindow(h, true);


}


private static void HideTaskbar()
{


IntPtr h = FindWindow("HHTaskBar", "");


ShowWindow(h, SW_HIDE);


EnableWindow(h, false);


}


BR


Fabien Decret
Windows Embedded Consultant

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





David Jones a écrit :
Situation:
- JasJar WM5 phone app. in landscape mode
- CF2 Multiple form application
- Written using VB.NET 2005
- Forms are all maximized with all form controls etc disabled
- Form backcolor is black

When the forms are rendering from form.show call from another form,
the bar at the form top momentarily appears before the form appears in
fullscreen.
The top part of the form with the form name, that briefly renders using the
OS windows color/s shouldn't appear at all.???

The (typical) winows blue is claerly viewable for a fraction of a second.

Any ideas??



--
David Jones
Senior Lecturer
School of Electrical & Computer Engineering
RMIT University
+61 3 99255318
 
This works almost for me.

I am using Windows CE 5.0, the taskbar is hidden, but i can not use the space of the screen, where the taskbar was.

Instead the space shows the background of my desktop, and my application looks like it is behind the desktop.

How do is use the "whole" screen ?
 
This works almost for me.

I am using Windows CE 5.0, the taskbar is hidden, but i can not use the space of the screen, where the taskbar was.

Instead the space shows the background of my desktop, and my application looks like it is behind the desktop.

How do is use the "whole" screen ?
 
Back
Top