VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Center a form

by SeeD (22 Submissions)
Category: Miscellaneous
Compatability: Visual Basic 3.0
Difficulty: Unknown Difficulty
Date Added: Wed 3rd February 2021
Rating: (12 Votes)

This is, I think, the easiest way to center a form. It is the way reccomended by Microsoft and Microsoft Press. Just stick it into your form_load.

Assumes
just stick this into your form_load place! Easy!

Rate Center a form

Private Sub Form_Load
 Left = (Screen.Width - Width) \ 2
 Top = (Screen.Height - Height) \ 2
End Sub

Download this snippet    Add to My Saved Code

Center a form Comments

No comments have been posted about Center a form. Why not be the first to post a comment about Center a form.

Post your comment

Subject:
Message:
0/1000 characters