You can use the Screen object. The code below will center a form. If you need to resize, change the height and Width properties of your form relative to the screen
frmMe.Left = ((Screen.Height - frmMe.Height) / 2)
frmMe.Top = ((Screen.Width - frmMe.Width ) / 2)
Thread222-59642 offers addtional links! _________________________________
In theory, there is no difference between theory and practice. In practice, there is. [attributed to Yogi Berra]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.