I am writing a Windows Forms application in C# which contains a window that is maximized without a title and it should be maximized and cover the taskbar (i.e. over the taskbar). This is very simple, I was able to achieve that by simply executing the following:
Text = "";
ControlBox = false;
FormBorderStyle = FormBorderStyle.None;
..before I open the form. The problem is, I also want to be able to toggle this behavior with a keystroke so I can show it normalized (with a title) and then be able to go back to maximized (without title). Problem is, when I go back to maximized, the taskbar is no longer covered by the window, it is visible, which it shouldn't be.
Does anybody know if this is possible to show, i.e. a maximized window without a title bar covering the taskbar or is that only possible the first time a window is opened? Also can it be toggled back and forth?
FullScreen
property? – Reza Aghaei