Visual Basic .NET Tutorial

Animation: Bouncing Ball in Visual Basic 2008

Submitted by janobe on
In this tutorial I’m going to teach you how to animate a ball by using Visual basic 2008. The feature of the ball is that, it bounces in every side of the Form. With this, you will learn the functions of the bitmap and the graphics object. Let’s begin: Open the Visual Basic 2008 and create a New Windows Application.

How to Create a Simple CPU and RAM Meter in Visual Basic 2008

Submitted by janobe on
In this tutorial I will teach you how to create a simple CPU and RAM meter by using Visual Basic 2008. With this, you will be able to know the usage of your RAM and CPU. And it also calculates the percentage of its performance usage. Let’s begin: Open Visual Basic 2008, create a new Windows Application and drag the Label, ProgressBar, PerformanceCounter and a Timer. Name the two PerformanceCounters, “pcCPU” and the other one is “pcRAM”. Then, name the two Labels into “lblCPU” and “lblRAM”.

File Handling : Creating the Logs in Visual Basic 2008

Submitted by janobe on
In this tutorial I will teach you how to create logs in Visual Basic 2008. Logs are very important because it records previous transactions and day to day activities of the system. For instance, in a log in system, you can determine the time and who is the user that had logged in the system. And whenever your system has a problem you can easily determine what was it with the help of logs. So, let’s begin: Open Visual Basic 2008, create a New Windows application , drag a RichTextBox, and a Button in the Form. And it will look like this.

Print the Text in a Textbox Part II..(Page Setup and Print Dialog)

Submitted by janobe on
This is the continuation of my previous tutorial which is the Print the Text in a Textbox. This time, I’m going to add the Page Setup and Print Dialog. In the Page Setup you can choose any setup that you wanted in your page and it contains selections such as the margin,sizes and etc.. While in the Print Dialog you can select the number of pages and copies that you want to print.

Drag/Drop and Copy Control in a TreeView Using Visual Basic 2008

Submitted by janobe on
In this tutorial, I will show you how to drag/drop and copy in a Treeview by using Visual Basic 2008. I made this to show you not only a PictureBox or a TextBox can be drag and drop but also a treeview. Let’s begin: Open Visual Basic 2008, create a new Windows Application and drag the two Treeview in the Form. Name it “trview_left” and “trview_right”. first form After that, click the two Treeviews and go to the properties.

How to Print the Text in a Textbox

Submitted by janobe on
This time, I’m going to teach you how to print the text in a Textbox in Visual Basic 2008. This will allow you to preview and print any message that you type in a TextBox. It depends on you, on how long your message will because it will automatically set on the next page. So, lets get started : Open Visual Basic 2008, create a new Window Application and do the Form just like this.

Date Calculator in Visual Basic 2008

Submitted by janobe on
Today I’m going to show you how to create a simple Date Calculator in Visual Basic 2008.With this, it will help you know the dates before and after the present date. For instance, you want to jump into seven days after the present date, the date calculator will automatically calculate it. And you don’t have to count the days anymore. So lets begin: Open Visual Basic 2008, create a new Windows Application and do the Form just like this.

Rolling Numbers Game in Visual Basic 2008

Submitted by janobe on
This time I will teach you how to create Rolling Numbers Game in Visual Basic 2008. In these features the numbers are rolled randomly and it has a Progress Bar that serves as a timer. Let's begin: Open the Visual Basic 2008, create a Windows Application and do the Form just like this. first form Double click the Timer and do the following code. The event is, everytime the timer ticks, the numbers in the Textbox will randomly roll.

How to Get the X/Y Point of a Textbox Using For Each Loop

Submitted by janobe on
In this tutorial I will teach you how to get X/Y Point of a Textbox Using For Each Loop in Visual Basic 2008. With this you can easily get the location of a specific Textbox. I used the Foreach Loop so that you don’t have to specify what is the name of your Textbox. All you have to do, is to get the type of it. Let’s begin. Open Visual Basic 2008, create a new Windows Application, drag the Textbox and Button you needed.