0% found this document useful (0 votes)
2 views8 pages

Chapter one-VISUAL

The document provides an introduction to Visual Basic 6, highlighting it as a high-level programming language used for designing Windows applications. It explains the structure of programming languages, the event-driven nature of Visual Basic, and details the installation and development environment, including the toolbox and its various tools. The document serves as a foundational guide for students learning Visual Basic in the context of medical instruments technology engineering.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views8 pages

Chapter one-VISUAL

The document provides an introduction to Visual Basic 6, highlighting it as a high-level programming language used for designing Windows applications. It explains the structure of programming languages, the event-driven nature of Visual Basic, and details the installation and development environment, including the toolbox and its various tools. The document serves as a foundational guide for students learning Visual Basic in the context of medical instruments technology engineering.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

ALKUNOOZE UNIVERSITY COLLEGE

DEPARTMENT OF MEDICAL INSTRUMENTS


TECHNOLOTGE ENGINEERING

VISUAL BASIC

ACADEMIC RESPONSIBLE: DOAA ABDUL MOHSEN


2023/2024
Chapter One Visual Basic 6

Lecturer: Duaa Abdul-Muhsin Second Class

Chapter one: Introduction


V.Basic6 is considered a high-level programming language.
Programming languages are divided into:
1- High Level Languages
2- Low Level Languages
What is meant by high-level programming languages is that their code is close to
the language of human communication, and this in turn is divided into two parts:
• Textual Languages
• Visual Languages
Examples of textual high-level languages include Pascal, BASIC, C++, and others.
On the other hand, visual high-level languages include Visual Basic, C#, Delphi, and
more.
While low-level programming languages are meant to interact directly with the
computer without the need for an intermediary, such as a compiler, like Assembly
languages (0s and 1s), we return to Visual Basic. It is used to design programs that
run on the Windows operating system. Therefore, those who want to learn this
language must be familiar with how to interact with the Windows operating system.
Visual Basic is one of the event-driven programming languages, similar to other
visual programming languages like Delphi and Visual C++. Event-driven
programming is based on the idea of breaking down a program into small, discrete
parts that are executed in response to specific events, such as button clicks, mouse
cursor movement over a particular window, the passage of time, and so on.
Consequently, when starting a program, it is essential to define the events and how
to respond to each one (e.g., if button X is clicked, do Y; if the mouse cursor moves
over this window, do Z).
The installation of this language on a computer is not different from installing any
other software from Microsoft. It involves installing a set of auxiliary folders or
libraries, such as the Setup folder, Tools folder, Graphics folder, all located within
the following path:
“C:\Program Files\Microsoft Visual Studio\common”
Note: This is the default path for the program.

pg. 1
Chapter One Visual Basic 6

Lecturer: Duaa Abdul-Muhsin Second Class

Running the Program: After the installation process, a set of shortcuts is added to
the Start menu, including Microsoft Visual Basic 6.0. Within this group, you will
find the shortcut "Microsoft Visual Basic 6.0" responsible for launching Visual
Basic. As shown in the figure below:

When running the program, the following window appears:

pg. 2
Chapter One Visual Basic 6

Lecturer: Duaa Abdul-Muhsin Second Class

Through this window, we notice the presence of three tabs:


1. New: This tab is used to start a new project, which can take several forms
represented by the icons within this tab, such as:
• Standard Projects
• DLL (Dynamic Link Library) Design Projects
• Database Projects

The "Existing" tab: This tab is used to open a project created previously. It displays
a dialog box that closely resembles the familiar "Open" dialog box found in
Microsoft applications.
The "Recent" tab: It is used to display a list of projects that have been worked on
recently.

Development environment
The Visual Basic language provides an excellent set of integrated tools under the
name Integrated Development Environment, abbreviated as IDE. It offers everything
you need for designing windows, writing code, and even provides you with five-star
services such as debugging, project file management, menu editing, and
creating/editing databases.

pg. 3
Chapter One Visual Basic 6

Lecturer: Duaa Abdul-Muhsin Second Class

Development Environment Windows:


Looking at the main window of the development environment, we notice that it is of
the Multiple Document Interface (MDI) type. You will find it containing many
windows. The first window we will start with is:
1. Form Designer Window.

pg. 4
Chapter One Visual Basic 6

Lecturer: Duaa Abdul-Muhsin Second Class

This window is considered the secret to the success of Visual Basic and has been
one of the most iconic windows since the earliest versions. It has an initial title of
'Form1'. Through this window, you can design your program's interface by either
modifying its properties or placing tools on it using the mouse.

The process of placing tools on it is somewhat similar to drawing squares, as in the


Paint program. Additionally, editing operations like copy, cut, and paste are
supported for all the tools you place on the window.

Toolbox:
The Toolbox can be described as one of the floating objects in the development
environment. It is a bar that contains 20 standard tools that you can add to your
projects' forms (interfaces). Other tools can be added to this box by clicking on it
with the right mouse button and choosing the Components command. The following

window will appear:

pg. 5
Chapter One Visual Basic 6

Lecturer: Duaa Abdul-Muhsin Second Class

After the installation process, a set of shortcuts is added to the Start menu, including
Microsoft Visual Basic 6.0. Within this group, you will find the Microsoft Visual
Basic 6.0 shortcut responsible for launching Visual Basic.

Toolbar Elements:
1- Pointer: This tool reverts the mouse cursor to its default arrow shape after using
other tools (the cursor returns to its normal state after using any other tool).
2- Picture Box: It is a tool used to place images on the form and integrate these
images into the project.
3- Label: This tool allows us to add labels to objects on the form.
4- Text Box: This tool is used to display or input data into the program, such as
employee names, hiring dates, etc.
5- Frame: The frame tool is used as a container for objects that you want to have the
same properties (inheritance property).
6- Button: This is used to place buttons on the form for executing specific commands
like Save, Edit, Exit, Cancel, etc.
7- List Box: This tool is used to create a list on the form containing a group of
options, allowing multiple selections at once.
8- ComboBox: Similar to the List Box tool but displays only one option that can be
used.
9- Timer: This tool is used to execute a specific command after a defined time
interval, with a crucial property called "Interval," which we will discuss later.
10- Drive ListBox: It displays drives in a list, including floppy and compressed
drives.
11- DirListBox: Similar to the previous tool but applies to folders and their contents.
12- FileListBox: Similar to the previous tool but for files.
13- Image: This tool is used to place images on the form, slightly different from the
Picture Box tool.
14- Data: This tool is used for database interaction.
15- Ole: This tool is used to interact with objects like Microsoft Word and Excel.
16- CheckBox: Checkboxes are used for selecting one or more options from a group
of choices.
17- OptionButton: Used for selecting only one option from a group of choices.
18- HscrollBar and VscrollBar: These tools are used to place horizontal or vertical
scroll bars on the window or both.

Important Note:

pg. 6
Chapter One Visual Basic 6

Lecturer: Duaa Abdul-Muhsin Second Class

You can divide this toolbox into tabs by right-clicking on it and selecting the 'Add
Tab' option, which opens a dialog asking for a tab name. After naming it, click OK.
Note that the name appears at the bottom of the toolbox. You can place tools within
these tabs by dragging and dropping them. To delete a tab, right-click on it and select
the 'Delete Tab' option. Don't worry; the tools placed within it won't be deleted.

pg. 7

You might also like