I am trying to make a grid with labels so I want to change the back color to make the cells stand out from the rest of the form. I am trying to set the back color at runtime. Here is the code that I am using:

with L
BackColor = System.Drawing.Color.DarkGray
.Update()
End With

However, the label is still white after this. Also, I noticed that the backcolor can't be set at design time. There is a property for forecolor that can be set but backcolor is not an option. Any ideas? Thanks for the help.

Re: Label Backcolor by Peter

Peter
Sat Jun 19 16:28:11 CDT 2004

You need the Service Pack 2 runtime for the ForeColor and BackColor
assignments to work.

Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org

"Jonathan" <Jonathan@discussions.microsoft.com> wrote in message
news:35FF544D-A000-427D-AC89-98BC0A7961E3@microsoft.com...
>I am trying to make a grid with labels so I want to change the back color
>to make the cells stand out from the rest of the form. I am trying to set
>the back color at runtime. Here is the code that I am using:
>
> with L
> BackColor = System.Drawing.Color.DarkGray
> .Update()
> End With
>
> However, the label is still white after this. Also, I noticed that the
> backcolor can't be set at design time. There is a property for forecolor
> that can be set but backcolor is not an option. Any ideas? Thanks for the
> help.
>