VISUAL BASIC SCREEN ELEMENTS IS 125: COMPUTER
PROGRAMMING II
AND COMMON CONTROLS INSTRUCTOR: GERALD
EMERSON S. CORPIN, MPM
Title Bar
Menu Bar
Toolbar
Toolbox
Windows Form Designer Window
Windows Form Object
Solution Explorer Properties Window
VISUAL BASIC SCREEN ELEMENTS
Title Bar
Menu Bar
Toolbar
Toolbox
Windows Form Object
Solution Explorer
Properties Window
Windows Form Designer Window
TITLE BAR
Contains the name of the program and name of the file
MENU BAR
Contains the commands that provide access to various files, commands (open,
save, undo, redo, create, debug, etc.) and executing the program
MENU BAR COMMANDS
NAME COMMANDS
File New Project, Open Project, Open File, Add, Close, Close Project, Save, Save All, Print, etc.
Edit Undo, Redo, Cut, Copy, Paste, Delete, Select All, etc.
View Code, Designer, Start Page, etc.
Project Add Windows Form, Add Class, Add New Item, Add Existing Item, etc.
Debug Start Debugging, Build WindowsApplication, Step Into, Step Over, etc.
Data Show Data Sources, Preview Data, Add New Data Source
Format Align, Make Same Size, Horizontal Spacing, Vertical Spacing, etc.
Tools Extension Manager, Settings, Customize, etc.
Window Split, Float, Dock, etc.
Help View Help, etc.
TOOLBAR
Provides quick access to frequently used commands represented by icons
It has Move Handle that allows you to move the toolbar anywhere within the
window
TOOLBOX
Shows various controls that you can place in the form
In case of Toolbox not displayed by default:
Go to View > Toolbox
WINDOWS FORM OBJECT
Blank form that shows automatically when starting a Visual Basic Program
SOLUTION EXPLORER
Displays the items contained in each project
In case of Solution Explorer not displayed by default:
Go to View > Solution Explorer
Shows the project information and name
PROPERTIES WINDOW
Displays the properties of the selected form or control
Can also be arranged by CATEGORY or ALPHABETICALLY
In case of Properties not displayed by default:
Right click on the selected control then select Properties
Press F4
Go to View > Properties Window
WINDOWS FORM DESIGNER
Where you create and design your project.
This user interface is what you see and
interact with when using an application
VARIOUS TIMING AND MODES IN
VISUAL BASIC
•DESIGN TIME
•RUN TIME
•BREAK TIME
DESIGN TIME
Refers to time spent in writing and designing the program for the user interface.
Additionally, it is also the time spent in editing / modifying the program
Different aspects related to design time in visual basic
Form Design
Properties Window
Toolbox
Events
Data Binding
Layout and Alignment
Debugging at Design Time
RUN TIME
Time spent when a user runs an application
User interaction with the application, and the code written is executed to perform
various tasks
Different aspects related to runtime in Visual Basic
Code Execution
User Interaction
Form Display
Data Processing
BREAK TIME
Time spent in checking, debugging, when you get an error or paused project execution
COMMON CONTROLS
COMMON CONTROLS IN VB
•Often used to provide user interface elements in
applications.
•These controls have predefined functions and properties that
can be customized to suit the needs of your application.
BUTTON
•Raises an Event when user clicks on it
CHECKBOX
•Enables the user to select or clear the associated option
CHECKEDLISTBOX
•Display a list of items with a checkbox on the left side of
each item
COMBOBOX
•Displays an editable textbox with a drop-down list of
permitted values
DATETIMEPICKER
•Enables the user to select a date and time, and to display
that date and time in a specified format
LABEL
•Provides run-time information or descriptive text for a
control
LINKLABEL
•Displays a label control that supports hyperlink functionality, formatting, and
tracking
LISTBOX
•Display a list from which the user can select items
MONTHCALENDAR
•Displays a monthly calendar from which the user can select a date
NOTIFYICON
•Display an icon in the notification area, on the right of the Window taskbar,
during run time
NUMERICUPDOWN
•Displays a single numeric value that the user can increment and decrement by
clicking up and down buttons on the control
PICTUREBOX
•Displays an image
PROGRESSBAR
•Displays a bar that fills to indicate to the user the progress of the operation
RADIOBUTTON
•Enables the user to select a single option from a group of choices when paired
with other RadioButtons
RICHTEXTBOX
•Provides advanced text entry and editing features such as character and
paragraph formatting
TEXTBOX
•Enables the user to enter text, and provides multi-line editing and password
character masking
TOOLTIP
•Displays information when the user moves the pointer over an associated control
TREEVIEW
•Displays a hierarchical collection of labeled items to the user that optionally
contain an image
WEBBROWSER
•Enables the user to browse Web pages inside the form
TOOLTIP
•Displays information when the user moves the pointer over an associated control
TREEVIEW
•Displays a hierarchical collection of labeled items to the user that optionally
contain an image
WEBBROWSER
•Enables the user to browse Web pages inside the form
ACTIVITY