README.md

December 4, 2022 ยท View on GitHub

Center a form

Description

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.

More Info

just stick this into your form_load place! Easy!

Submitted On
BySeeD
LevelUnknown
User Rating4.0 (48 globes from 12 users)
CompatibilityVB 3.0, VB 4.0 (16-bit), VB 4.0 (32-bit), VB 5.0, VB 6.0
CategoryMiscellaneous
WorldVisual Basic
Archive File

Source Code

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