Forums

Expand form to fit word wrapped label

Last post 7/6/2009 3:05 PM by Nathanial Woolls - DX Squad. 1 replies.
Sort Posts: Previous Next
  • Peter Thorpe

    Expand form to fit word wrapped label

    7/3/2009 3:42 AM
    • Top 150 Contributor
    • Joined on 10/5/2008
    • Posts 120

    I thought this would be easy but am having difficulty doing it. I am trying to create an error dialog using devExpress components so it matches in with the rest of the program.

    I want to have on it the error message for the end user in a label, a stack trace or detailed error hidden in a layout group by default but expandable and an ok button. The difficulty I am having is getting the labels to wrap in a layout control and working out the size the form needs when the detailed error is expanded or not. I am trying to get the wrapping so the control only expands vertically to fit the content.

    Filed under:
  • Nathanial Woolls - DX Squad

    Re: Expand form to fit word wrapped label

    7/6/2009 3:05 PM
    • Top 50 Contributor
    • Joined on 5/4/2007
    • Maine, USA
    • Posts 871

    Peter,

    Assuming you are using a LabelControl from DevExpress, try setting the AutoSizeMode to Vertical. That should cause the label's text the wrap around properly within the layout control.

    Nathanial Woolls
    Member - DX Squad
    http://www.nwoolls.com
    http://twitter.com/nwoolls
More from DevExpress
Live Chat
Have a pre-sales question?
Need assistance with your evaluation?
We are here to help.
Chat is one of the many ways you can contact members of the DevExpress Team. We are available Monday-Friday between 8:30am and 5:00pm Pacific Time.
If you need additional product information, require pre-sales assistance, or want help with your order, write to us at info@devexpress.com or call us at
+1 (818) 844-3383.