CodeItBetter Programming Another VB Programming Blog

How to Center the form relative to Screen

Posted on January 4, 2009
1
2
3
4
5
6
'Forms - How to Center the form relative to Screen
Option Explicit
 
Public Sub CenterForm(frm As Form)
    frm.Move (Screen.Width - frm.Width) / 2, (Screen.Height - frm.Height) / 2
End Sub
Filed under: Forms Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


 

No trackbacks yet.