In this tutorial, we’ll learn How to add newline in a TextBox Control. Normally, when you want to add newline to a string you can use’\n’ for adding new lines like below. Example: C# using System; using System...
Tag - C# Tutorial
TextBox Control in C# with Examples
In this tutorial, you will learn about essential control in the WinForms application world, which is the TextBox Control. A TextBox is widely used in Windows Application, mainly to get or set data from/to a data source. Just like...
Change FontSize of DataGridView Columns in C#
In this tutorial,i’ll show you How to change font size in DataGridView. Solution 1: Design-time In winform datagrid, right click to view its properties. It has a property called DefaultCellStyle. Click the ellipsis on...
Overloading in C# with Examples
In overloading, there are multiple methods with different method signatures. Below are some examples that show how we can achieve overloading by varying the number of parameters, the order of parameters, and data types of...
How to Insert Elements at a Position in a C# List?
The Insert method of List class inserts an object at a given position. The first parameter of the method is the 0th based index in the List. The InsertRange method can insert a collection at the given position. Add an item...
List Collection in C#
In c#, List is a generic type of collection, so it will allow storing only strongly typed objects, i.e., elements of the same data type. The size of the list will vary dynamically based on our application requirements, like...
How to make a Countdown Timer using C#.NET
Hello everyone welcome to my programming channel. I will show you how to make countdown timer. Let’s develop a simple count down using C sharp and windows form. You may also like :C# Create Countdown with Timer Click new...
Format Decimal or Double Numbers into String in C#
In this tutorial, we will learn how to format decimal or double numbers into string in C#. String.Format converts the value of objects into strings based on the given formats. String.Format converts the value of objects into...
Using Delegates in C#
This article discusses an important topic about delegated types in C # (csharp). It will undoubtedly be part of a series of articles on the basics of CSharp. So we’ll see what delegates are and why they’re so...
How to Encrypt/Decrypt a File in C#
In this tutorial I will guide you How to Encrypt/Decrypta File in C#, with examples and Demo code, you can download for use. The Decrypt method decrypts an encrypted file. Only account that has encrypted a file can decrypt a file...