What is an array? An array is a group of variables of the same data type. In Visual Basic 2015, when we work with a single item, we only need to use one variable. However, if we have a list of items which are of similar type to deal with, we need to declare an array of variables instead of using a variable for each item.
Author: Liew Voon Kiong
Using Variables and Constants in Visual Basic 2015
In Visual Basic 2015 programming, we have to deal with all kinds of data. The data could be numbers, strings, time, currency and more. How do we store data then? In Visual Basic 2015, data can be stored as variables or as constants. Variables are like mail boxes in the post office. The content of the variable changes every now and then, just like the mail boxes. In Visual Basic 2015, variables are created in the specific areas allocated by the computer memory to store data.
Dealing with Data in Visual Basic 2015
In Visual Basic 2015 programming, we need to deal with all sorts of of data, some of them can be mathematically calculated while some are in the form of text or other non-numeric forms. Data can be stored as variables, constants or arrays. The values of data stored as variables always change, just like the contents of a mail box or the storage bin while the value of a constant remains the same throughout.
Working with Picture Box in Visual Basic 2015
Picture box is a control in Visual Basic 2015 that is used to display images .In Visual Basic 2015 Tutorial Lesson lesson 3, we have already learned how to insert a picture box on the form in Visual Basic 2015. However, we have not learned how to load a picture in the picture box yet. In this lesson, we shall learn how to load an image into the picture box at design time and at runtime. Besides that, we shall also learn how to using a common dialog control to browse for image files in your local drives and then select and load a particular image in the picture box.
Working with List Box and Combo Box in Visual Basic 2015
In Visual Basic 2015 Lesson 5, you have learned how to work with text boxes and labels in Visual Basic 2015. In the newest lesson, you shall learn two more important controls, the list box and the combo box. Both controls are used to display a list of items. However, they differ slightly in the ways they display the items. The list box displays the items all at once in a text area whilst combo box displays only one item initially and the user needs to click on the handle of the combo box to view the items in a drop-down list.
Click on Visual Basic 2015 Lesson 6 to learn more