Custom controls are specialized controls in .NET derived from Control class. In this article, we explain the step by step process of creating a custom control in C# WinForms application. Custom Control in C# Winforms We can have the following types of Custom Controls in C# or VB.NET Usercontrols Usercotrols are the simpler form of custom controls […]
Difference between Custom Controls,User controls and Components in C#.NET
Difference between Custom Controls, User controls and Components in C#: Both User control and custom control are direct or indirect derivations of Control class. Control, in turn, is derived from the component.See the derivation in below lines. public class Component : MarshalByRefObject, IComponent, IDisposable public class Control : Component, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent,IComponent, IDisposable From this, […]
How to debug C# Winforms User controls at Design Time
This article is to guide you in Debugging C# Windows Forms Usercontrols at Design Time. If you are creating a user control you may be required to debug the user control during design time to ensure the user control will function as expected while in use. This article explains the steps in detail to help you debug […]
Create User Control in C# Winforms Applications
In this post, I would like to explain briefly that how one can make user controls in C# Winforms The possibilities of creating own controls in C#, apart from the available out of the box controls are categorized as below Extended Controls, by deriving from an existing controlUserControl to create a control by grouping several other […]
Deserialize XML to Object C#
This post is about Deserialization of XML to the C# class object. Many a times, in coding we need to convert class to an XML and XML to a class object in our projects. Here we will see in detail about how C# deserialize xml file or xml string with samples. Below examples show reading […]
How To Select an XML Node Element Values According to a Specific Attribute Value – C#,VB.NET
Select XML Node Element Values According to a Specific Attribute Value:This article explains how to select individual XML element value from an XML file according to a specific attribute value using XPath expression. Consider the XML file below, Below samples will help you for accessing the Employee node’s internal elements according to the ID attribute […]