Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Slow paint on initial paint of custom userControl

$
0
0

Before I get started, I want to make sure everyone knows I do have DoubleBuffered=True in all controls and forms.  With that said, I have a usercontrol with about 50 controls on it.  When I add it to a panel in the parent form for the first time, it flickers.  After that initial load, if I remove the control and add it back into the panel, it works perfect.  I am not the type to just ask a question to just get the answer, I really would like to know why this occurs.  One way I tried to solve this is to initially add and then remove the controls to the panel in the load, but that didn't work.  Any explanation and direction is much appreciated....cheers!!



Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>