You’ve got two options really, if you just want to hide the task bar, you can
simply use the following code:
[DllImport("user 32.dll", EntryPoint = "SetWindowP os")]
private static extern bool SetWindowPos(In tPtr hWnd, IntPtr
hWndInsertAfter , int X, int Y, int cx, int cy, uint uFlags);
[DllImport("user 32.dll", SetLastError = true)]
private static extern IntPtr FindWindow(stri ng lpClassName, string
lpWindowName);
private const int SWP_HIDEWINDOW = 0x80;
private const int SWP_SHOWWINDOW = 0x40;
private void HideTaskBar()
{
IntPtr taskBar = FindWindow("She ll_TrayWnd", "");
SetWindowPos(ta skBar, IntPtr.Zero, 0, 0, 0, 0, SWP_HIDEWINDOW) ;
}
public void ShowTaskBar()
{
IntPtr taskBar = FindWindow("She ll_TrayWnd", "");
SetWindowPos(ta skBar, IntPtr.Zero, 0, 0, 0, 0, SWP_SHOWWINDOW) ;
}
This however may not be enough as you say you want to have your form take
over the entire screen... to do that, set your FormBorderStyle to none and
and WindowState to maximized ala:
this.FormBorder Style = FormBorderStyle .None;
this.WindowStat e = FormWindowState .Maximized;
To accomplish the same thing, all without the need for crazy hidings.
Brendan
"FMorales" wrote:
Hello, we want to do a form on full screen using FormBorderStyle set to
FixedToolWindow and, in the form
load, seting the FormWindowState property to Maximized and seting TopMost
equal to True but ....
how can we do that the form were over the main windows bar too???
does it possible to hide or disable it while a run the applicacion that is a
full screen form ???
thanks a lot