Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Text box according to text width
Message
From
22/09/2014 17:28:22
 
 
To
22/09/2014 16:43:15
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01607999
Message ID:
01608011
Views:
123
This message has been marked as the solution to the initial question of the thread.
This is actually harder to do, than you may immediately think. Check http://doughennig.com/papers/..%5CPub%5CGDIPlusX.pdf, search for "Measuring text".

>Hi All:
>
>I have a class to which I pass a string to be a value for a text box in the class. I then want to adjust the width of the text box so that it is the width of the text string. How do I convert text string width to form control width?
>
>Thanks,
>
>Yossi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform