Visual Basic (also termed Visual Basic .NET or VB) is a major revision of earlier Microsoft VB products.
VB is available in several editions including the free Express Edition that you can download from Microsoft. Other editions (Professional, Premium, and Ultimate) are used within the industry.
Visual Studio Components
When Visual Studio is installed on a computer, two mandatory components are necessary for installation and an optional third component.
This is a library of predefined class objects. It enables you to quickly build a computer application through the use of predefined objects such as forms, text boxes, labels, buttons, dropdown list controls, etc.
This component manages the execution of a programming project written in any of the languages that are included within Visual Studio including Visual Basic as a language (mandatory). This component is installed as part of the .NET Framework.
MSDN (Help)
This is the help component that provides access to a help reference library. It is optional, but highly recommended component.
Object-Oriented Programming Terminology
VB is an object-oriented programming language. It means you work with objects in building an application.
Examples: Form objects, Button objects, TextBox objects, Label objects, ListBox objects, PictureBox objects, and more.
VB has also termed an event-driven programming language because you will write program code that responds to the events that are controlled by the system user.
For example,
In order to work with VB, you need to understand ‘object’ terminology as defined in the following table.
Getting Started with Visual Studio
The VB component of Visual Studio can be used to create and test projects.
To start VB, Click the Windows Start button and locate Microsoft Visual Studio 2010, click the button to launch the program.
The first screen to display may require you to choose your Default Environment Settings.
Familiarize yourself with the Integrated Development Environment (IDE).
The GUI with the points given below:
Naming Rules and Conventions
Visual Basic automatically assigns a value to the Name property of each control, for example, Label1, Label2, Label3, or TextBox1, TextBox2, TextBox3, or Button1, Button2, Button3. However, it is difficult to remember the difference between Label1 and Label2.
Therefore:
When you name an object such as a Label or TextBox or Button, you must follow these rules:
Close Button, Name Text Box, and Major Text Box are legal names.
As you have seen already, forms, labels, text boxes, and buttons have numerous properties. The name property is used to name control for your reference. For example, names such as display button or exit button.
After you finish sizing control on a form, you can lock the controls to prevent accidental movement of the controls.
Switching Between the View Designer and View Code Windows Often you will need to switch between the View Designer and View Code windows.
The different ways to do this are:
Design Time, Run Time, Break Time
There are some additional terms for you to learn about designing and executing a VB program.
7 videos|27 docs|69 tests
|
1. What is Visual Basic? |
2. What are the main features of Visual Basic? |
3. How can I create a GUI application using Visual Basic? |
4. What is the .NET Framework in Visual Basic? |
5. Can Visual Basic be used for web development? |
|
Explore Courses for Class 9 exam
|