SlideShare a Scribd company logo
1 of 31
Bharath Kumar B.V. M.sc., B.Ed
B.V.Bharath Kumar, M.Sc., B.Ed
• The Form is where the user interface is drawn. It is
central to the
development of Visual Basic applications.
B.V.Bharath Kumar, M.Sc., B.Ed
• Appearance Selects 3-D or flat
appearance.
• BackColor Sets the form background
color.
• BorderStyle Sets the form border to be
fixed or sizeable.
B.V.Bharath Kumar, M.Sc., B.Ed
• Enabled If True, allows the form to
respond to mouse and keyboard events; if
False, disables form.
• Font Sets font type, style, size.
• ForeColor Sets color of text or graphics.
• Picture Places a bitmap picture in the
form.
• Visible If False, hides the form.
B.V.Bharath Kumar, M.Sc., B.Ed
• Activate Form_Activate event is triggered when form
becomes the active window.
• Click Form_Click event is triggered when
user clicks on form.
• DblClick Form_DblClick event is triggered when user
double-clicks on form.
• Load Form_Load event occurs when form is
loaded.
This is a good place to initialize variables and
set
any run-time properties
B.V.Bharath Kumar, M.Sc., B.Ed
Cls Clears all graphics and text from form.
Does not clear any objects.
Print Prints text string on the form.
Examples
frmExample.Cls ' clears the form
frmExample.Print "This will print on the form"
B.V.Bharath Kumar, M.Sc., B.Ed
• We've seen the command button before. It is probably
the most widely used control. It is used to begin,
interrupt, or end a particular process.
B.V.Bharath Kumar, M.Sc., B.Ed
• Appearance Selects 3-D or flat appearance.
• Cancel Allows selection of button with
Esc key
• Caption String to be displayed on
button.
• Default Allows selection of button with
Enter key
• Font Sets font type, style, size.
B.V.Bharath Kumar, M.Sc., B.Ed
• Click Event triggered when button is selected either by
clicking on it or by pressing the access key.
B.V.Bharath Kumar, M.Sc., B.Ed
• A label box is a control you use to display text that a user
can't edit directly. We've seen, though, in previous
examples, that the text of a label box can be changed at
run-time in response to events.
B.V.Bharath Kumar, M.Sc., B.Ed
• Alignment Aligns caption within border.
• Appearance Selects 3-D or flat appearance.
• AutoSize If True, the label is resized
to fit the text specifedby the caption property. If
False, the label will remain the size defined at
design time and the text may be clipped.
• BorderStyle Determines type of border.
• Caption String to be displayed in box.
• Font Sets font type, style, size.
B.V.Bharath Kumar, M.Sc., B.Ed
• A text box is used to display information entered at
design time, by a user at run-time, or assigned within
code. The displayed text may be edited
B.V.Bharath Kumar, M.Sc., B.Ed
• Appearance Selects 3-D or flat appearance.
• BorderStyle Determines type of border.
• Font Sets font type, style, size.
• MaxLength Limits the length of displayed text
(0 value indicates unlimited length).
• MultiLine Specifies whether text box
displays single line or multiple lines.
B.V.Bharath Kumar, M.Sc., B.Ed
• PasswordChar Hides text with a single
character.
• ScrollBars Specifies type of displayed
scroll bar(s).
• SelLength Length of selected text (run-
time only).
• SelStart Starting position of selected text
(runtime only).
• SelText Selected text (run-time only).
• Tag Stores a string expression.
• Text Displayed text.B.V.Bharath Kumar, M.Sc., B.Ed
• Change Triggered every time the Text property
changes.
• LostFocus Triggered when the user leaves
the text box. This is a good place to examine
the contents of a text box after editing.
• KeyPress Triggered whenever a key is
pressed. Used for key trapping, as seen
in last class.
B.V.Bharath Kumar, M.Sc., B.Ed
• Check boxes provide a way to make choices from a list
of potential candidates. Some, all, or none of the choices
in a group may be selected.
B.V.Bharath Kumar, M.Sc., B.Ed
Check Box Properties:
• Caption Identifying text next to box.
• Font Sets font type, style, size.
• Value Indicates if unchecked (0, vbUnchecked),
checked (1, vbChecked), or
grayed out (2, vbGrayed).
Check Box Events:
• Click Triggered when a box is clicked. Value
property is
automatically changed by Visual Basic.
B.V.Bharath Kumar, M.Sc., B.Ed
• Option buttons provide the capability to make a
mutually exclusive choice among a group of potential
candidate choices. Hence, option buttons work as a
group, only one of which can have a True (or
selected) value.
B.V.Bharath Kumar, M.Sc., B.Ed
Option Button Properties:
Caption Identifying text next to button.
Font Sets font type, style, size.
Value Indicates if selected (True) or not
(False). Only one option
button in a group can be
True. One button in each group
of option buttons should
always be initialized to
True at design time.
B.V.Bharath Kumar, M.Sc., B.Ed
• Frame is a container control as the Frame control is used
as a container of other controls. The controls that are on
the frame or contained in the frame are said to be the
child controls. Use the Caption property to set the frame's
title.
One of the most useful features of the Frame control is
that when you move the frame, all the child controls also
go with it. If you make the frame disabled or invisible, all
the child controls also become disabled or invisible.
B.V.Bharath Kumar, M.Sc., B.Ed
B.V.Bharath Kumar, M.Sc., B.Ed
Similar to arrays of variables, you can group a set of controls together as
an array.
The following facts apply to control arrays:
• The set of controls that form a control array must be all of the same
type (all textboxes, all labels, all option buttons, etc.)
• You set up a control array by naming one or more controls of the same
type the same name and set the Index property of each control in the
array to a non-negative value (i.e., the controls in the control array are
usually indexed from 0 to one less than the number of controls in the
array).
• The properties of the controls in the control array can vary: i.e., some
members can be visible or not, they can be sized differently, they can
have different fonts or colors, etc.
To refer to a member of a control array, the syntax is:
B.V.Bharath Kumar, M.Sc., B.Ed
ControlName(Index)[.Property]
• A list box displays a list of items from which the user can
select one or more items. If the number of items exceeds
the number that can be displayed, a scroll bar is
automatically added.
B.V.Bharath Kumar, M.Sc., B.Ed
Appearance Selects 3-D or flat appearance.
List Array of items in list box.
ListCount Number of items in list.
ListIndex The number of the most recently selected
item in
list. If no item is selected, ListIndex = -1.
Selected Array with elements set equal to True or
False,
depending on whether corresponding list item
is
selected.
B.V.Bharath Kumar, M.Sc., B.Ed
MultiSelect Controls how items may be
selected (0 -no multiple selection
allowed, 1-multiple selection
allowed, 2 - group selection allowed).
Sorted True means items are sorted in 'Ascii'
order, else items appear in order
added.
Text Text of most recently selected item.
B.V.Bharath Kumar, M.Sc., B.Ed
The combo box is similar to the list box. The differences are
a combo box includes a text box on top of a list box and
only allows selection of one item . In some cases, the user
can type in an alternate response
B.V.Bharath Kumar, M.Sc., B.Ed
Appearance Selects 3-D or flat appearance.
List Array of items in list box portion.
ListCount Number of items in list.
ListIndex The number of the most recently selected item in
list. If no item is selected, ListIndex = -1.
Sorted True means items are sorted in 'Ascii' order,
else
items appear in order added.
Style Selects the combo box form. Style = 0, Dropdown
combo; user can change selection. Style = 1, Simple
combo; user can change selection. Style = 2,
Dropdown combo; user cannot change
selection.
Text Text of most recently selected item.B.V.Bharath Kumar, M.Sc., B.Ed
B.V.Bharath Kumar, M.Sc., B.Ed
LargeChange Increment added to or subtracted from the scroll
bar
Value property when the bar area is clicked.
Max The value of the horizontal scroll bar at the far right
and the value of the vertical scroll bar at the bottom.
Can range from -32,768 to 32,767.
Min The other extreme value - the horizontal scroll bar at
the left and the vertical scroll bar at the top. Can
range from -32,768 to 32,767.
SmallChange The increment added to or subtracted from the
scroll
Bar Value property when either of the scroll arrows
is
clicked.
Value The current position of the scroll box (thumb) within
the scroll bar. If you set this in code, Visual Basic
moves the scroll box to the proper position
B.V.Bharath Kumar, M.Sc., B.Ed
B.V.Bharath Kumar, M.Sc., B.Ed
B.V.Bharath Kumar, M.Sc., B.Ed

More Related Content

What's hot

What's hot (20)

Event Handling in Java
Event Handling in JavaEvent Handling in Java
Event Handling in Java
 
Active x control
Active x controlActive x control
Active x control
 
VISUAL BASIC 6 - CONTROLS AND DECLARATIONS
VISUAL BASIC 6 - CONTROLS AND DECLARATIONSVISUAL BASIC 6 - CONTROLS AND DECLARATIONS
VISUAL BASIC 6 - CONTROLS AND DECLARATIONS
 
Visual Basic menu
Visual Basic menuVisual Basic menu
Visual Basic menu
 
Java: GUI
Java: GUIJava: GUI
Java: GUI
 
ADO CONTROLS - Database usage
ADO CONTROLS - Database usageADO CONTROLS - Database usage
ADO CONTROLS - Database usage
 
Validation Controls in asp.net
Validation Controls in asp.netValidation Controls in asp.net
Validation Controls in asp.net
 
Html forms
Html formsHtml forms
Html forms
 
Vb6.0 Introduction
Vb6.0 IntroductionVb6.0 Introduction
Vb6.0 Introduction
 
GRID VIEW PPT
GRID VIEW PPTGRID VIEW PPT
GRID VIEW PPT
 
Dialog box in vb6
Dialog box in vb6Dialog box in vb6
Dialog box in vb6
 
HTML Forms
HTML FormsHTML Forms
HTML Forms
 
VB Function and procedure
VB Function and procedureVB Function and procedure
VB Function and procedure
 
Css selectors
Css selectorsCss selectors
Css selectors
 
Server Controls of ASP.Net
Server Controls of ASP.NetServer Controls of ASP.Net
Server Controls of ASP.Net
 
VB.Net-Controls and events
VB.Net-Controls and eventsVB.Net-Controls and events
VB.Net-Controls and events
 
Java Script ppt
Java Script pptJava Script ppt
Java Script ppt
 
Visual Basic 6.0
Visual Basic 6.0Visual Basic 6.0
Visual Basic 6.0
 
Javascript alert and confrim box
Javascript alert and confrim boxJavascript alert and confrim box
Javascript alert and confrim box
 
Html images syntax
Html images syntaxHtml images syntax
Html images syntax
 

Viewers also liked

Visual basic 6
Visual basic 6Visual basic 6
Visual basic 6Spy Seat
 
Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)pbarasia
 
Introduction to Project Development using Visual Basic
Introduction to Project Development using Visual BasicIntroduction to Project Development using Visual Basic
Introduction to Project Development using Visual BasicMuralidharan Radhakrishnan
 
Introduction to automated visual testing
Introduction to automated visual testingIntroduction to automated visual testing
Introduction to automated visual testingadamcarmi
 
Transforming Power Point Show with VBA
Transforming Power Point Show with VBATransforming Power Point Show with VBA
Transforming Power Point Show with VBADCPS
 
ADO Controls - Database Usage from Exploring MS Visual Basic 6.0 Book
ADO Controls - Database Usage from Exploring MS Visual Basic 6.0 BookADO Controls - Database Usage from Exploring MS Visual Basic 6.0 Book
ADO Controls - Database Usage from Exploring MS Visual Basic 6.0 BookMuralidharan Radhakrishnan
 
Real World Experience With Oracle Xml Database 11g An Oracle Ace’s Perspectiv...
Real World Experience With Oracle Xml Database 11g An Oracle Ace’s Perspectiv...Real World Experience With Oracle Xml Database 11g An Oracle Ace’s Perspectiv...
Real World Experience With Oracle Xml Database 11g An Oracle Ace’s Perspectiv...Marco Gralike
 
Visual Basic IDE Introduction
Visual Basic IDE IntroductionVisual Basic IDE Introduction
Visual Basic IDE IntroductionAhllen Javier
 
Chapter 4 — Variables and Arithmetic Operations
Chapter 4 — Variables and Arithmetic OperationsChapter 4 — Variables and Arithmetic Operations
Chapter 4 — Variables and Arithmetic Operationsfrancopw
 
Data base connectivity and flex grid in vb
Data base connectivity and flex grid in vbData base connectivity and flex grid in vb
Data base connectivity and flex grid in vbAmandeep Kaur
 
Creating a quiz using visual basic 6
Creating a quiz using visual basic 6Creating a quiz using visual basic 6
Creating a quiz using visual basic 6Ella Marie Wico
 
Vb decision making statements
Vb decision making statementsVb decision making statements
Vb decision making statementspragya ratan
 

Viewers also liked (20)

Visual basic 6
Visual basic 6Visual basic 6
Visual basic 6
 
Vb 6ch123
Vb 6ch123Vb 6ch123
Vb 6ch123
 
Visusual basic
Visusual basicVisusual basic
Visusual basic
 
Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)Presentation on visual basic 6 (vb6)
Presentation on visual basic 6 (vb6)
 
Introduction to Project Development using Visual Basic
Introduction to Project Development using Visual BasicIntroduction to Project Development using Visual Basic
Introduction to Project Development using Visual Basic
 
Introduction to automated visual testing
Introduction to automated visual testingIntroduction to automated visual testing
Introduction to automated visual testing
 
Richtextbox
RichtextboxRichtextbox
Richtextbox
 
Transforming Power Point Show with VBA
Transforming Power Point Show with VBATransforming Power Point Show with VBA
Transforming Power Point Show with VBA
 
Ms visual-basic-6
Ms visual-basic-6Ms visual-basic-6
Ms visual-basic-6
 
ADO Controls - Database Usage from Exploring MS Visual Basic 6.0 Book
ADO Controls - Database Usage from Exploring MS Visual Basic 6.0 BookADO Controls - Database Usage from Exploring MS Visual Basic 6.0 Book
ADO Controls - Database Usage from Exploring MS Visual Basic 6.0 Book
 
Real World Experience With Oracle Xml Database 11g An Oracle Ace’s Perspectiv...
Real World Experience With Oracle Xml Database 11g An Oracle Ace’s Perspectiv...Real World Experience With Oracle Xml Database 11g An Oracle Ace’s Perspectiv...
Real World Experience With Oracle Xml Database 11g An Oracle Ace’s Perspectiv...
 
Vb unit t 1.1
Vb unit t 1.1Vb unit t 1.1
Vb unit t 1.1
 
Visual Basic IDE Introduction
Visual Basic IDE IntroductionVisual Basic IDE Introduction
Visual Basic IDE Introduction
 
Chapter 4 — Variables and Arithmetic Operations
Chapter 4 — Variables and Arithmetic OperationsChapter 4 — Variables and Arithmetic Operations
Chapter 4 — Variables and Arithmetic Operations
 
Data base connectivity and flex grid in vb
Data base connectivity and flex grid in vbData base connectivity and flex grid in vb
Data base connectivity and flex grid in vb
 
Creating a quiz using visual basic 6
Creating a quiz using visual basic 6Creating a quiz using visual basic 6
Creating a quiz using visual basic 6
 
Vb file
Vb fileVb file
Vb file
 
The Best Source Code VB
The Best Source Code VBThe Best Source Code VB
The Best Source Code VB
 
Vb decision making statements
Vb decision making statementsVb decision making statements
Vb decision making statements
 
Meaning Of VB
Meaning Of VBMeaning Of VB
Meaning Of VB
 

Similar to Vb 6.0 controls (20)

Unit2
Unit2Unit2
Unit2
 
Maliram poonia project
Maliram poonia projectMaliram poonia project
Maliram poonia project
 
Tugas testing
Tugas testingTugas testing
Tugas testing
 
Getting started with the visual basic editor
Getting started with the visual basic editorGetting started with the visual basic editor
Getting started with the visual basic editor
 
Web 2 | CSS - Cascading Style Sheets
Web 2 | CSS - Cascading Style SheetsWeb 2 | CSS - Cascading Style Sheets
Web 2 | CSS - Cascading Style Sheets
 
Combo box and List box in VB.Net.ppt
Combo box and List box in VB.Net.pptCombo box and List box in VB.Net.ppt
Combo box and List box in VB.Net.ppt
 
Chapter 02
Chapter 02Chapter 02
Chapter 02
 
Vp lecture 2 ararat
Vp lecture 2 araratVp lecture 2 ararat
Vp lecture 2 ararat
 
Vb6 ch.7-3 cci
Vb6 ch.7-3 cciVb6 ch.7-3 cci
Vb6 ch.7-3 cci
 
MS Word's main menu
MS Word's main menuMS Word's main menu
MS Word's main menu
 
Explore Annotation & Tagging With Its Differences
Explore Annotation & Tagging With Its DifferencesExplore Annotation & Tagging With Its Differences
Explore Annotation & Tagging With Its Differences
 
MS word.pptx
MS word.pptxMS word.pptx
MS word.pptx
 
Ms powerpoint 2007 presentation by sarmad baloch
Ms powerpoint 2007 presentation by sarmad balochMs powerpoint 2007 presentation by sarmad baloch
Ms powerpoint 2007 presentation by sarmad baloch
 
Android interface elements and controls-chapter8
Android interface elements and controls-chapter8Android interface elements and controls-chapter8
Android interface elements and controls-chapter8
 
Forms Part 1
Forms Part 1Forms Part 1
Forms Part 1
 
Visual basic
Visual basicVisual basic
Visual basic
 
Visual Basic.pptx
Visual Basic.pptxVisual Basic.pptx
Visual Basic.pptx
 
Html Form Controls
Html Form ControlsHtml Form Controls
Html Form Controls
 
Basic controls in asp
Basic controls in aspBasic controls in asp
Basic controls in asp
 
Web forms and html (lect 4)
Web forms and html (lect 4)Web forms and html (lect 4)
Web forms and html (lect 4)
 

Recently uploaded

Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Quarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayQuarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayMakMakNepo
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........LeaCamillePacle
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 

Recently uploaded (20)

OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"Rapple "Scholarly Communications and the Sustainable Development Goals"
Rapple "Scholarly Communications and the Sustainable Development Goals"
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Quarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayQuarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up Friday
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 

Vb 6.0 controls

  • 1. Bharath Kumar B.V. M.sc., B.Ed B.V.Bharath Kumar, M.Sc., B.Ed
  • 2. • The Form is where the user interface is drawn. It is central to the development of Visual Basic applications. B.V.Bharath Kumar, M.Sc., B.Ed
  • 3. • Appearance Selects 3-D or flat appearance. • BackColor Sets the form background color. • BorderStyle Sets the form border to be fixed or sizeable. B.V.Bharath Kumar, M.Sc., B.Ed
  • 4. • Enabled If True, allows the form to respond to mouse and keyboard events; if False, disables form. • Font Sets font type, style, size. • ForeColor Sets color of text or graphics. • Picture Places a bitmap picture in the form. • Visible If False, hides the form. B.V.Bharath Kumar, M.Sc., B.Ed
  • 5. • Activate Form_Activate event is triggered when form becomes the active window. • Click Form_Click event is triggered when user clicks on form. • DblClick Form_DblClick event is triggered when user double-clicks on form. • Load Form_Load event occurs when form is loaded. This is a good place to initialize variables and set any run-time properties B.V.Bharath Kumar, M.Sc., B.Ed
  • 6. Cls Clears all graphics and text from form. Does not clear any objects. Print Prints text string on the form. Examples frmExample.Cls ' clears the form frmExample.Print "This will print on the form" B.V.Bharath Kumar, M.Sc., B.Ed
  • 7. • We've seen the command button before. It is probably the most widely used control. It is used to begin, interrupt, or end a particular process. B.V.Bharath Kumar, M.Sc., B.Ed
  • 8. • Appearance Selects 3-D or flat appearance. • Cancel Allows selection of button with Esc key • Caption String to be displayed on button. • Default Allows selection of button with Enter key • Font Sets font type, style, size. B.V.Bharath Kumar, M.Sc., B.Ed
  • 9. • Click Event triggered when button is selected either by clicking on it or by pressing the access key. B.V.Bharath Kumar, M.Sc., B.Ed
  • 10. • A label box is a control you use to display text that a user can't edit directly. We've seen, though, in previous examples, that the text of a label box can be changed at run-time in response to events. B.V.Bharath Kumar, M.Sc., B.Ed
  • 11. • Alignment Aligns caption within border. • Appearance Selects 3-D or flat appearance. • AutoSize If True, the label is resized to fit the text specifedby the caption property. If False, the label will remain the size defined at design time and the text may be clipped. • BorderStyle Determines type of border. • Caption String to be displayed in box. • Font Sets font type, style, size. B.V.Bharath Kumar, M.Sc., B.Ed
  • 12. • A text box is used to display information entered at design time, by a user at run-time, or assigned within code. The displayed text may be edited B.V.Bharath Kumar, M.Sc., B.Ed
  • 13. • Appearance Selects 3-D or flat appearance. • BorderStyle Determines type of border. • Font Sets font type, style, size. • MaxLength Limits the length of displayed text (0 value indicates unlimited length). • MultiLine Specifies whether text box displays single line or multiple lines. B.V.Bharath Kumar, M.Sc., B.Ed
  • 14. • PasswordChar Hides text with a single character. • ScrollBars Specifies type of displayed scroll bar(s). • SelLength Length of selected text (run- time only). • SelStart Starting position of selected text (runtime only). • SelText Selected text (run-time only). • Tag Stores a string expression. • Text Displayed text.B.V.Bharath Kumar, M.Sc., B.Ed
  • 15. • Change Triggered every time the Text property changes. • LostFocus Triggered when the user leaves the text box. This is a good place to examine the contents of a text box after editing. • KeyPress Triggered whenever a key is pressed. Used for key trapping, as seen in last class. B.V.Bharath Kumar, M.Sc., B.Ed
  • 16. • Check boxes provide a way to make choices from a list of potential candidates. Some, all, or none of the choices in a group may be selected. B.V.Bharath Kumar, M.Sc., B.Ed
  • 17. Check Box Properties: • Caption Identifying text next to box. • Font Sets font type, style, size. • Value Indicates if unchecked (0, vbUnchecked), checked (1, vbChecked), or grayed out (2, vbGrayed). Check Box Events: • Click Triggered when a box is clicked. Value property is automatically changed by Visual Basic. B.V.Bharath Kumar, M.Sc., B.Ed
  • 18. • Option buttons provide the capability to make a mutually exclusive choice among a group of potential candidate choices. Hence, option buttons work as a group, only one of which can have a True (or selected) value. B.V.Bharath Kumar, M.Sc., B.Ed
  • 19. Option Button Properties: Caption Identifying text next to button. Font Sets font type, style, size. Value Indicates if selected (True) or not (False). Only one option button in a group can be True. One button in each group of option buttons should always be initialized to True at design time. B.V.Bharath Kumar, M.Sc., B.Ed
  • 20. • Frame is a container control as the Frame control is used as a container of other controls. The controls that are on the frame or contained in the frame are said to be the child controls. Use the Caption property to set the frame's title. One of the most useful features of the Frame control is that when you move the frame, all the child controls also go with it. If you make the frame disabled or invisible, all the child controls also become disabled or invisible. B.V.Bharath Kumar, M.Sc., B.Ed
  • 22. Similar to arrays of variables, you can group a set of controls together as an array. The following facts apply to control arrays: • The set of controls that form a control array must be all of the same type (all textboxes, all labels, all option buttons, etc.) • You set up a control array by naming one or more controls of the same type the same name and set the Index property of each control in the array to a non-negative value (i.e., the controls in the control array are usually indexed from 0 to one less than the number of controls in the array). • The properties of the controls in the control array can vary: i.e., some members can be visible or not, they can be sized differently, they can have different fonts or colors, etc. To refer to a member of a control array, the syntax is: B.V.Bharath Kumar, M.Sc., B.Ed ControlName(Index)[.Property]
  • 23. • A list box displays a list of items from which the user can select one or more items. If the number of items exceeds the number that can be displayed, a scroll bar is automatically added. B.V.Bharath Kumar, M.Sc., B.Ed
  • 24. Appearance Selects 3-D or flat appearance. List Array of items in list box. ListCount Number of items in list. ListIndex The number of the most recently selected item in list. If no item is selected, ListIndex = -1. Selected Array with elements set equal to True or False, depending on whether corresponding list item is selected. B.V.Bharath Kumar, M.Sc., B.Ed
  • 25. MultiSelect Controls how items may be selected (0 -no multiple selection allowed, 1-multiple selection allowed, 2 - group selection allowed). Sorted True means items are sorted in 'Ascii' order, else items appear in order added. Text Text of most recently selected item. B.V.Bharath Kumar, M.Sc., B.Ed
  • 26. The combo box is similar to the list box. The differences are a combo box includes a text box on top of a list box and only allows selection of one item . In some cases, the user can type in an alternate response B.V.Bharath Kumar, M.Sc., B.Ed
  • 27. Appearance Selects 3-D or flat appearance. List Array of items in list box portion. ListCount Number of items in list. ListIndex The number of the most recently selected item in list. If no item is selected, ListIndex = -1. Sorted True means items are sorted in 'Ascii' order, else items appear in order added. Style Selects the combo box form. Style = 0, Dropdown combo; user can change selection. Style = 1, Simple combo; user can change selection. Style = 2, Dropdown combo; user cannot change selection. Text Text of most recently selected item.B.V.Bharath Kumar, M.Sc., B.Ed
  • 29. LargeChange Increment added to or subtracted from the scroll bar Value property when the bar area is clicked. Max The value of the horizontal scroll bar at the far right and the value of the vertical scroll bar at the bottom. Can range from -32,768 to 32,767. Min The other extreme value - the horizontal scroll bar at the left and the vertical scroll bar at the top. Can range from -32,768 to 32,767. SmallChange The increment added to or subtracted from the scroll Bar Value property when either of the scroll arrows is clicked. Value The current position of the scroll box (thumb) within the scroll bar. If you set this in code, Visual Basic moves the scroll box to the proper position B.V.Bharath Kumar, M.Sc., B.Ed