Click here to Skip to main content
15,921,577 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have multiple user controls in a flow panel that automatically resize to the flow panel width, however this code seems to slow down the main form resize what code is better to manage the user controls size within a flow panel. Thanks
Posted

1 solution

I cannot believe it can considerably slow down the resize, unless it is incredibly crowded with controls, but then the whole design would make little to no sense. The user never needs to see too many controls at once.

If the design is too crowded, rethink it; show only the groups of controls which are functionally closely related, hide other groups of controls. One at a time.

—SA
 
Share this answer
 
Comments
Kieran Crown 12-Apr-13 9:05am    
Thanks for your feedback, I have many controls that are out of view but need to be visible as the user can scroll though them using a scroll bar
Sergey Alexandrovich Kryukov 12-Apr-13 11:09am    
Nevertheless, it's your choice. Most designs can be improved. There is no a purely technical silver bullet to improve performance (unless you screw up something technically, but unfortunately I cannot see it). I would also suggest to check up: flow panel with multitude of children might be slower in resize than other panels.

Now, scroll is not the only method to bring content into view. You can consider the alternative like this one: list box (or tree view) on left, items are classifiers of the content on right; when you select another node, content on right is replaced by a different portion. It can be much faster in resize because the hidden content is not participating in the layout change. See the idea?

—SA
Kieran Crown 12-Apr-13 11:21am    
Okay, I'll try some of these out. Thank you
Sergey Alexandrovich Kryukov 12-Apr-13 11:53am    
Will you accept the answer formally (green button)?
All your follow-up questions will be welcome (and it would not prevent others to add answers).
—SA

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