Tutorials

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.

Filling and Getting the ValueMember of a ComboBox in Vb.Net

Submitted by janobe on
In this tutorial I will show you how to fill and get the ValueMember of a ComboBox in VB.Net. Knowing the value member of the items that will be displayed in a combo box is very important.Why? For instance, in the “employee’s table”, you want to display the name of the employee in the combo box, but you want to get the id of it.

Get IP Address of a Website using C#

Submitted by donbermoy on
In this tutorial, i will teach you how to create a program that gets an IP address of a website using C#. When a user inputs the link of a particular website, then the program determines its ip address. 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 IP Address of a Host. 2.