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 |
What is a generic class?
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?
What are extension methods and where can we use them?
How do you escape in c#?
What is class in oops with example in c#?
How to implement singleton design pattern in c#?
why C# called C#
What is regex replace in c#?
Does c# support const methods, properties, or events?
Does a class need a constructor c#?
What are the types of comment in c# with examples?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)