Click here to Skip to main content
15,892,517 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
I am using AutocompleteStringCollection class in my windows form. In my form, using that stringCollection class, a textbox contains more than 500 values. It shows on page load event (i.e., AutoComplete) works fine..

But When I reload the winform it looks like flicker the form... How to avoid that one?....



Thanks in advance..,
Posted
Comments
Sergey Alexandrovich Kryukov 28-Nov-11 0:03am    
What do you mean by "reload" and why would you do it?

There are can be different cases of flicker which usually cannot be resolved, but it's hard to describe the general case. A code sample could help. Can you make on, but only minimalistic yet manifesting the problem? Use "Improve question".
--SA

try doublebuffer property of form to avoid flickering.
 
Share this answer
 
 
Share this answer
 
Flickering occurs due to control Repainting.
use control.DoubleBuffered property. set it to true.
DoubleBuffered allows Control redraws its surface using secondary buffer to avoid flickering. check the following it might help you.

screen flicker on Page_load[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900