Advertisement
6_2008-2009 Miscellaneous #195553

Center a form

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.

AI

Résumé par IA: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Code source
original-source
Private Sub Form_Load
 Left = (Screen.Width - Width) \ 2
 Top = (Screen.Height - Height) \ 2
End Sub
Commentaires originaux (3)
Récupéré via Wayback Machine