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();
}
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();
}