Visual Basic ‘Hello World’
A quick tutorial on printing ‘Hello World’ in Visual Basic:
First, open Visual Basic. If you don’t have it, download it here.
Create a new ‘Windows Forms Application’, and name it ‘Hello World’.
You’ll then be presented with your new project, and we can begin creating our ‘Hello World’ application. Since we won’t be using an interface for this, commonly referred to as a ‘form’, we need to hide the main form. We can do this via code or in the form’s settings. If we’re not using a form, what will we be using, you ask? We’ll be creating a messagebox, and adding ‘Hello World’ to it. In Visual Basic, this is so incredibly simple, it can be done within seconds. We’re going to need to get to our ‘form’ code, so double-click on the form
We will then be presented with the code window, which will have code already written in it, and look somewhat like the image below. That’s okay, it’s just our ‘Public Class’, which defines our forum.
In the space between the ‘Private Sub Form1_Load’ and the ‘End Sub’, we’ll need to:
1. Make the main form invisible when the application is run, and
2. Create a messagebox with the ‘Hello World’ message.
First, to make the form invisible on run, we need to specify two things: The form, and the visibility. We will set this using the following code:
As you see, it’s incredibly easy to understand, as it’s setting ‘Me’, or the current form to invisible. Our code should now resemble this:
It is now necessary to add the messagebox functionality. We’ll need to use the following code:


