C# Tutorial

Draw a Text in a Windows Form in C#

Submitted by donbermoy on
In this tutorial, I will teach you how to create a program that will draw a text in a windows form using C#. Now, let's start this tutorial! 1. Let's start with creating a Windows Form Application for this tutorial by following the following steps in Microsoft Visual Studio: Go to File, click New Project, and choose Windows Application and name your project as Draw a Text in Windows Form. 2. Next, add only one Button named Button1 and labeled it as "Draw a Text".

Backspace Button in C#

Submitted by donbermoy on
In this tutorial, I will teach you how to create a button that has a backspace function. We often click a backspace button in which this button is a keyboard key that display cursor one position backwards and deletes the character at that position, and shifts back the text after that position by one position. So now, let's start this tutorial! 1.

Multiplication Table in C#

Submitted by donbermoy on
Today in C#, I will teach you how to create a program that has the multiplication table functions. So, now let's start this tutorial! 1. Let's start with creating a Windows Form Application in C# for this tutorial by following the following steps in Microsoft Visual Studio: Go to File, click New Project, and choose Windows Application. 2.

How To Create a Stopwatch in C#

Submitted by donbermoy on
In this tutorial, I will teach you how to create a program that has a function of a digital stopwatch. Stopwatch is a timepiece that can be started or stopped for exact timing as of a race or any activity. Now, let's start this tutorial! 1. Let's start with creating a Windows Form Application for this tutorial by following the following steps in Microsoft Visual Studio: Go to File, click New Project, and choose Windows Application. 2.

Numbers Only in Textbox using C#

Submitted by donbermoy on
Today in C#, I will teach you how to create a program that accepts only number input in the textbox. There are many fields in an information that we must only type a number in a textfield or in a textbox such as phone number, zip code, or any fields that must have a number type only. So, now we will begin this filtering a textbox into number only. Now, let's start this tutorial! 1.

View PDF Files using Acrobat in C#

Submitted by donbermoy on
In this tutorial, I will teach you how to create a program that will view PDF files using C#. Now, let's start this tutorial! 1. Let's start with creating a Windows Form Application for this tutorial by following the following steps in Microsoft Visual Studio: Go to File, click New Project, and choose Windows Application and name your project as Open Acrobat PDF Reader. 2. Next, add only two Buttons named Button1 and labeled it as "Open PDF File" and Button2 for browsing PDF files.

How to Compute Sum of Date and Number of Days in C#

Submitted by donbermoy on
Last week, I have discussed a program for computing the difference between two dates. See here: How to Compute Date Difference in C#. Now, i will teach you how to create a program for finding a sum of a date and the number of days to be added using C#. So, now let's start this tutorial! 1.

Creating a Slot Machine Game in C#

Submitted by donbermoy on
Today in C#, i will teach you how to create a program called Slot Machine Game. Now, let's start this tutorial! 1. Let's start with creating a Windows Form Application in C# for this tutorial by following the following steps in Microsoft Visual Studio: Go to File, click New Project, and choose Windows Application. 2. Next, add only one Button named Button1 and labeled it as "SPIN". Insert three PictureBox named PictureBox1,PictureBox2, and PictureBox3. Add also a timer named Timer1.

Get the Most Repeated Item in the ListBox

Submitted by donbermoy on
In this C# tutorial, I will teach you how to create a program that will get and display the most repeated item in the ListBox. Now, let's start this tutorial! 1. Let's start with creating a Windows Form Application for this tutorial by following the following steps in Microsoft Visual Studio: Go to File, click New Project, and choose Windows Application. 2.