VB2022 VB2019 VB6 VB Sample Code About Us

Lesson 1: Introduction to VB2019

1.1 Introduction

Microsoft has released Visual Studio 2019 in early 2019. VS 2019 allows you to code in different programming languages and different platforms, Visual Basic 2019 is one of them. The other Programming languages are C#  C++, F#, JavaScript, Java and Python. Visual Basic 2019 is the latest version VB.NET programming language released by Microsoft.

Visual Studio 2019 installer can be downloaded from the link below.


After downloading and installing VS 2019, you are now ready to launch Visual Studio 2019 and start programming in Visual Basic 2019.

1.2 Visual Studio 2019 Start Page

The VS2019 start page is quite different from VS 2017. When you first launch  Visual Studio 2019, the following start Page appears, as shown in Figure 1.1. You can quickly launch recently open recently opened projects, clone from GitHub, open a project or solution, open a local folder or create a new project.

Figure 1.1   Visual Studio 2019 Start Page

Let's select Create a new project option and launch the Create a new project page, as shown in Figure 1.2. We select the Visual Basic language

Figure 1.2  New Project Page 

In the Create new project page, we select Windows Forms App(.Net Framework)template as we want to develop a Windows desktop project, as shown in Figure 1.3

Figure 1.3  Select Project Template 

Upon clicking the selected project template, the project configuration page appears, as shown in Figure 1.4. You can configure your project by typing the project name and select a few other options.

Figure 1.4  Configuring Project 

1.3 Visual Basic 2019 IDE

Upon clicking the Create button the  Visual Basic 2019 IDE, as shown in Figure 1.6. You can see that the name of the project you entered earlier appears on the top right corner of the IDE.

 Figure 1.5 Visual Basic 2019 IDE

VB2019 IDE comprises a few windows, the Form window, the Solution Explorer window and the Properties window. It also consists of a toolbox which contains many useful controls that allow a programmer to develop his or her Visual Basic 2019 program. The toolbox can be hidden or dragged to the bottom or side of the window.

Now, we shall proceed to show you how to create your first program in Visual Basic 2019. First, change the text of the form to My First vb2019 Program in the properties window, it will appear as the title of the program. Next, insert a button and change its text to Display Hidden Message. The design interface is shown in Figure 1.6

Figure 1.6 The Design Interface

Click on the Display Hidden Message button to bring up the code window and enter the following statement between Private Sub and End Sub procedure, as shown in Figure 1.7

Figure 1.7  Visual Basic 2019 Code Window

When you run this program and click on the Display Hidden Message button, you should get the following popup message box.

 Figure 1.8 The Message Box

The function MsgBox is a built-in function of Visual Basic 2019 and it will display the text enclosed within the brackets. Now you have created your first program in Visual Basic 2019, we shall learn more Visual Basic 2019 programming techniques in coming lessons.

❮ Home Next lesson ❯

Copyright©2008 Dr.Liew Voon Kiong. All rights reserved |Contact|Privacy Policy