mpdillon
Member
I would like to know how to add a blank space and a new line programatically in the code behind file. For example, the code below adds two labels. When the page is displayed they are on the same line, one touching the other.
Dim Label1 As New Label
Dim Label2 As New Label
Label1.Text = "Label 1"
Label2.Text = "Label 2"
Me.Controls.Add(Label1)
Me.Controls.Add(Label2)
How do I add some spaces on the form between the controls and how do I add a line return?
Thanks
Bonus question - Is there any way to prevent the text in a Checked list from wraping?
Dim Label1 As New Label
Dim Label2 As New Label
Label1.Text = "Label 1"
Label2.Text = "Label 2"
Me.Controls.Add(Label1)
Me.Controls.Add(Label2)
How do I add some spaces on the form between the controls and how do I add a line return?
Thanks
Bonus question - Is there any way to prevent the text in a Checked list from wraping?