Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Auto Centering of Container on Form
Message
From
05/08/2015 23:42:41
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01622935
Message ID:
01622979
Views:
54
This message has been marked as a message which has helped to the initial question of the thread.
Add this to the form's Resize() event:
Thisform.cntLocked.Left  = INT((Thisform.Width 	- Thisform.cntLocked.Width) / 2
Thisform.cntLocked.Top  = INT((Thisform.Height   - Thisform.cntLocked.Height) / 2)
In the form's Init() event make a call to the thisform.Resize() code above.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform