Will Usercontrol improves the performance???

Hi

I've a doubt about using usercontrol.

Can anybody tell the use of Usecontrol improves the performance or it only meant for Reusability.

Thanks in advance




Answer this question

Will Usercontrol improves the performance???

  • Sergio Ortiz

    It depends on how you code it. If you still attempt to load a lot of controls at once it won't matter if you have them in a control or not, it will still impact your load speed. However, if you dynamically load the controls as you need them then you'll have a lower impact on the usability.

    A good example of this loading strategy is the Visual Studio Options dialog. You'll notice that there is a slight lag when you first click on the "Fonts and Colors" selection as font information is retrieved. However, you won't see this lag unless you click on the selection. You can do the same thing with your user controls by loading them on demand rather than all at once.



  • MagnusJ

    Thanks for the reply.

    Putting too many controls in a windows form or using a user control.

    which one is best.



  • NetPochi

    Compared to what Packaging code in a user control will not in itself improve performance.



  • Andre's

    Thanks for the reply Frank.

    its helpful.



  • Will Usercontrol improves the performance???