Author Archives: Liew Voon Kiong

Dynamic Arrays

Array size is often defined during design time. This type of array is known as static array. However, the problem is sometimes we might not know how many data items we need to store during run time. In this case, we need to use dynamic array where the number of elements will be decided during run time. In Visual Basic 2017, the dynamic array can be resized when the program is executing. The first step in declaring a dynamic array is by using the Dim statement without specifying the dimension list, as follows:

Dim myArray()

Then at run time we can specify the actual array size using the ReDim statement,as follows:

ReDim myArray(n)
* n =array size
You can also declare a two dimensional array using ReDim statement, as follows:

ReDim myArray(n, m)
*mxn indicates the array size.

Read more here

Visual Basic 2017 Tutorial

Our Visual Basic 2017 tutorial is finally ready!

Visual Basic 2017 is the latest version of Visual Basic launched by Microsoft in 2017.  Visual Basic 2017 is bundled together with other Microsoft Programming languages C#  C++ , F#, JavaScript, Python and more in a package called Visual Studio Community 2017 Release Candidate . Microsoft has added many new features in Visual Studio 2017 particularly those features for building  mobile applications .

Start learning Visual Basic 2017 by clicking the link below:

Introduction to Visual Basic 2017

To start programming in Visual Basic 2017, you need to launch Visual Studio 2017 RC. The following is the start page of Visual Studio 2017.

Click on project and the New Project window opens. Select Visual Basic and choose Windows Forms App(.NET Framework) as shown in the figure below.  Also enter the project name and then click OK.

After clicking OK, You will be presented with the Visual Basic 2017 IDE,as shown in the figure below.  The VB2017 IDE comprises a windows form, the Solution Explorer, the Properties window and the toolbox.

To start programming, click on the form to  bring up the code window.

The first program you can write is to enter the following code:

MsgBox(“Welcome to Visual Basic 2017”)

Running the program will produce a message box that shows the message “Welcome to Visual Basic 2017”

Microsoft launched Visual Studio 2017 Release Candidate

Microsoft has already launched Visual Studio 2017 RC(Release Candidate ) with a gap of one year after launching Visual Studio 2015 RC. Microsoft assures that Visual Studio RC let’s you develop any app on any platform easily.

Visual Studio 2017 RC is equipped with enhancements to code navigation, IntelliSense, refactoring, code fixes, and debugging. It will saves you time and effort on everyday tasks regardless of language or platform.

As we are keen in developing Visual Basic 2017 desktop app, we will focus on .NET desktop development component of Visual Studio 2017. Of course , you are free to explore and try our other development tools of VS 2017 RC.

The .NET Desktop application development in Visual Studio 2017 is designed for building WPF, Windows Forms and console apps using .NET Framework.  With shorter solution load time, improved IntelliSense, code navigation, and refactoring  save you time and effort on everyday tasks, you can build desktop apps with great UI and better performance.

Please refer to the Youtube link below to view the introduction to VS2017RC  .NET desktop development.

You can download the free version of Visual Studio 2017 RC from the link below:

After downloading the file, run the VS2017RC community  installer file

vs_community__695901156.1467100807 (7).exe.

If you receive a User Account Control notice, click Yes.  Next, it will ask you to acknowledge the Microsoft License Terms and the Microsoft Privacy Statement.

Click Install to continue.

You’ll see several status screens that show the progress of the installation. After the installer is finished installing, it’s time to pick the feature set that you want. Since we are keen in developing Visual Basic 2017 desktop app, we will select the .NET desktop development component. After making your selection, click install.

Upon completion of the installation, you are now ready to launch Visual Studio 2017 RC and start programming in Visual Basic 2017. I will show you how to write your first program in Visual Basic 2017 in my next post