how to do Monitor fit application in winform?
In my winform application want to cover full computer monitor. But, windows 7 task bar visible.
how to code Monitor fit application in w开发者_如何学Cinform?
thanks in advance!.
its already answered here
How do I make a WinForms app go Full Screen
In the Shown event handler add the following code:
WindowState = FormWindowState.Normal;
FormBorderStyle = FormBorderStyle.None;
Bounds = Screen.GetBounds(this);
Try these lines of code in Form_Load
Bounds = Screen.PrimaryScreen.Bounds;
TopMost = true;
MaximizeBox = false;
set property of form to
form1.windowstate= maximized;
it will solve your
精彩评论