开发者

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?

how to do Monitor fit application in winform?

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜