Programming, Investing and FI

Visual Basic Tutorial 3 – Visual Studio interface

Note : This post will be in english only and you will find the equivalent french version in another post.

If you followed the Visual Basic series, you should now have a startup project from tutorial 2. We’re almost ready to start coding stuff! But first, I just want to point out some important parts of the Visual Studio user interface.

Solution Explorer

A solution in Visual Studio can contain one or more projects. This window should be on the right of your Visual Studio interface (if it is not you might want to click on View -> Solution Explorer in the Top Menu bar). If you click on the various files you can access them the same way you access a standard file system. You can also right-click on the files and directory to see more options.

Solution explorer

If you right click on the current file (Module1.vb) you can then rename it to: Program. Say yes to renaming all references in the project. The same process can be done for Deleting a file or a folder.

Rename file

You can create a new file by right-clicking on the Project -> Add -> New File.

Add a file

You have to select the type of file you wish to add to your project and give it a name. In that case, we are simply going to add a new class and name it: FirstClass.vb

Add file dialog

Properties Window

This window will most likely display nothing if you are in a code file. But in a Windows form or other interface file type, it will display object properties, we will use it a lot more in the Windows Forms tutorials. But here is how it looks like, how to get it if you cannot see it? View -> Properties Window.

Properties window


The toolbox is also used with Windows forms or interfaces mostly so we won’t need it at the moment but it’s still good to know it is there. If you cannot find it, once again, View -> Toolbox.


Top menu bar

The important elements to consider on the top menu bar are the Start button with a green arrow besides it, the save button (good old floppy drive) and the comment/uncomment buttons.

Top menu

Debug mode

When switching to debug mode, in other words after clicking on start, you will have access to some new buttons (Stop, Step into, Step over, Step out), we will see these buttons in another tutorial but keep in mind that they are very important.

That covers it for what I think is the basic stuff to know about the interface. We’re ready to start coding now!

Next article Visual Basic Tutorial 4 - First lines of code
Previous article Visual Basic Tutorial 1 - Installing Visual Studio 2015

Related posts