[RESOLVED] Multiple labels in a panel
Hello , im trying to add multiple labels in a single panel via code and not design
thats what i got so far :
Code:
Controls.Add(hoveritem)
hoveritem.BringToFront()
hoveritem.AutoSize = True
hoveritem.Visible = True
hoveritem.Size = New Size(170, 57)
hoveritem.Location = New Point(230, 65)
hoveritem.BorderStyle = BorderStyle.FixedSingle
hoveritem.BringToFront()
hoveritem.BackColor = Color.Black
hoveritem.Controls.Add(test1)
hoveritem.Controls.Add(test2)
test1.Visible = True
test1.ForeColor = Color.White
test1.Font = New Font(test1.Font, FontStyle.Bold)
test1.Text = "test1"
test2.Visible = True
test2.ForeColor = Color.White
test2.Font = New Font(test2.Font, FontStyle.Regular)
test.Text = "test2"
both test1 and test2 are registered as labels , when i hover over a picture i see only the test1 label and i dont know how to put the test2 under test1.
Thanks.
Re: Multiple labels in a panel
got it working by adding their locations.
resolved