Answers for "create a red rectangle c#"

C#
0

create a red rectangle c#

System.Drawing.SolidBrush myBrush = new System.Drawing.SolidBrush(System.Drawing.Color.Red);
System.Drawing.Graphics formGraphics;
formGraphics = this.CreateGraphics();
formGraphics.FillRectangle(myBrush, new Rectangle(0, 0, 200, 300));
myBrush.Dispose();
formGraphics.Dispose();
Posted by: Guest on July-04-2021

C# Answers by Framework

Browse Popular Code Answers by Language