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 […]
Calculate the Size of a Directory in C#
Calculate Directory Size in C#: By default, we cannot directly retrieve the total size of a directory in .NET, including subdirectories. So how to find the directory size in C# ,VB.NET or any other .NET language? We need to have a workaround method that will return the total size of a directory in bytes.Here we need to […]
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 […]