i often change the controls in the panel while doing this flickering occurs how to avoid
this.
i have ten usercontrols,before placin a control i will clear the contents of the panel and
add a newone to the panel.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
The flickering is caused by all of the screen refreshes that occur as you change your controls.
An option would be to have two panels, one live and visible and the other invisible. Add or remove controls on the hidden panel and then swap them when the changes are complete.
There is another way to prevent the refreshes from happening, but unfortunately I’m away from my coding machine and can’t give an examp[le at the moment.