Visual Basic .NET Tutorial

Exception Handling

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, we will used the Try-Catch-Finally statement.

Acquire Computer Drive

Submitted by donbermoy on
Hi! This is my tutorial entitled "Acquire Computer Drive using VB.Net". Sometimes we have require to get the drives of our computer, but this tutorial gets the list of available drives in ListView. So, 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.

RadioButton Control in VB.NET

Submitted by donbermoy on
The RadioButton component lets you force a user to make a single selection from a set of choices. This component must be used in a group of at least two RadioButton instances. Only one member of the group can be selected at any given time. Now, we will create a RadioButtons that when chose it will change the background color of the Form. So, now let's start this tutorial! 1.

CheckBox Control

Submitted by donbermoy on
I had discussed RadioButton a while ago and now I will introduce the CheckBox Control in VB.NET. CheckBox and RadioButton controls have a similar function: they allow the user to choose from a list of options. CheckBox controls let the user pick a combination of options. In contrast, RadioButton controls allow a user to choose from mutually exclusive options. They have the same popular event of .Checked. 1.

ProgressBar Control

Submitted by donbermoy on
This is my 3rd tutorial for the controls in vb.net. The one that i will introduce today is the ProgressBar Control. A ProgressBar indicates the progress of an operation. The ProgressBar control consists of a window that is filled with the system highlight color as an operation progresses. So, now let's start this tutorial! 1.

ListBox Adding and Removing an Item in VB.NET

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.

How to know if Email is Valid or Not in VB.NET

Submitted by donbermoy on
Hi! this is donbermoy again! :) For now i will teach you how to code for the validation of email address when you input it. Email address has two parts namely the local part of the address which is the part before the @ sign, and the domain name in which the email message will be sent. So, 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.

ComboBox Control

Submitted by donbermoy on
ComboBox Control allows the user to select an item from a drop-down list or optionally to enter new text in the text box of the control. ComboBox can contain a collection of objects of any type (such as String, or Image.). In this tutorial, we will discuss how to add and remove an item in a ComboBox. So, now let's start this tutorial! 1.

How to compute Date Difference in VB.NET

Submitted by donbermoy on
In this article, i will introduce another some twist of the Date Function in VB.NET. I haven't posted for two days because of I was tasked to be a panelists for the Thesis Defense in Computer Engineering.But now I'm back! Hurray! haha :D So, now let's start this Date Difference 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.

Compute Square Root using Math.Sqrt in VB.NET

Submitted by donbermoy on
In this article, i will introduce another function in VB.NET regarding the Math Functions, the Math.Sqrt(). Math.Sqrt() function provides to compute the square root of a number. This will help the students to solve their quizzes and exams regarding how to get a square root of a number by only a manual solving. haha. LOL. :) So, now let's start this tutorial! 1.