On the left with the yellow border is the BBLabel (a lightweight label as
@Erel calls it in:
bbcodeview and textengine )
On the right with the red border is a normal Label.
The labels have an alignment TOP_LEFT and a Wrap Text checked in the designer.
The wrap text works but the text is too long for the label.
A normal label will truncate the text and add ... at the end, the BBLabel doesn't do that.
Maybe you could have a look into the property settings of the TextEngine that is being used.
EDIT: when you use a BBCodeView a scrollbar will appear if the text is too long.
EDIT 2: the height of the BBLabel can be adjusted to the length of the text.
The code for this you can find in:
BBLabel real height (uncheck handle resize event in the layout).
BBLabel1.Text = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet."
Dim TextHeight As Int = BBLabel1.Paragraph.Height / TextEngine.mScale + BBLabel1.Padding.Top + BBLabel1.Padding.Bottom
BBLabel1.mBase.Height = TextHeight
Of course this can only be done if there is room to let the BBLabel expand. (i had to move the BBCodeView to the right)