rgb colors in vb.net

  • Thread starter Thread starter reidarT
  • Start date Start date
R

reidarT

I want to change the background color on a panel when mouse over and when
mouse leave.
If I use ..background.color.lightgreen it works OK, but I want to use
....background.color.rgb(x,y,z) but it doesn't work
reidarT
 
I want to change the background color on a panel when mouse over and when
mouse leave.
If I use ..background.color.lightgreen it works OK, but I want to use
...background.color.rgb(x,y,z) but it doesn't work
reidarT
Don't know about background.color...but for the BackColor try:
Me.Panel1.BackColor = Color.FromArgb(r,g,b)

Gene
 
Back
Top