Custom List control, slow performance

05-14-2006, 09:48 PM
Is the Panel control not good at handling a large amount of controls?

I made a custom list control by using a panel as the container, with autoscroll to true. The list items are again custom controls, basically just some fancy acting buttons like in Outlook 2003, using my own paint method. When the panel contains a lot of controls it starts to get noticably laggy when scrolling in the panel up & down. It only seems to be redrawing the list items that are actually visible in the control, so I don't see that as the culprit.

Is this just a nasty limitation of the Panel control, or what?

Edit: I was able to improve this problem a lot by adding all the list items to one panel without autoscroll, then adding that panel to another panel with autscroll. It can still chop once every couple seconds though.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum