By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,899 Members | 1,190 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,899 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
  4.  
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?

Thanks!
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.