backgroundcolor in panels doesn't work

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ruud2000
    New Member
    • Oct 2013
    • 2

    #1

    backgroundcolor in panels doesn't work

    I try to set a background color for my panels like this:

    Code:
    Private Sub Panel14_Paint(ByVal sender As System.Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Panel2.Paint
    
            Panel2.BackColor = Color.LightGreen
    
        End Sub
    But it doesn't work....why?
    Last edited by Rabbit; Oct 18 '13, 04:19 PM. Reason: Please use [CODE] and [/CODE] tags when posting code or formatted data.
  • ruud2000
    New Member
    • Oct 2013
    • 2

    #2
    I found it.
    I had to run the program to see the result.

    Comment

    Working...