Window form isn't in the top left corner
Posted on 2010-11-23
I have a WindowsForms Application with the main window Form1 . Form1 has the Size 1280x1024 and should cover the complete Screen (Windows Taskbar must be hidden)
But somehow I can't paint the Window on the top of the monitor. The whole application has like an offset from around 30 pixels on the top and from around 10 pixels on the left. That gives me a gap on the top and on the left where I still can see the desktop.
This is how I located the Form1 :
public partial class Form1 : Form
this.Top = 0;
this.Left = 0;
I work with VS2010 on Windows 7.
What can I do tho locate my Form 100% in the monitor?