The following examples show how we can draw or create different types of shaped form ( such as in the form of ellipse, pie,rectangle etc) in C# with the help of OnPaint method of the form.
Continue reading “Creating a different types of Shaped Form in C#”
Tag: C#
Microsoft Visual C# is simple, modern, general-purpose, object-oriented programming language, included in the Microsoft Visual Studio. Visual C# is also mostly used in ASP.NET web sites and Windows applications
Change tooltip font size in c# windows application
The following example shows how to change control’s tooltip font size in your windows application. In this example you can see that large tooltip message on the textbox control hover. Continue reading “Change tooltip font size in c# windows application”
How to copy a range of elements from one array to another in c#
If you want to copy a range of the elements from one array to another then we can use Array.ConstrainedCopy Method. In this article i will try to understand that how we can copy a range of elements from one array to another.
Continue reading “How to copy a range of elements from one array to another in c#”
Image Gallery in your windows application in C#
This article demonstrate how we can create a simple image gallery in C#, this article is the c# version of the original article in vb.net(). In this article we create a usercontrol for doing it, our control will be create thumbnails of the images of the specified directory.
means you just need to give the your directory path. Continue reading “Image Gallery in your windows application in C#”
How to remove duplicate items from listbox in .net
Many times when we bind our controls from a non primary column of table then it may be a case that we got the duplicate records in our dataset. There is no sense to bind duplicate records without any identity value in any control.
With the help of the following function you can easily remove duplicate items from your Listbox control.
Continue reading “How to remove duplicate items from listbox in .net”
When to use Staic and Private Constructor in C#
C# supports two types of constructor, a class constructor (static constructor) and an instance constructor (non-static constructor).
Continue reading “When to use Staic and Private Constructor in C#”
Difference between static constructor and public constructor
Difference between static constructor and public constructor:
1: Static constructor is used to initialize static data member or to perform specified action only once. It called automatically before any instance created or any static member referenced. Continue reading “Difference between static constructor and public constructor”
How to get selected records from Excel file in c#
Get Selected Records from Excel file
In this article we will learn about how can we get records from excel file in c#.
Continue reading “How to get selected records from Excel file in c#”
How to split single string into array of the strings through Regular expression in .net
The Following example shows how to split single string into array of the strings with the help of Regular expression in .net. We can split an input string into an array of substrings at the positions defined by a regular expression match.
How to know that the specified year is a leap year or not in vb.net
you can determine whether a particular year is a leap year or not with the help of IsLeapYear method.
you can use this method as:
Continue reading “How to know that the specified year is a leap year or not in vb.net”