Home > DeveloperSection > Interviews > What are the differences between user and custom controls?

Posted on    March-29-2011 9:34 AM

 VB.Net VB.Net 
Ratings:
 1 Answer(s)
  1119  View(s)
Rate this:

Varun Agrawal
Varun Agrawal

Total Post:159

Points:795
Posted on    March-29-2011 12:00 AM

User controls are easier to create in comparison to custom controls, however user controls can be less convenient to use in advanced scenarios.
User controls have limited support for consumers who use a visual design tool whereas custom controls have full visual design tool support for consumers.
A separate copy of the user control is required in each application that uses it whereas only a single copy of the custom control is required, in the global assembly cache, which makes maintenance easier.
A user control cannot be added to the Toolbox in Visual Studio whereas custom controls can be added to the Toolbox in Visual Studio.
User controls are good for static layout whereas custom controls are good for dynamic layout.

Don't want to miss updates? Please click the below button!

Follow MindStick