Launching of Visual Basic 2019 Tutorial

Microsoft has released Visual Studio 2019 preview recently. 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 Studio 2019 Preview can be downloaded from the link below. You need to have a Microsoft account to download the package.

Inline with the release of Visual Studio 2019, we have also released our tutorial on the latest VB.Net programming language, Visual Basic 2019 Tutorial for the benefits of our loyal students and followers.

Getting into the Visual Basic 2019 IDE is quite differently from Visual Basic 2017. But not to worry, our tutor has included the detail steps in launching Visual Basic 2019 in the follow lesson:

You will learn about how to design the UI in lesson 2 and lesson3.

For coding, you can check out lesson 4.

Start following this newest tutorial by checking into VB2019 Tutorial homepage.

Happy Learning!

Creating Board Games in Visual Basic

We can create board games in Visual Basic. Creating board games require some basic knowledge of maths as we need to perform some calculations. For example, we need to use the knowledge of matrix to create a board for the snakes and ladders game. Besides that, we also need to write decision-making code to deal with board games, as shown in the reversi game, where we use the If…Then..Else statements to check how many white and black pieces appear on the reversi board and which positions they occupy.

In the case of Tic Tac Toe , we need to use the Boolean logic to check the adjacent slots are empty or not. In the game of Star War, we use the principle of the projectile in physics to chart the paths of motion.

Visual Basic 2017 Built-In Functions

This year Microsoft introduced the latest version of Visual Basic, Visual Basic 2017.  It is included in the latest Visual Studio package, Visual Studio Community 2017.

Visual Basic 2017 includes numerous built-in functions to make programming jobs easier. These functions are categorized as follows:

  1. Mathematical functions
  2. Trigonometric Functions
  3. Format Functions

Of course, you can also create your own functions. Learn how to create your own functions in VB2017 from the following link

Visual Basic 2017 Lesson 17: Functions



Creating Financial Calculators

You can create all kinds of financial calculators in Visual Basic easily as long as long you know the relevant formulas.

For example, you can create a future value calculator using the following formula:

FV = PV * (1 + i / 100)n

FV=Future Value

PV=Present Value


n=Number of periods

You simply create a function for the future value, as follows:

Private Function FV(pv As Single, i As Single, n As Integer) As Double
FV = pv * (1 + i / 100) ^ n
End Function

You then write code for a button where it can compute the future value when the user clicks on the button, as follows:

Private Sub BtnCal_Click(sender As Object, e As EventArgs) Handles BtnCal.Click

Dim FutureVal As Single
Dim PresentVal As Single
Dim interest As Single
Dim period As Integer

PresentVal = TxtPV.Text
interest = TxtInt.Text
period = TxtN.Text
FutureVal = FV(PresentVal, interest, period)
LblFV.Text = Format(FutureVal, “$#,##0.00”)

End Sub

Some of the financial calculators created by us are:

Writing Maths and Science Programs

It is fairly easy to write maths and science programs in Visual Basic. Basically, it involves the use of arithmetic operators, mathematical expressions, functions, formulas, and equations. For example, Here are some examples: