c# graphics draw filled rectangle
private void FillRectangleRectangle(PaintEventArgs e)
{
// Create solid brush.
SolidBrush blueBrush = new SolidBrush(Color.Blue);
// Create rectangle.
Rectangle rect = new Rectangle(0, 0, 200, 200);
// Fill rectangle to screen.
e.Graphics.FillRectangle(blueBrush, rect);
}
Also in C#:
- c# use hashtable check if key exists
- visual studio C# hintergrund bild ändern
- button commandfield commandargument pass textbox
- .sh script: check if file exist
- percentage in c#
- c# trigger destructor
- change text color wpf
- rotatearound unity
- how can convert string to int csharp
- c# combobox datasource enum
- unity movement on forward
- how to use more than one condition in ef join
- C# webclient submit form
- @Html.ActionLink
- unity transformer double en float
- c# fileupload example
- C# .NET Core linq Distinct
- c# error "The name 'ViewBag' does not exist in the current context"
- font family behind code uwp c#
- c# enum variable set to nonthing
- automapper c# initialize error
- c# to binary
- populate combobox from array c#
- c# round number down