C#

C-Sharp

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.

Creating a Paint Program when Moving Mouse using C#

Submitted by donbermoy on
In this tutorial, i will teach you how to create a program that paints the form when clicking and moving the mouse using C#. 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 and name your program as Mouse Move Paint. 2. You don't have to design your interface because we will only focus on the mouse event. 3. Now put this code for your code module.

File Searcher in C#

Submitted by donbermoy on
Today in C#, I will teach you how to create a program that will search for a file in a specific path using C#. But here, we will only search for a file in the desktop. 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 and name your program as File Searcher. 2.

Shutdown Manager in C#

Submitted by donbermoy on
In this tutorial, we will create a shutdown manager program that can log off, restart, and turn off your computer. 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 three buttons named Button1 labeled as "Shutdown", Button2 labeled as "Logoff", and Button3 labeled as "Restart".

Search Item in a ListBox in C#

Submitted by donbermoy on
In this tutorial, i will teach you how to create a program that searches an item inside the listbox using C#. 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 and name your project as Search Item in a ListBox. 2.