Z
Zim Babwe
I want to generate a label in code (VS 2005 VB.NET Windows Forms)
Dim lbltest As New System.Windows.Forms.Label
With lbltest
.Left = 17
.Top = 200
.AutoSize = True
.ForeColor = Color.Black
.BackColor = Color.White
.Text = "DJFJSDLFKJDJFLKS"
.Visible = True
End With
but it doesn't show on the form. What did I do wrong?
Dim lbltest As New System.Windows.Forms.Label
With lbltest
.Left = 17
.Top = 200
.AutoSize = True
.ForeColor = Color.Black
.BackColor = Color.White
.Text = "DJFJSDLFKJDJFLKS"
.Visible = True
End With
but it doesn't show on the form. What did I do wrong?