How do I prevent the form from overlapping the taskbar when I maximize it?
I do have the formborderstyle set as none because i'm working on the form from scratch.
I am using this.WindowState = FormWindowState.Maximized to maximize the form.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
VulpesPosted Aug 22, 2011, 11:46 AM
If you're setting the location manually (the line you added), then you need:
this.StartPosition = FormStartPosition.Manual;
this.Location = new Point(0,0);
Kevin CopePosted Aug 22, 2011, 1:46 AM
any other ideas?
Kevin CopePosted Aug 22, 2011, 12:05 AM
So I made a minor modification and it works now
VulpesPosted Aug 21, 2011, 2:53 PM