The BackColor of a form is set to SystemColors.Control.
This is also found in SystemPens.Control and SystemBrushes.Control.
The actual color is dependant upon the windows color scheme or even the users theme.
To put this color on to an image open the image as an Image or Bitmap then draw on the image using a Graphics object for the image. Here is an example of drawing to an image.
private void button4_Click(object sender, EventArgs e)
var test = new Bitmap(100, 100);
var g = Graphics.FromImage(test);
var pen = new Pen(SystemColors.Control, 20);
g.DrawEllipse(pen, 0, 0, test.Width, test.Height);
g.FillEllipse(SystemBrushes.ControlDark, 0, 0, test.Width, test.Height);
this.BackgroundImage = test;
I have just recently come across a service which allows you to fill out or edit PDF forms online without having to download any software. I was able to print out my document and even fax it online. Please check this website http://goo.gl/yoGwr2.
I'm sure you will definitely find the service useful and easy to use.
Hey, so I wanna ask how I need to create a method who will remove word if in that word is 2 same chars. Example: "Potato" in this word there is a 2 "o" chars so this word will need to be removed. "Forum" in this word there is no ...
Hi I'm having a problem implementing a mini shopping cart drop down in the header to show the user all the products they have in their shopping cart. It seems the only solution for this is Ajax, and I've looked all over and can't find anything that I could possibly ...