2

I've installed Visual Basic Power Pack 3 in Visual Studio 2008 SP1.
I wanna change the background color of RectangleShape in a C# WinForm !!!
I changed FillColor property and BackColor property to Black but nothing happened and RectangleShape's background color didn't changed.

How can I change the background color of RectangleShape ?

MPelletier
  • 16,256
  • 15
  • 86
  • 137
Mohammad Dayyan
  • 21,578
  • 41
  • 164
  • 232

2 Answers2

4

Did you set the FillStyle to Solid?

James Love
  • 1,025
  • 9
  • 16
2

Change the BackStyle property from "Transparent" to "Opaque". Click around some more to see what effects the properties have, the designer support is pretty good.

Hans Passant
  • 922,412
  • 146
  • 1,693
  • 2,536