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