Flickering in ListBox


  • Hi, I have added a simple listbox in windows form under c# 2.0. It contains a collection of approx 10 strings as list items. Now when i resize the form whole listbox flickers. Please tell me any feasible solution, i need to use a checked listbox which also has same flickering problem on resize.

    I can use


    public static extern bool LockWindowUpdate(IntPtr hWndLock);

    to lock the update at ResizeBegin and ReSizeEnd but these events are not available with UserControl class.

    Is there any easy solution to remove this flickering when i resize my form.

    Thanks & Regards

    Nirdesh Dabas

    Wednesday, November 08, 2006 8:05 AM


All replies

  • Sorry, I cannot reproduce your problem on Visual Studio 2005.

    Could you have a try to create a new empty project and test to see if the listbox works?

    Monday, November 13, 2006 2:51 AM
  • Are you using TableLayoutPanel?
    Monday, November 13, 2006 3:24 PM
  • Hi,

    Are you still facing the problem?


    Tuesday, November 14, 2006 1:32 AM
  •  nobugz wrote:
    Are you using TableLayoutPanel?

    Yeah, TableLayoutPanel sometimes flickers.

    Tuesday, November 14, 2006 1:37 AM