By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,137 Members | 1,534 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,137 IT Pros & Developers. It's quick & easy.

Problem maximizing form window at runtime

P: 1
I'm having some trouble getting a form window to completely maximize at run-time.

I am using the following code in the form load event:
Expand|Select|Wrap|Line Numbers
  1. Me.WindowState = FormWindowState.Maximized
  2.     Me.FormBorderStyle = Windows.Forms.FormBorderStyle.None
  3.     Me.TopMost = True
I've used this successfully many a time, but for some reason when I run this program the form does NOT maximize on the screen. It only covers a miniscule portion of the task bar (but is still borderless).

I've also tried setting the property to Maximized in the properties menu of the form design window. No luck.

How can I fix this issue? Is there another way of setting the form to maximize?

Oct 21 '13 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.