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

  • SEARCH
  • Home
  • 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 47619
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T16:09:04+00:00 2026-05-10T16:09:04+00:00

How can I set the protected DoubleBuffered property of the controls on a form

  • 0

How can I set the protected DoubleBuffered property of the controls on a form that are suffering from flicker?

  • 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. 2026-05-10T16:09:04+00:00Added an answer on May 10, 2026 at 4:09 pm

    Here’s a more generic version of Dummy’s solution.

    We can use reflection to get at the protected DoubleBuffered property, and then it can be set to true.

    Note: You should pay your developer taxes and not use double-buffering if the user is running in a terminal services session (e.g. Remote Desktop) This helper method will not turn on double buffering if the person is running in remote desktop.

    public static void SetDoubleBuffered(System.Windows.Forms.Control c) {    //Taxes: Remote Desktop Connection and painting    //http://blogs.msdn.com/oldnewthing/archive/2006/01/03/508694.aspx    if (System.Windows.Forms.SystemInformation.TerminalServerSession)       return;     System.Reflection.PropertyInfo aProp =           typeof(System.Windows.Forms.Control).GetProperty(                'DoubleBuffered',                 System.Reflection.BindingFlags.NonPublic |                 System.Reflection.BindingFlags.Instance);     aProp.SetValue(c, true, null);  } 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I understand that we can set the various style attributes from code behind using
In Photoshop you can set a layer's blending mode to be Hue. If that
I'd like to build a custom StackPanel with a ReverseOrder property that I can
How can I detect if a class property is private or protected without using
Suppose I have simple class Order, that have a TotalPrice calculated property, which can
As per the title really, how can you set a dependency property in XAML
I am trying to make a class that can set what is on the
I can set the width and height of my canvas by setting the width
I can set the relationship between View Model and view through following DataContext syntax:
You can set the Vim color scheme by issuing :colorscheme SCHEME_NAME but, oddly enough,

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.