vb.net form in the middle of the screen

Directly in the properties inside reform before today trying to achieve with the code, written in the load inside, how there is no response, then ask Daniel, discovery requires the following:  

Public Sub New()

        InitializeComponent()
        Me.Size = New Size(800, 600)
        Me.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen

End Sub


After this, the form is very obedient stopped in the middle of the screen!

Published 13 original articles · won praise 3 · Views 5998

Guess you like

Origin blog.csdn.net/vszys/article/details/75353931