Problem maximizing form window at runtime

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dystia
    New Member
    • Oct 2013
    • 1

    Problem maximizing form window at runtime

    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:
    Code:
    Me.WindowState = FormWindowState.Maximized
        Me.FormBorderStyle = Windows.Forms.FormBorderStyle.None
        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?

    Thanks!
Working...