none
Flickering in ListBox

    Question

  • 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

    [DllImport("user32.dll")]

    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

Answers

All replies