Hi Mark,
The Button.BackColor property is not supported. For more information on
supported classes, methods, properties etc, see:
http://msdn.microsoft.com/library/de...arisonTool.asp
You may find this article interesting:
http://msdn.microsoft.com/library/de...mageButton.asp
cheers jonathan
--
Jonathan Wells
Product Manager
..NET Compact Framework
Check out the .NET Compact Framework FAQ at:
http://msdn.microsoft.com/mobility/p...Q/default.aspx
This posting is provided "AS IS" with no warranties, and confers no rights.
"Mark Seabourne" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
> Does anybody know how I can change the background color of a button from
> grey to white?
> The property is not in the designer but I can access it from code using
the
> code below but this does not make a difference when I run the program.
>
> this.btnClose.BackColor = System.Drawing.Color.White;
> this.btnClose.Font = new System.Drawing.Font("Tahoma", 9F,
> System.Drawing.FontStyle.Regular);
> this.btnClose.Location = new System.Drawing.Point(168, 240);
> this.btnClose.Size = new System.Drawing.Size(64, 24);
> this.btnClose.Text = "Close";
>
>
> Thanks,
> Mark.
>
>