Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For custom visuals in a WinForms control, draw in its paint lifecycle: override OnPaint in a custom control or handle the control’s Paint event, and use the supplied e.Graphics. That is the path for drawing that must be reproduced when the control paints again. For ordinary flicker from multi-step drawing, begin with WinForms’ built-in double buffering; dispose drawing resources your code creates; and specify an image destination rectangle when its displayed dimensions matter.

Where should WinForms drawing code go?

A control raises its Paint event when it needs to update its display. For a control you author, override OnPaint; for an existing control, handle its Paint event. The paint arguments provide both a Graphics surface and a ClipRectangle, which identifies the area being painted. Microsoft’s custom-painting guidance documents this pattern.

CreateGraphics is another way to obtain a graphics object, but it is not a substitute for the paint path when a drawing needs to be reproduced as part of the control’s display. For persistent custom visuals, put the drawing logic in painting code and let the framework call it during painting. Microsoft describes the usual paint-time source of a Graphics object in its Graphics-object guidance.

Illustrative custom-control pattern

This example draws a rectangle using the graphics surface supplied for the paint callback. The Pen is created by the control and disposed at the end of its scope; e.Graphics is supplied by the framework and is not disposed here. Adapt base painting behavior to the control you are writing.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Sale
Pro Grade Paint Brushes, Paint Brush Set for Walls, Trim & Stain, 5-Piece
  • COMPLETE 5-PIECE BRUSH SET FOR EVERY PAINTING TASK — Includes 1 Inch Flat, 1.5 Inch Angle, 2 Inch Flat, 2 Inch Angle Stubby, and 2.5 Inch Angle brush giving you every size professional painters use daily. Get all 5 for less than the price of a single brush from hardware store brands — professional grade performance at a fraction of the cost. Perfect for walls, trim, cabinets, doors, furniture, and detailed cutting-in work on any project.
  • ZERO BRISTLE LOSS — GUARANTEED BY PRECISION ADHESIVE BONDING — Every bristle is locked in place with precision-set adhesive that keeps them in the brush — not in your paint job. The coated steel ferrule provides structural support while the adhesive bond ensures clean performance on every stroke. Premium SRT synthetic filaments load more paint and release it evenly for a smooth streak-free finish on walls, ceilings, and trim. Works with latex, oil-based paint, primer, sealer, and wood stain.
  • INCLUDES THE ANGLE STUBBY MOST SETS LEAVE OUT — Professional painters know the 2 Inch Angle Stubby is the go-to brush for tight cabinet interiors, window sashes, inside corners, and detailed trim where standard angle brushes are too long. Combined with the 1.5 and 2.5 inch angle sash brushes you have precision cutting-in covered at every scale — baseboards, crown molding, door casings, and ceiling lines.
  • FLAT BRUSHES FOR BROAD SMOOTH COVERAGE ON ANY SURFACE — The 1 and 2 inch flat brushes deliver even coverage on walls, furniture, shelving, doors, fences, decks, and wood surfaces. Ideal for applying primers, stains, varnishes, polyurethane, and specialty coatings. Solid wood handles provide all-day comfort and control for both professional contractors and weekend DIY homeowners tackling interior or exterior painting projects.
  • TRUSTED BY PROFESSIONAL PAINTERS AND CONTRACTORS NATIONWIDE — Pro Grade delivers professional-grade results at a price that makes sense for crews who go through brushes on every job. Ideal for property managers, remodeling contractors, apartment turnover crews, maintenance teams, and commercial painting operations. Backed by thousands of verified reviews from working painters. Washable and reusable for multiple projects.
protected override void OnPaint(PaintEventArgs e)
{
    base.OnPaint(e);

    using (var pen = new Pen(Color.Navy, 2))
    {
        e.Graphics.DrawRectangle(pen, 10, 10, 120, 60);
    }
}

Why does WinForms drawing disappear?

Drawing directly outside the paint lifecycle is not part of the control’s paint routine. When the control paints, the framework calls its painting code; the drawing that must appear as part of that display belongs there. Put the drawing logic in OnPaint or the Paint handler rather than relying on a one-off draw through a separately obtained graphics object.

How do you stop flickering in a custom control?

Flicker can be visible when a complex drawing is rendered in multiple operations. Double buffering paints into a memory buffer and then copies the completed result to the screen. Microsoft recommends starting with built-in buffering for ordinary cases; its documentation says, “For most applications, the default double buffering provided by the .NET Framework will provide the best results.” This is framework guidance, not a benchmark or a guarantee that buffering fixes every visual artifact.

Rank #2
Soucolor Acrylic Paint Brushes Set, 20 Pcs Pointed Tip Artist Paintbrushes
  • Great Value Pack Artist Paint Brushes: Soucolor 20 brushes in 10 sizes professional paintbrushes set — no shedding, holds paint well, cleans easily, Acrylic, watercolor, oil, gouache, Halloween pumpkin decoration & face painting, rock painting, ceramics. Fantastic high quality gifts for creative, artistic siblings to share!
  • Awesome Set of Paint brushes: Professional paint brushes can cover all of your needs. The multi-purposed brushes are ideal for Watercolor, Oil, Gouache, enamel, Acrylic Painting, Body, Nail, Face Painting, Miniature, Model, Wood, Glass, Cup, Ceramic, Fine work, Art class, Craft Art Painting, DIY Art Crafts etc.
  • Soft and long-lasting: The bristles are soft and strong, with nickel metal ferrules and blue wooden handles. After cleaning, the bristles will become soft and fluffy again and will not fall off.
  • Easy to clean: it’s very convenient to Wash well in soap and water. Retain shape after drying. the brushes hold up very well. Nice selection to beginners and professionals. Keep them clean and they last a long time.
  • Halloween Pumpkin Ceramic Crafts Supplies: A Great painting gift for family, friends, kids, girls, women, student, classmate, teacher. For using in school, travel or used in the home and office.

Start with framework buffering

For an authored control, enable the DoubleBuffered property or use OptimizedDoubleBuffer with SetStyle, as appropriate to the control. See Microsoft’s double-buffering overview and WinForms flicker guidance.

Use manual buffering only when needed

Manual BufferedGraphics management gives more control, but also makes buffer management your responsibility. Microsoft presents it for advanced cases such as animation or when control over memory management is needed. Choose it for a concrete need that built-in buffering does not address, not as the default response to every drawing problem.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
AROIC 10 Pcs Paint Brushes, Acrylic Oil Watercolor Painting Brush Set
  • 【All sizes of art brushes】: The 10 sizes of multi-functional brushes have various shapes, making the mixing color easier, which is very suitable for artists, students, teenagers, children and painters at all levels. Wonderful Present ideas for friends and family who like painting!
  • 【general brush set】: Professional paint brush can meet all your needs. Multifunctional brush is very suitable for watercolor, oil, gouache, acrylic painting, body, nail, face painting, miniature, model, ceramics, arts and crafts painting, etc.
  • 【high quality process】: It is designed with anti falling bristles, anti-rust nickel ferrule and solid wood handle. You can use the brush to focus on the painting and always be creative.
  • 【easy to maintain】: After using the brush, it is very convenient to clean the brush with warm soapy water and reshape the tip of the brush. Air dry the brush and place it on top of the top for long use.
  • 【100% satisfaction guarantee - buy now】1 packs of set brushes, you can also get friendly customer service, any questions feel free to contact us, within 24 hours to help you! There is no risk in buying our paint brush kit.

When should you dispose Graphics, Pen, and Brush?

Graphics objects, brushes, and pens consume system resources. Dispose instances your code creates and owns when you are finished with them; a using scope is a straightforward way to ensure disposal even when drawing code exits early. Microsoft’s custom-painting documentation recommends creating graphics resources only as needed and disposing finished objects that implement IDisposable.

Ownership matters: do not dispose the Graphics instance passed to OnPaint or a Paint handler. It belongs to the paint callback. Dispose resources such as a Pen or Brush that your code constructs. If a resource is deliberately retained as control state rather than created for one paint, define a clear ownership and disposal point for that retained resource.

Rank #4
Bates- Paint Brushes, 6 Pack, Treated Wood Handle Brushes for Walls
  • Bates paint brushes come in a convenient 6 pieces with 3 flat and 3 angled bristle styles, including (1”, 1.5”, 2”) flat and (1.5”, 2”, 2.5”) angled bristles, perfect for tackling any surface painting or staining job.
  • The sturdy natural bristles of each brush are designed to hold more paint, creating a smoother finish with fewer streaks and saving you time on the job.
  • The lightweight wooden handles provide extra comfort and ease during long painting processes like walls, trims, cabinets, and doors.
  • These versatile brushes are ready-to-use, easy to clean, and can be reused multiple times, making them economical as well as reliable tools for any painting project.
  • Bates paint brushes can be used for both oil-based paints as well as latex stains and are ideal for home or commercial projects such as decks, fences or DIY painting jobs.

Why does an image look scaled?

An image’s resolution metadata can affect how a convenience DrawImage overload scales it. Microsoft documents that automatic scaling may occur when the image’s resolution differs from the resolution GDI+ uses; in the described case of querying a screen device context, the documentation gives 96 DPI as the usual result. That is the documentation’s stated context, not a universal measurement for every modern display. When the intended displayed size matters, draw into an explicit destination rectangle to avoid relying on that automatic sizing behavior. See Microsoft’s DrawImage scaling guidance.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

What runtime and DPI setup does the application use?

State the target runtime when diagnosing drawing or scaling behavior. Starting with .NET 6, System.Drawing.Common is Windows-specific. Microsoft’s compatibility guidance says non-Windows use can produce platform-analysis warnings and, without the legacy runtime switch described on that page, a PlatformNotSupportedException. For cross-platform drawing, Microsoft names SkiaSharp, ImageSharp, Aspose.Drawing, and Microsoft.Maui.Graphics as alternatives; that list is not a comparative ranking. Evaluate platform targets, API fit, licensing, deployment, and required drawing features before choosing one. See the .NET 6 compatibility note.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Sale
Pro Grade Paint Brushes, 2 Inch Angled Paint Brush, Trim & Walls, 3 Pack
  • 2 Inch Angled Paint Brush for Precision Cutting-In – Designed for clean, sharp lines around trim, baseboards, ceilings, corners, and detailed edge work. The perfect size for control and coverage.
  • Value 3-Pack for Pros & DIY Projects – Includes three professional 2-inch angled sash brushes — ideal for contractors, remodelers, and homeowners tackling multiple rooms or repeat paint jobs.
  • Smooth Results on Walls, Trim & Cabinets – Great for interior wall painting, cabinet edges, furniture projects, and trim work where a smooth finish and crisp control matter most.
  • Works with Latex Paint, Oil-Based Paint & Stains – Premium synthetic filaments hold more paint, reduce streaks, and provide a clean finish with latex paints, oil coatings, and wood stains.
  • Works with Latex Paint, Oil-Based Paint & Stains – Premium synthetic filaments hold more paint, reduce streaks, and provide a clean finish with latex paints, oil coatings, and wood stains.

WinForms DPI configuration differs between modern .NET and .NET Framework. For modern .NET WinForms, Microsoft documents the ApplicationHighDpiMode project property, with SystemAware identified there as the default and recommended mode, and also describes PerMonitor and PerMonitorV2 options and DPI-change events. Check the documentation for the runtime version you target rather than carrying a setting assumption across versions. The automatic form scaling guidance explains the configuration distinction; the .NET 6 WinForms release notes describe release-specific PerMonitorV2 improvements for container controls and MDI child windows.

Which approach fits the application?

Need Practical starting point Trade-off or qualification
Existing Windows-only WinForms application Keep using System.Drawing/GDI+ where it fits the target runtime; draw through the paint lifecycle, dispose owned resources, and try built-in buffering for ordinary flicker. Confirm runtime and DPI configuration because behavior and support are version-specific.
Cross-platform drawing Assess SkiaSharp, ImageSharp, Aspose.Drawing, or Microsoft.Maui.Graphics. Microsoft names these options but does not rank them; compare platform support, API compatibility, licensing, deployment, and features for your needs.
Ordinary custom-control flicker Start with WinForms built-in double buffering. Manual BufferedGraphics management adds complexity and is aimed at advanced animation or buffer-control cases.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.