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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
VulpesRank #55 · 29.2K reputationPosted Aug 21, 2011, 10:53 AM EDT
Kevin Cope8 reputationPosted Aug 21, 2011, 8:05 PM EDT
So I made a minor modification and it works now
Kevin Cope8 reputationPosted Aug 21, 2011, 9:46 PM EDT
any other ideas?
VulpesRank #55 · 29.2K reputationPosted Aug 22, 2011, 7:46 AM EDT
If you're setting the location manually (the line you added), then you need:
this.StartPosition = FormStartPosition.Manual;
this.Location = new Point(0,0);