Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Autocenter a form
Message
From
04/12/2000 10:14:46
 
 
To
All
General information
Forum:
Visual Basic
Category:
Other
Title:
Autocenter a form
Miscellaneous
Thread ID:
00448780
Message ID:
00448780
Views:
75
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
Next
Reply
Map
View

Click here to load this message in the networking platform