1 Introduction to Visual Basic
1 Introduction to Visual Basic
1 Introduction to Visual Basic
Programming
2
• Main Window
This is the only element of the IDE which is always visible. You use
it to select which other IDE elements to view and to add forms or
controls to your project. There are many other features which we
will discuss later.
• Toolbox Window
The toolbox is simply a library of controls which you can place on
your application. It is used to add art work, labels, buttons, list
boxes, scroll bars, menus, and geometric shapes to a user
interface. Once you’ve placed all the controls you need onto your
applications forms, you can hide the toolbox to make room for
working in the other elements of the IDE.
Integrated Development Environment (IDE)
• Project Window
This is simply a list of all forms and modules which make up your
VB project.
• Property Window
Controls such as buttons, scrolling text boxes, pictures boxes and
other features of most VB applications allow you to enter
parameters which define how these controls work. In VB, these
parameters are called properties. Some properties can be entered
at design time within the IDE, while others must be entered with
code while the program is running.
Integrated Development Environment (IDE)
• Form Window
They are the windows which hold the various controls (buttons,
text boxes, etc.) which make up your Application.
• Code Window
This is where you type in the code that VB executes. Notice that
the heading of the window indicates with which event the code is
associated.
Program Development Cycle
1. Analyze: Define the problem
• A common programming error is to begin coding before analysis of
the problem and design of the solution is incomplete.
What is the problem?
Are there any special requirements of the solution?