Visual Basic

Visual Basic (VB) is used to design GUI applications. It is also referred to as an event driven programming language. In event-driven programming, the flow of a program is determined by events such as mouse click event, mouse over event, etc. A Visual Basic program has three modes: Design Mode, Run Mode and Break Mode. Design Mode is the state when a programmer creates objects and writes logical statements. In Run Mode, the statements written by a programmer are executed and the application performs the desired tasks. Break Mode is used to halt the execution of a program so as to remove errors from the code.

To develop a VB application, create a form and place all controls on it. Set the properties of the controls. Open the code window by double clicking on the control and write the code to perform the task. Commonly used components of VB IDE are Title bar, Menu bar, Toolbar, Form window, Toolbox, Project window, Properties window and Form Layout. When a VB application is opened, a default form is added to the project to design an interface. Once the form is added to the project, the interface can be designed with the help of the controls available in the Toolbox. The command buttons are used to write the code on their click event to execute the program code associated with them.

To Access the full content, Please Purchase