I have code:
using (Graphics g = control.CreateGraphics())
{
Bitmap bm = new Bitmap(r.Width, r.Height, g);
using (Graphics gbm = Graphics.FromImage(bm))
{
gbm.FillRectangle(Brushes.Green, r);
form.BackgroundImage = bm;
form.BackgroundImageLayout = ImageLayout.Zoom;
}
}
But that FillRectangle doesn't seem to have any effect. Any idea?