By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,815 Members | 1,066 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,815 IT Pros & Developers. It's quick & easy.

backgroundcolor in panels doesn't work

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

Expand|Select|Wrap|Line Numbers
  1. Private Sub Panel14_Paint(ByVal sender As System.Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles Panel2.Paint
  3.         Panel2.BackColor = Color.LightGreen
  5.     End Sub
But it doesn't work....why?
Oct 18 '13 #1
Share this Question
Share on Google+
1 Reply

P: 2
I found it.
I had to run the program to see the result.
Oct 18 '13 #2

Post your reply

Sign in to post your reply or Sign up for a free account.