Explain the difference between user control and custom control. Also, explain their use.



Explain the difference between user control and custom control. Also, explain their use...

Answer / Sonam Sidhu

A UserControl is a control that can be added to other forms or controls in Windows Forms applications. It's pre-built with some properties, methods, and events, making it easier for developers to create reusable components. A CustomControl, on the other hand, is created from scratch and doesn't have any built-in properties, methods, or events. CustomControls are used when a specific behavior beyond what UserControls offer is required.nnBoth UserControls and CustomControls can be used to create custom interactive elements for Windows Forms applications.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is a generic class?

1 Answers  


What is the use of static abstract class

5 Answers   Karur Vysya Bank KVB, Target,


What are satellite assemblies? How will you get the different language strings?

1 Answers  


What are extension methods and where can we use them?

1 Answers  


How do you escape in c#?

1 Answers  


What is class in oops with example in c#?

1 Answers  


How to implement singleton design pattern in c#?

1 Answers  


why C# called C#

3 Answers  


What is regex replace in c#?

1 Answers  


Does c# support const methods, properties, or events?

1 Answers  


Does a class need a constructor c#?

1 Answers  


What are the types of comment in c# with examples?

1 Answers  


Categories