Files
Andy De George c0ba284473 Initial winforms content migrated (#18)
* Merge winforms framework content to working branch (#14)

* Breadcrumb / TOC / Move net5 to net folder (#15)

* change path from net5 to net

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Add .net 5 winforms placeholder article (#16)

* added some metadata and adjusted net5 placeholder

* corrections

* corrections

* corrections

* Test1

* Swapping landing page vs concept

* fix links

* Fix links

* Fix desc
2020-09-01 16:26:21 -07:00

1.4 KiB

title, ms.date, dev_langs, helpviewer_keywords, ms.assetid
title ms.date dev_langs helpviewer_keywords ms.assetid
How to: Create a Solid Brush 03/30/2017
csharp
vb
cpp
solid color brushes
brushes [Windows Forms], examples
brushes [Windows Forms], creating solid
85c3fe7d-fb1d-4591-8a9f-d75b556b90af

How to: Create a Solid Brush

This example creates a xref:System.Drawing.SolidBrush object that can be used by a xref:System.Drawing.Graphics object for filling shapes.

Example

[!code-cppSystem.Drawing.ConceptualHowTos#1] [!code-csharpSystem.Drawing.ConceptualHowTos#1] [!code-vbSystem.Drawing.ConceptualHowTos#1]

Robust Programming

After you have finished using them, you should call xref:System.IDisposable.Dispose%2A on objects that consume system resources, such as brush objects.

See also