Tutorials

Change Background Color using ColorDialog in C#

Submitted by donbermoy on
Today in C#, I will teach you how to create a program that changes background color using ColorDialog in C#. Now, let's start this Color Dialog 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. Next, add only one Button named Button1 and labeled it as "Change Background Color".

Record and Play Audio in VB.NET

Submitted by donbermoy on
Today in VB.NET, i will teach you how to create a program that records and plays audio (microphone) using VB.NET. 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. Next, add three buttons named Button1 as record button for recording audio, Button2 as save and stop button, and Button3 for playing the recorded audio.

Delete Folder and Its Content using C#

Submitted by donbermoy on
In this tutorial, i will going to teach you how to create a folder and its content using C#. I always got an error in creating this program prompted as "Directory is not empty" and it cannot be deleted. So, I came up this program and studied again the possible code to fix this. Now, let's start this tutorial! 1.

Count Number of Characters using C#

Submitted by donbermoy on
Today in C# tutorial, i will teach you how to create a program that counts the number of characters 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 Count Number of Characters. 2. Next, add only one Button named Button1 and labeled it as "Count Characters".

Copy Data to a File into Another File using Java

Submitted by donbermoy on
Today in Java, I will teach you how to create a program that copies data of a file into another file using the FileInputStream and FileOutputStream of the IO package. So, now let's start this tutorial! 1. Open Notepad. Put any data in there, for example, i have write "Sourcecodester is the best!". Save it to the same folder with your java program and named it as data1.txt. Now, create another text file using Notepad and leave it blank. Name this as data2.txt. 2.

Validate Date using C#

Submitted by donbermoy on
In this tutorial, i will teach you how to create a program that validates an inputted date using C#, thus this will determine if a date is invalid or not. Here, we will use the IsDate Function. 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 project as Valid or Invalid Date. 2.

URL Validation using C#

Submitted by donbermoy on
Today, i will teach you how to create a program that will validate a URL inputted using C#. We know that a URL is the address of a specific Web site or file on the Internet. It cannot have spaces or certain other characters and uses forward slashes to denote different directories. Some examples of URLs are http://www.sourcecodester.com/, http://google.com/, etc. Now, let's start this validating a URL tutorial! 1.

Age Calculator Using C#

Submitted by donbermoy on
In this tutorial, we will going to create a program that can calculate your age using C# as the programming language. 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 project as Calculate age. 2. Next, add one DateTimePicker named DateTimePicker1 to have input of our dates.

CD/DVDROM Eject using C#

Submitted by donbermoy on
This is a tutorial in which we will going to create a program that will eject the CDROM or DVDROM using C# only. 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 the project CD eject. 2. Right Click ToolBox, click Choose Items, in the Com Components Tab, check "Windows Media Player" and then click Ok. 3.