Visual Basic 2015 Lesson 1: Introduction

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInEmail this to someone

[Contents]>>[Lesson2]

1.1 Introduction

Visual Basic 2015 is the version of Visual Basic introduced by Microsoft in 2015. Microsoft has added many new features particularly those features for building  mobile applications . Visual Basic 2015 is a full fledged Object-Oriented Programming(OOP) Language, just like other OOP languages such as C++, Java,C# and more. Visual Basic 2015 is bundled together with other Microsoft Programming languages C#  C++ , F#, JavaScript, Python and more in a package called Visual Studio Community 2015 .




Visual Studio Community 2015 can be downloaded from the link below. You need to have a Microsoft account to download the package.
http://www.visualstudio.com/en-us/downloads/visual-studio-2015-downloads-vs.aspx

After clicking on the link above, the following  download page appears:

vs2015download




Figure 1.1: Visual Studio Community 2015 Download Page

As our tutorial was written based on community version, you will download the free Visual Studio 2015 Community version. After clicking on the download link, the installation file vs_community.exe  will be downloaded into your hard drive. Click on the file to start the installation process. You can choose default installation or custom installation.

However, if you just wish to develop applications for desktop,  we advise you to download Visual Studio Express 2015 for desktop from the following link:

Visual Studio Express 2015 for desktop

1.2 Visual Studio Community 2015 Start Page

When you first launch  Visual Studio Community 2015, the following start Page appears, as shown in Figure 1.2

vs2015startuprc
Figure 1.2:   Visual Studio Community 2015 Start Page

Now click on New Project under Start to launch the New Project window, as shown in Figure 1.3

vs2015projectFigure 1.3: New Project Window 

In the New Project window, you can build many kinds of applications using different programming languages. They are Visual Basic,, Visual C#, Visual C++, Visual F#, JavaScript, Python and more. As we are only dealing with Visual Basic, we shall click on Visual Basic Windows Form Application. Before you continue, enter the application name at the bottom. Change the default name WindowsApplication1 to My First VB2015 project.

1.3 Visual Basic Community 2015 Integrated Development Environment

Upon clicking Windows Form Application, the  Visual Basic Community 2015 Integrated Development Environment appears, as shown in Figure 1.4. You can see that the name of the project you entered earlier appears on the top right corner of the IDE.

vb2015ide

 Figure 1.4: Visual Basic 2015 IDE




Visual Basic  Community 2015 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 allows a programmer to develop his or her Visual Basic 2015 programs.

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

vb2015prog1

Figure 1.5:The Design Interface

Click on the Show 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.6

vb2015codewin

Figure 1.6: Visual Basic 2015 Code Window

 

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

 Figure 1.7:The Message Box




The function MsgBox is a built-in function of Visual Basic 2015 and it will display the text enclosed within the brackets.

Now you have created your first program in Visual Basic 2015, we shall learn more Visual Basic 2015 programming techniques in coming lessons.





[Contents]>>[Lesson2]

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInEmail this to someone