-1

In my winform application want to cover full computer monitor. But, windows 7 task bar visible.

how to code Monitor fit application in winform?

see statusStrip1

thanks in advance!.

Sagotharan
  • 2,586
  • 16
  • 73
  • 117

4 Answers4

2

its already answered here

How do I make a WinForms app go Full Screen

Community
  • 1
  • 1
Binil
  • 6,445
  • 3
  • 30
  • 40
  • no no,.. It doesn't help me... They say change property,. but i already done that. till now the task bar in top. – Sagotharan Jun 02 '11 at 11:06
1

set property of form to

form1.windowstate= maximized;

it will solve your

antyrat
  • 27,479
  • 9
  • 75
  • 76
1

In the Shown event handler add the following code:

WindowState = FormWindowState.Normal;
FormBorderStyle = FormBorderStyle.None;
Bounds = Screen.GetBounds(this);
Arunas
  • 918
  • 1
  • 8
  • 20
1

Try these lines of code in Form_Load
Bounds = Screen.PrimaryScreen.Bounds;
TopMost = true;
MaximizeBox = false;

Numan
  • 3,918
  • 4
  • 27
  • 44
  • @Sagotharan: I have tried this and this works! Can you describe, in what way it is misbehaving? – Numan Jun 06 '11 at 05:35
  • Are you got the full screen?. Amazing. The same thing, taskbar not hide. I am using Windows 7 and visual studio 2011. – Sagotharan Jun 06 '11 at 09:47
  • @Sagotharan: Where on earth you have got VS2011 from? I have tested this on Windows 7 x64 with Visual Studio 2010 Ultimate. It just works out of the box. These very lines of code are sufficient to achieve what you have asked as a question! – Numan Jun 06 '11 at 09:58
  • OH VERY SORRY FOR VERSION MISTAKE. – Sagotharan Jun 06 '11 at 10:36