Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How i resize a label to exactly fit text

Status
Not open for further replies.

TorF

Programmer
Sep 30, 2002
83
FR
I have a label in a form and its text (.caption) changes sometimes.

How can I resize the label (.width) to fit exactly the text, according with text size ??

The label is not transparent, and i want the background to appears where there is no text.

Thanks
 
Try setting the label Autosize property to True Let me know if this helps
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'There are 10 kinds of people in the world: those who understand binary, and those who don't.'
 
In fact i use VB under Access and the Autosize property doesn't exists...

I'm going to post in an Access forum
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top