sde
Well-known member
I want to fill the background of a form with a Graphics object.
I got that code directly from the msdn site, but when i compile, it does not show anything.
Ideally what I want to do with a background, is making a gradient twirl. =) just trying to get into it to see what I can do.
Code:
System.Drawing.SolidBrush myBrush = new System.Drawing.SolidBrush(System.Drawing.Color.Red);
System.Drawing.Graphics formGraphics = this.CreateGraphics();
formGraphics.FillEllipse(myBrush, new Rectangle(0,0,200,300));
myBrush.Dispose();
formGraphics.Dispose();
Ideally what I want to do with a background, is making a gradient twirl. =) just trying to get into it to see what I can do.