README.md
December 4, 2022 ยท View on GitHub
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 | |
| By | SeeD |
| Level | Unknown |
| User Rating | 4.0 (48 globes from 12 users) |
| Compatibility | VB 3.0, VB 4.0 (16-bit), VB 4.0 (32-bit), VB 5.0, VB 6.0 |
| Category | Miscellaneous |
| World | Visual Basic |
| Archive File |
Source Code
Private Sub Form_Load
Left = (Screen.Width - Width) \ 2
Top = (Screen.Height - Height) \ 2
End Sub