Windows Develop Bookmark and Share   
 index > Windows Forms General > Dynamic sized label
 

Dynamic sized label

Hi - I'm a newbie so no flambé today please!

I have a label on a form and I would like the label to be of fixed width, i.e. 200 pixels but I want the height to grow based on its word-wrapped contents. I want the height to be just the right size to hold all the text, but always 200 pixels in width.

What's the easiest way to achieve this?

Thanks in advance!

Sigol.


MigrationUser 1  Tuesday, April 26, 2005 5:14 PM
Graphics.MeasureString
MigrationUser 1  Wednesday, April 27, 2005 1:01 PM
Yes i want, too :)

Anyone can help?
Bahadir ARSLAN
bahadirarslan  Thursday, September 24, 2009 5:47 AM
bahadirarslan  Thursday, September 24, 2009 5:52 AM

You can use google to search for other answers

Custom Search

More Threads

• Reg Image editor control
• Textbox problem
• How to find out desktop resolution/size
• Accessing data from another form
• ToolTip only showing shadow
• "Activating" my application after drag-n-drop from Explorer
• Custom Appereance for a Button,Circular Button instead Square
• AxHost+InvalidActiveXStateException error
• Form doesn't show up
• how can i move....??