Principal of Computer Science: Lec. Dr. Nuha H. Al-Hasan
Principal of Computer Science: Lec. Dr. Nuha H. Al-Hasan
Science
Lec. Dr. Nuha H. Al-Hasan,
Department of Engineering Material ,
College of Engineering,
University of Basrah,
Basrah,
Iraq
e.mail: [email protected]
In this lecture
Introduction to Microsoft Visual Basic
6.0
Elements of the Integrated Development
Environment
To Create an Application
Toolbox Controls
Project
Introduction
Visual Basic implements graphical user interface
that allows the use of graphics for different
applications.
To run this program on user computer:
CheckBox A control that provides the user with a toggle choice (checked or unchecked)
OptionButton Option buttons are used in groups where only one at a time can be true.
ListBox A control that provides a list of items.
ComboBox A control that provides a short list of items.
HscrollBar A horizontal scrollbar.
VscrollBar A vertical scrollbar.
Shape A control for drawing circles, rectangles, squares or ellipse
Line A control for drawing line.
DrivelistBox A control accessing the system disk drivers.
DirlistBox A control accessing directories on a system
Filelistbox A control accessing file in a directory
Image A control for displaying images. The images control does not provide as many
capabilities as a picturebox.
OLE A control for interacting with other window applications.
Timer A control that performs a task at programmer specified intervals.
Visual Basic Operators
Project
Working with Standard Projects include the following steps :
a) To create project: When program starts, project box appears-select
Standard EXE >Project window appears.
OR: File> New project> Box (select Standard EXE)> Project window
appears
b) To add project: Any number can be added.
Project icon> Select Standard EXE> Project window appears.
Note: Usually first project runs first, but user can change that by:
Selecting project from project window > mouse list > Set as startup.
c) To open an existing project: It is previously designed and saved on
disc in a folder. File> Open project> Box (select existing and look for
the project) >
Project window
d) To delete a project: Select project in Project window > Mouse list >
Remove project.
e) To save project:The visual basic can save the project on disc in two
ways, as an executable type or a non- executable type.
Thanks for attention