I have another problem:
I want to create a label (or a textbox) using code,
i did it like that:
But its not working, the label is not shown on the screen,
What is the problem ?
Thanks.
I want to create a label (or a textbox) using code,
i did it like that:
Dim label1 As Label= New Label
label1.Location = New Point(300, 300)
label1.Name = "Label1"
label1.Size = New System.Drawing.Size(300, 300)
label1.Text = "This is a form !"
label1.BackColor = Color.Blue
label1.Visible = True
label1.Show()
But its not working, the label is not shown on the screen,
What is the problem ?
Thanks.
Last edited by a moderator: