VISUALBASIC_intro.ppt this file is required for BCA students.
jayedhossain1519
3 views
15 slides
Mar 08, 2025
Slide 1 of 15
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
About This Presentation
this is a file based on visual basic programming language.
Size: 261.21 KB
Language: en
Added: Mar 08, 2025
Slides: 15 pages
Slide Content
INTRODUCTION TO VISUAL BASIC
The main concept of VB is IDE (Integrated Development
Environment). IDE means, in which platform , a user can
create, run and debug.
Overview of IDE: -
When VB is loaded, a new dialogue box will open (named as: -
“NEW PROJECT”). Here we can find 3 tabs: - New, Recent,
Existing. All these 3 tabs are related to creation of VB projects.
(pic – 1)
New: - For creating a new project
Existing: - For opening an existing project.
Recent: - For opening an recently added project.
In this dialogue box, the Standard EXE option is highlighted, by
which a new IDE or form will be opened. The name of this IDE
is: - “Project 1 – Microsoft Visual Basic [design]” (pic 2)
PIC 1 – NEW PROJECT TAB IN VB
A standard exe project contains the following components: -
TOOL BOX.
PROJECT 1 – (FORM 1).
FORM 1 – DESIGNING ENVIRONMENT
TITLE BAR.
MENU BAR.
TOOL BAR.
PROPERTIES WINDOW.
PROJECT WINDOW.
FORM LAYOUT WINDOW.
TITLE BAR
TOOL BOX
FORM LAYOUT WINDOW
PROPERTIES
WINDOW
MENU BAR
TOOL
BAR
VB INTEGRATEDDEVELOPMENT ENVIRONMENT
PROJECT 1
(FORM 1)
FORM 1
DESIGNING
ENVIRONMENT
PROJECT WINDOW: -
The window titled as “PROJECT – PROJECT1” is called the Project Explorer in
Visual Basic. It contains the the several project files.
Contd…
The Project Window contains 3 tabs: -
VIEW CODE :- OPEN THE CODE EDITOR.
VIEW OBJECT :- OPEN THE FORMS.
TOGGLE FOLDERS :- OPEN THE FORM MODULE.
TOGGLE FOLDERS
VIEW OBJECT
VIEW CODE
PROJECT NAME
FORM FOLDER FORM MODULE
TOOLBOX: - The set of controls available in the toolbox can be customized for
each project. Controls are prepackaged components for every project, which can
be reused instead of writing the designing scripts.
TOOL BOX COMPONENTS
Pointer: - It is not a control. Pointer is used to interact with the
various controls in the toolbox.
Label: - Displays an un editable text to user.
Frame: - A control for grouping other control.
Checkbox: - Provides the user with a toggle choice.
Combo Box: - Provides the short list of items.
Hscrollbar: - Horizontal scrollbar.
Timer: - Performs a task at programmer specified intervals. Timer
is not viewable by the user.
Synopsis of ToolBox: -
Contd…
DirListBox: - Accessing the various directories on a system.
Shape: - For drawing various shapes like rectangle, square, circle
or ellipse.
Image: - Displays images.
OLE: - (Object Linking and Embedding) – Interaction with
other windows application.
Picture Box: - Displays Images.
Text Box: - Accept user input, also show the text.
Command Button: - Represents a button. Click to initiate an
action.
Contd..
Option Button: - It is used for grouping.
List box: - Provides the list of Items.
VScrollbar: - Vertical Scrollbar.
DriveListBox: - Accessing the System Disk Drives.
File List Box: - Accessing a particular file in a directory.
Line: - Draw lines.
Data: - Connect with database. Visual database manager.
FORM LAY OUT WINDOW
In VB, by this option, a user can visually set the form or
Aligning the forms on screen.
PROPERTIES
WINDOW: -
Properties window
displays the various
properties of a form
or a control.
Properties are the
various types of
name, caption, size,
position, font etc..
Some properties are
like width, height,
caption are the same
for the form and
control.
Name of
a control
Or form
Type of
Control or
form
Scrollbar
Selected
Property
Selected
Property
Description
Menu Bar : -
This Menu Bar contains the active window components.
File: - Contains options for open projects, close projects, save projects, print options.
Edit: - undo, redo, cut, copy, paste.
View: - Display IDE window and tool bars.
Project: - Adding various features to form.
Format: - Aligning and locking the form’s control.
Debug: - Testing for checking the errors.
Run: - Execute the whole project and stop the execution also.
Query: - Database manipulation.
Diagram: - Editing and viewing the whole database.
Tools: - IDE tools & options for customizing the environments.
Add-Ins: - Independent Software Vendor (ISV), extends the VB features.
Windows: - Arrange and display windows.
Help: - Help fro MSDN.
Tool Bar: -
Tool Bar is comprised of icons that represent commands. Programmer can choose the
various types of options from the tool bars.
PROJECT
ICONS
MENU EDITOR
FILE
ICONS
EDIT
ICONS
RUN
ICONS
VIEW ICONS
PROJRCT EXPOLRER
(PROJECT WINDOW)
PROPERTIES
WINDOW
FORM
LAYOUT
WINDOW
OBJECT BROWSER
TOOLBOX
DATABASE
WINDOW
VISUAL
COMPONENET
MANAGER