How do I set a brush color to a system color like control? RRS feed

  • Question

  • I have been trying to display a fillrectangle on the form the same color as the form.  The form background color is a system color called control but I can not figure out how to draw that color using FillRectangle.  I can set the brush color to many different colors but not system colors.  Please tell me how to do this.



    Tuesday, January 24, 2006 6:00 AM


  • Have a look at the System.Drawing.SystemColors class.
    Tuesday, January 24, 2006 6:11 AM