Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8604811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T02:40:14+00:00 2026-06-12T02:40:14+00:00

I have a System.Windows.Forms.ListView containing numerous items. It was flickering intolerably (as seems to

  • 0

I have a System.Windows.Forms.ListView containing numerous items.
It was flickering intolerably (as seems to often be the case) so after some searching I decided to do these 2 things in a “ListViewLessFlicker” class.

        this.SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.AllPaintingInWmPaint, true);
        this.SetStyle(ControlStyles.Opaque, true);

DoubleBuffering didn’t have much effect even though it’s most commonly given as the solution in these topics, but setting the style opaque to true hugely reduced flickering.
http://www.virtualdub.org/blog/pivot/entry.php?id=273

However it had a side-effect that I can’t seem to find a fix for.
When I hover my mouse over an item in the ListView it now makes the text bold and very blurry (this doesn’t happen unless opaque is true).

Here is a very zoomed in example.

enter image description here

If anybody has a fix or knows why it may be doing this I’d love to know!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T02:40:16+00:00Added an answer on June 12, 2026 at 2:40 am

    I usually do this – reduces flickering when resizing the control. You need to use BeginUpdate() / EndUpdate() to reduce flickering when adding items in bulk. I don’t know what may cause the blurring, so I can’t advise about that – updatig your video driver may help but don’t hold your hopes high.

    [System.ComponentModel.DesignerCategory ( "" )]
    public partial class ListViewEx : ListView
    {
        private const int WM_ERASEBKGND = 0x14;
    
        public ListViewEx ()
        {
            InitializeComponent ();
    
            // Turn on double buffering.
            SetStyle ( ControlStyles.OptimizedDoubleBuffer |
                ControlStyles.AllPaintingInWmPaint, true );
    
            // Enable the OnNotifyMessage to filter out Windows messages.
            SetStyle ( ControlStyles.EnableNotifyMessage, true );
        }
    
        protected override void OnNotifyMessage ( Message oMsg )
        {
            // Filter out the WM_ERASEBKGND message to prevent the control
            // from erasing the background (and thus avoid flickering.)
            if ( oMsg.Msg != WM_ERASEBKGND )
                base.OnNotifyMessage ( oMsg );
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The Application class in System.Windows.Forms have a some properties that can be quite useful.
I have a System.Windows.Forms.RichTextBox that I wish to use to display some instructions to
I have a System.Windows.Forms.ListView control that I was using with View = View.List .
The C# namespace System.Windows.Forms.DataVisualization.Charting.StatisticFormula seems to have a few statistical functions that I need.
I have a Windos::Forms::GroupBox which contains a Windows::Forms::ListView . When I add items, I
I have a System.Windows.Forms.ComboBox on a form and I want to capture the event
I have a System.Windows.Forms.Button control, and I want to add a hover-text explanation of
I have a System.Windows.Forms.PropertyGrid with different types of values. For a specific item, I
How do I send a period using sendkeys? I have tried: System.Windows.Forms.SendKeys.SendWait({.}); System.Windows.Forms.SendKeys.SendWait(.); but
I have a control ...any System.Windows.Forms.Control . say for eg. label. I wish to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.