csharp

ListBox Adding and Removing an Item in C#

Submitted by donbermoy on
ListBox is a control that displays a collection of items. More than one item in a ListBox is visible at a time. You can either populate the ListBox control directly, or bind it to a collection of items. In this tutorial, i will discuss some events in ListBox such as adding and removing an item in a ListBox. So, now let's start this tutorial! 1.

Exception Handling in C#

Submitted by donbermoy on
Sometimes, we encounter different errors along the program whenever we executed it. For example, the file does not exist in the given path, network connections are not connected, or any errors that you have experienced when you're learning how to program. This is what we've called Runtime Errors. One way to prevent it is the Structured exception handling. In this tutorial for C#, we will used the Try-Catch-Finally statement.

Bubble Sort in C# Console

Submitted by donbermoy on
Today in C#, I will teach you how to create a program for bubble sorting using C# console. We all know that bubble sort is a sorting algorithm that is repeatedly searching through lists that need to be sorted, comparing each pair of items and swapping them if they are in the wrong order. Now, let's start this tutorial! 1.

Change Case: Uppercase and Lowercase in C#

Submitted by donbermoy on
Today in C#, I will teach you how to create a program that changes case either uppercase or lowercase letters 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 2010: Go to File, click New Project, and choose Windows Application. 2. Next, add two Buttons named Button1 and labeled it as "Uppercase" and Button2 labeled as "Lowercase".

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.

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.

Simple Grading System using C#

Submitted by donbermoy on
This is a program created using Visual Studio 2010 having a C# language and Microsoft Access 2007. This is a simple grading system that creates and save new data of student and its grades of their semester and school year. Features of this system are: - Compute Grades for the student and determines if they are failed or passed - Adding, saving, updating, and deleting record of the student's grades