Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Autocenter a form
Message
De
04/12/2000 10:14:46
 
 
À
Tous
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Titre:
Autocenter a form
Divers
Thread ID:
00448780
Message ID:
00448780
Vues:
76
Hello

is the following the best way to center a form:

Sub CenterForm(Frm As Form)
Frm.Move (Screen.Width - Frm.Width) / 2, (Screen.Height - Frm.Height) / 2
End Sub

VFP has a centerform property and I expect there are API function to center a form, is there and is it better to be used than the above code.

Thanks
Mo
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform