Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programmatically center a label control
Message
From
13/01/2007 23:59:02
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Programmatically center a label control
Environment versions
Visual FoxPro:
VFP 6
Miscellaneous
Thread ID:
01185419
Message ID:
01185419
Views:
68
If I want to center my label programmatically, how can I do that. I set the value of caption at run-time.

So I do something like thisform.label1.left=(thisform.width-thisform.label1.width)/2

But this won't center the label. Any help?
Next
Reply
Map
View

Click here to load this message in the networking platform