P
pmclinn
I'm looking to add a lable control to my windows form when a button is
pressed. The following code does not seem to render the button. How
do I correct this issue?
Dim newLabel As New Label
newLabel.Size = New System.Drawing.Size(272, 16)
newLabel.Name = "NewLabels"
newLabel.BackColor = System.Drawing.Color.Black
newLabel.ForeColor = System.Drawing.Color.Lime
newLabel.Location = New System.Drawing.Point(16, 336)
newLabel.Text = "NewLabels"
newLabel.BringToFront()
newLabel.Visible = True
Me.Controls.Add(newLabel)
pressed. The following code does not seem to render the button. How
do I correct this issue?
Dim newLabel As New Label
newLabel.Size = New System.Drawing.Size(272, 16)
newLabel.Name = "NewLabels"
newLabel.BackColor = System.Drawing.Color.Black
newLabel.ForeColor = System.Drawing.Color.Lime
newLabel.Location = New System.Drawing.Point(16, 336)
newLabel.Text = "NewLabels"
newLabel.BringToFront()
newLabel.Visible = True
Me.Controls.Add(newLabel)