This is a migrated thread and some comments may be shown as answers.

sizing labels

1 Answer 84 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
bobebs
Top achievements
Rank 1
bobebs asked on 09 May 2007, 07:57 PM
I am dynamically creating a form with lables and texboxs in VB.Net data driven from a database table.  I can not get the labels to size properly, it always creates the label to meet the size of the text string instead of wrapping the text to the next line.  It does not matter what size I set the height and width to.  Below is a code piece:

Private Sub Add_Label(ByVal sorder As String, ByVal stext As String, ByVal itab As Integer)

Dim lbl As New RadLabel
lbl.BeginInit()
lbl.Name =
"Label_" & sorder
lbl.Text = stext
lbl.AutoSize =
False
lbl.BorderVisible = False
lbl.width=100
lbl.height=300

1 Answer, 1 is accepted

Sort by
0
Angel
Telerik team
answered on 11 May 2007, 07:38 AM
Hi Bob,

Unfortunately we don't support word wrapping in the label currently. You can make the text to be on couple of lines by using new lines in the string ("\n").

We know about this feature and have it in our ToDo list and it will be done for the next official release (Q2).

Sorry for the inconvenience. 
 
 
Kind regards,
Angel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
bobebs
Top achievements
Rank 1
Answers by
Angel
Telerik team
Share this question
or