C# Tutorial

Math Functions in C#

Submitted by donbermoy on
Today, I will teach you how to create a program that has math functions in C#. Here you will learn about Abs, Log, Round, Sin, Cos, and Tan Function. 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 2010: Go to File, click New Project, and choose Windows Application. 2. Next, add two textboxes named txtNum for your inputted number and txtOut for the output.

Validate Leap Year in C# Console

Submitted by donbermoy on
Today in C#, i will teach you how to validate a year as leap year or not. Hence we already know that leap year has 366 days instead of the normal 365 days. Leap years occur every 4 years. And this fact is our formula in finding a leap year using the console application in C#. Now, let's start this tutorial! 1. Let's start with creating a Console Application for this tutorial by following the following steps in Microsoft Visual Studio: Go to File, click New Project, and choose Console Application. 2.

Extension File Converter in C#

Submitted by donbermoy on
This tutorial provides to make a program that can convert a file into any any file that is changing the extension filename of this file using C#. Now, let's start this tutorial! 1. Let's start with creating a Windows Form Applicationin C# for this tutorial by following the following steps in Microsoft Visual Studio 2010: Go to File, click New Project, and choose Windows Application. 2.

Remove all numbers in the TextBox using C#

Submitted by donbermoy on
Today in C#, we will make a program in which if we input a number or numbers in the textbox, it will remove or clear those numbers if we will click the remove button. 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 2010: Go to File, click New Project, and choose Windows Application. 2.

How to Create an Image Converter in C#

Submitted by donbermoy on
Today in C#, I will teach you how to create a program that will convert an image to its file extension in jpeg, bmp, png, and gif. 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 2010: Go to File, click New Project, and choose Windows Application. 2. Next, add one PictureBox named picbox, two buttons named btnBrowse and btnconvert, and one ComboBox named cbformats.

Bouncing Ball in C#

Submitted by donbermoy on
In this tutorial, I will teach you how to create a program that has the animation of a bouncing ball in 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. 2. Next, add only a timer named Timer1. You must design your interface like this: design 3.

Simple Calculator using a Class in C#

Submitted by donbermoy on
In this C# tutorial, I will teach you how to create a program that will compute sum, difference, quotient, and product as just a simple calculator that uses a class. 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.

Display Directory Structure using TreeView in C#

Submitted by donbermoy on
Today in C#, i will teach you on how to create a program that loads and displays the directory structure of C using the TreeView control in C#. 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 named your project as TreeViewDirectory. 2. Next, add only one TreeView1 named TreeView11 to display the contents of C directory structure.