Results 1 to 2 of 2

Thread: [RESOLVED] Multiple labels in a panel

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2009
    Posts
    64

    Resolved [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.

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Mar 2009
    Posts
    64

    Re: Multiple labels in a panel

    got it working by adding their locations.

    resolved

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width