Full Screen in Windows CE 5.0

6

6o6o

Hi i'm having a problem with my windows CE program,
I was trying to hide the taskbar and have my app full screen
but it doesn't work,
it will hide/show the task bar alright but will not maximise the form,
it still doeesn't cover the area where the taskbar usually is!

heres my code so far:

private void Form1_Load(object sender, EventArgs e)
{

int h = FindWindow("HHTaskBar", "");
EnableWindow(h, false);
ShowWindow(h, 0);
Update();
this.WindowState = FormWindowState.Maximized;
Update();
this.Height = Screen.PrimaryScreen.WorkingArea.Height;
Update();


}
private void Form1_Closing(object sender, CancelEventArgs e)
{
int h = FindWindow("HHTaskBar", "");
EnableWindow(h, true);
ShowWindow(h, 1);
Update();


}
 
6

6o6o

Hi!

6o6owrote:
Hi i'm having a problem with my windows CE program,
I was trying to hide the taskbar and have my app full screen
but it doesn't work,
it will hide/show the task bar alright but will not maximise the form,
it still doeesn't cover the area where the taskbar usually is!
[...]

Try searching for "Kiosk Mode" or try this code:

http://smartdevelopment.de/forums/thread/207.aspx

hth

Robert

--http://blog.robertsoft.de

Hi, This solution doesn;t seem to work for CE 5.0.

it works ok on the pocket pc emulator but not on my device!

i still get a blank area on the bottom of the screen where the task
bar used to be!
 
P

Paul G. Tobey [eMVP]

You should probably set the window rectangle for your top-level window to
the size of the screen. Where in the order of execution are you calling
SHFullScreen()? Your window would have to exist and be visible for it to
work...

Paul T.

6o6o said:
Hi!

6o6owrote:
Hi i'm having a problem with my windows CE program,
I was trying to hide the taskbar and have my app full screen
but it doesn't work,
it will hide/show the task bar alright but will not maximise the form,
it still doeesn't cover the area where the taskbar usually is!
[...]

Try searching for "Kiosk Mode" or try this code:

http://smartdevelopment.de/forums/thread/207.aspx

hth

Robert

--http://blog.robertsoft.de

Hi, This solution doesn;t seem to work for CE 5.0.

it works ok on the pocket pc emulator but not on my device!

i still get a blank area on the bottom of the screen where the task
bar used to be!
 
R

Robert Wachtel

Do you have a menu component on your form?

Robert

--
http://blog.robertsoft.de

6o6o said:
Hi!

6o6owrote:
Hi i'm having a problem with my windows CE program,
I was trying to hide the taskbar and have my app full screen
but it doesn't work,
it will hide/show the task bar alright but will not maximise the form,
it still doeesn't cover the area where the taskbar usually is!
[...]

Try searching for "Kiosk Mode" or try this code:

http://smartdevelopment.de/forums/thread/207.aspx

hth

Robert

--http://blog.robertsoft.de

Hi, This solution doesn;t seem to work for CE 5.0.

it works ok on the pocket pc emulator but not on my device!

i still get a blank area on the bottom of the screen where the task
bar used to be!
 
6

6o6o

Do you have a menu component on your form?

Robert

--http://blog.robertsoft.de

6o6o said:
Hi!
6o6owrote:
Hi i'm having a problem with my windows CE program,
I was trying to hide the taskbar and have my app full screen
but it doesn't work,
it will hide/show the task bar alright but will not maximise the form,
it still doeesn't cover the area where the taskbar usually is!
[...]
Try searching for "Kiosk Mode" or try this code:
http://smartdevelopment.de/forums/thread/207.aspx
hth
Robert
--http://blog.robertsoft.de
Hi, This solution doesn;t seem to work for CE 5.0.
it works ok on the pocket pc emulator but not on my device!
i still get a blank area on the bottom of the screen where the task
bar used to be!

there is no menu component!

also i use the windowstate.maximised at the end of the form load
function!
should this not work!
 
6

6o6o

Do you have a menu component on your form?

Robert

--http://blog.robertsoft.de

6o6o said:
Hi!
6o6owrote:
Hi i'm having a problem with my windows CE program,
I was trying to hide the taskbar and have my app full screen
but it doesn't work,
it will hide/show the task bar alright but will not maximise the form,
it still doeesn't cover the area where the taskbar usually is!
[...]
Try searching for "Kiosk Mode" or try this code:
http://smartdevelopment.de/forums/thread/207.aspx
hth
Robert
--http://blog.robertsoft.de
Hi, This solution doesn;t seem to work for CE 5.0.
it works ok on the pocket pc emulator but not on my device!
i still get a blank area on the bottom of the screen where the task
bar used to be!

there is no menu component!

also i use the windowstate.maximised at the end of the form load
function!
should this not work!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top