SlideShare a Scribd company logo
3
Most read
4
Most read
14
Most read
VISUAL BASIC CONTROLS
Submitted by:
RANJUMA SHUBHANGI
S.MAMTA
RUCHI YADAV
Submitted to:
PROF. VANI AGARWAL
PRESENTATION OUTLINES
 INTRINSIC
CONTROLS
 ACTIVEX CONTROLS
 COMMON DIALOG
CONTROLS
INTRINSIC CONTROL
The visual toolbox contains the tool we use to draw controls on your
frames. intrinsic controls are one of them. It contain command button
and frame controls.
It include in the .exe file.
Basic Controls are :
• checkbox- displays a true/false or yes/no option. You can check
any number of checkboxes on a form at one time.
• Combo box- a textbox with a list box , allows user to type in a
selection or select an item from a drop-down list.
• Command button- carries out a command or action when user
chooses it.
Enables you to connect to an existing databases and display
information from it on your forms.
• Label- displays text a user cannot interact with or modify.
• Listbox -displays a list of items that user can choose from .
 Option button – the option button control , as part of an
option group with other option buttons, displays multiple
choices from which a user can choose only one.
 Picture box- displays bitmap , icons or window metafiles,
JPEG or GIF files. It also displays text or cats as a visual
contains for other controls.
 Textbox- provides an area to enter or display text.
 Timer – Executes time events at specified time intervals.
 OLE container – Enables data into a visual basic
application.
 Image – displays bitmaps , icons or window metafiles
,JPEG or GIF files, acts like a command button when
clicked.
 Scrollbar – allow user to add scroll bars to control that do
not automatically provide them.
 Frame – provides a visual and functional container for
controls .
 The most useful intrinsic controls
these are nine intrinsic controls are pretty
much used on every VB application .start
your learning with these and then branch
out .
command button, image , checkbox,
picture box , text box, list box ,label , combo
box , option button.
STANDARD ACTIVEX CONTROLS
The Learning edition of Visual Basic contains a
number of ActiveX controls (referred to as
standard ActiveX controls) that allow you to add
advanced features to your applications. ActiveX
controls have the file name extension .ocx and
can be used in your project by manually adding
them to the toolbox.
The following table summarizes the standard
ActiveX controls available in the Learning edition
of Visual Basic.
Icon Control
name
Class name Description
ADO Data
Control
ADODC
Creates a connection to a database
using ADO. Assignable to the
DataSource property of other
controls such as the DataGrid.
Common
dialog
CommonDialog
Provides a standard set of dialog
boxes for operations such as
opening and saving files, setting
print options, and selecting colors
and fonts.
DataCombo DataCombo
Provides most of the features of
the standard combo box control,
plus increased data access
capabilities.
DataGrid DataGrid
A grid control that allows can be
data-bound to a data source such
as the ADO Data Control. Reading
and editing the recordset is
possible.
DataList DataList Provides most of the features of
the standard list box control, plus
increased data access capabilities.
Microsoft
Hierarchical
FlexGrid
MSHFlexGrid A read-only grid control that can be
bound the Data Environment
designer to show hierarchical
recordsets.
OTHER CONTROLS
Other ActiveX controls included with all
versions of Visual Basic are documented
in the Component Tools Guide, and
include the following: ImageCombo,
ImageList, ListView, ProgressBar, Slider,
Statusbar, TabStrip, Toolbar, and
TreeView.
ADDING AND REMOVING ACTIVEX CONTROLS
You move ActiveX controls to and from the
toolbox using the following procedures.
To add an ActiveX control to the toolbox
 From the Project menu, choose Components.
 Select the check box next to the name of the
.ocx control, and then choose OK. Once a
control is placed in the toolbox, you can add it to
a form just as you would an intrinsic control.
To remove an ActiveX control
 Remove all instances of the control from the forms
in your project. Delete any references to the
control in the project's code. If references to a
deleted control are left in your code, an error
message will display when you compile the
application.
 From the Project menu, choose Components.
 Clear the check box next to the name of the .ocx
control, and then choose OK. An error message
will display if there are remaining instances of the
control in your project.
COMMON DIALOG CONTROL:
 VB provides user facility of using in-built dialog boxes in
application. Hence user is saved from the job of design
his own dialog boxes. He has just to use common dialog
control on form and call appropriate methods. Common
dialog control is a special control. It provides its services
to application but it need not to be displayed at form at
run time.
 Common dialog control is a component that allows us to
access inbuilt libraries.
 Common dialog control provides an interface between
visual basic and the procedures in the Microsoft windows.
TO USE THE COMMON DIALOG CONTROL:
 Add the common dialog control to the toolbox by
selecting components from the project menu.
Locate and select the control in the controls
tabbed dialog, then click the OK button.
 On the toolbox, click the common Dialog control
and draw it on a form. When you draw a
common dialog control on a form, it
automatically resize itself. Like the timer control,
this dialog is invisible at run time.
The common dialog control allows you to display these
commonly used dialog boxes:
 Open
 Save As
 Color
 Font
 Print
 Help
 File open and file save common dialog
control: File common dialog doesn’t display all files in any given
folder normally. File display are limited to those recognized by
application. Filter property determines the file to be displayed in File
Open or File Save dialog box. DefaultExt property is used to specify
the type of file to be displayed.
 Color Common Dialog Control: It has single
property color which returns color selected by user or sets initially
selected color when dialog box opened.
 Font common dialog box: It lets user select and
view font, font size and style. Following attributes are set- Color, Font
Bold, Font Italic, FontStrikethru, Font Underline, Font Name, Font
Size.
 Print Common Dialog Box: It enables user to select printer, set
 Help common Dialog Control: Before
using help common dialog box , user must have help files.
These files either can be prepared by user or in-built.
 To display common dialog box through code, its action
property must be set.
Method Action
ShowOpen Displays open dialog box
ShowSave Displays Save as dialog box
ShowColor Displays Color dialog box
ShowFont Displays Font dialog box
ShowPrinter Displays Printer Dialog box
ShowHelp Invokes Windows help engine
Visual Basic Controls ppt

More Related Content

PPT
VB.net
PPTX
MS EXCEL PPT PRESENTATION
PPTX
introduction to visual basic PPT.pptx
PDF
IGCSE ICT (0417/0983) - Spreadsheets - Ajiro Tech
PPTX
Introduction to cyber security
PPT
Proxy Servers
PPTX
computer network OSI layer
VB.net
MS EXCEL PPT PRESENTATION
introduction to visual basic PPT.pptx
IGCSE ICT (0417/0983) - Spreadsheets - Ajiro Tech
Introduction to cyber security
Proxy Servers
computer network OSI layer

What's hot (20)

PPT
Visual Basic menu
PPT
RichControl in Asp.net
PDF
Visual Basic 6.0
PPTX
toolbox and its properties in the visual basic
PPTX
Sdi & mdi
PPTX
Windowforms controls c#
PPS
Procedures functions structures in VB.Net
PPTX
Basic controls of Visual Basic 6.0
PPTX
Visual basic
PPTX
Variable and constants in Vb.NET
PPTX
VB.NET:An introduction to Namespaces in .NET framework
PPT
Introduction to visual basic programming
PPTX
Event Handling in java
PPTX
Java exception handling
ODP
Android App Development - 05 Action bar
PPTX
Vb.net ide
PPTX
Event handling
PDF
VB.Net-Controls and events
PPT
Java awt
PDF
Visual Basic IDE Introduction
Visual Basic menu
RichControl in Asp.net
Visual Basic 6.0
toolbox and its properties in the visual basic
Sdi & mdi
Windowforms controls c#
Procedures functions structures in VB.Net
Basic controls of Visual Basic 6.0
Visual basic
Variable and constants in Vb.NET
VB.NET:An introduction to Namespaces in .NET framework
Introduction to visual basic programming
Event Handling in java
Java exception handling
Android App Development - 05 Action bar
Vb.net ide
Event handling
VB.Net-Controls and events
Java awt
Visual Basic IDE Introduction
Ad

Similar to Visual Basic Controls ppt (20)

PPT
Vb basic
PPT
visual basic for the beginner
PPT
Vb basics
DOCX
Visual basic concepts
PPTX
control structure in visual basic
PPTX
Visual Basic.pptx
PPTX
Visual basic
PPTX
UNIT - 1 VISUAL BASIC PRESENTATION FOR IT
PDF
Visual Basic IDE Intro.pdf
DOC
Getting started with test complete 7
PDF
VB PPT by ADI PART4.pdf
PDF
VB PPT by ADI PART4.pdf
PDF
Original material, visual studio
PDF
Autocad lt 2010__tips_and_tricks
PDF
Mr20 enus 02-Report Design in Management Reporter 2.0 for Microsoft Dynamics®...
PPTX
Visual studio ide componects dot net framwork
PDF
Introduction To Computer Programming And Numerical Methods 1st Edition Xundon...
PPT
dreaweaveradobecsstutorialsandhtmllesson.ppt
PDF
Unit IV-Checkboxes and Radio Buttons in VB.Net in VB.NET
PDF
Interactive material
Vb basic
visual basic for the beginner
Vb basics
Visual basic concepts
control structure in visual basic
Visual Basic.pptx
Visual basic
UNIT - 1 VISUAL BASIC PRESENTATION FOR IT
Visual Basic IDE Intro.pdf
Getting started with test complete 7
VB PPT by ADI PART4.pdf
VB PPT by ADI PART4.pdf
Original material, visual studio
Autocad lt 2010__tips_and_tricks
Mr20 enus 02-Report Design in Management Reporter 2.0 for Microsoft Dynamics®...
Visual studio ide componects dot net framwork
Introduction To Computer Programming And Numerical Methods 1st Edition Xundon...
dreaweaveradobecsstutorialsandhtmllesson.ppt
Unit IV-Checkboxes and Radio Buttons in VB.Net in VB.NET
Interactive material
Ad

Recently uploaded (20)

PDF
A Systems Thinking Approach to Algorithmic Fairness.pdf
PPTX
Measurement of Afordability for Water Supply and Sanitation in Bangladesh .pptx
PPT
Chapter 2 METAL FORMINGhhhhhhhjjjjmmmmmmmmm
PPTX
Presentation1.pptxvhhh. H ycycyyccycycvvv
PPTX
Trading Procedures (1).pptxcffcdddxxddsss
PPTX
Azure Data management Engineer project.pptx
PPTX
Business Acumen Training GuidePresentation.pptx
PPTX
Moving the Public Sector (Government) to a Digital Adoption
PPTX
Bharatiya Antariksh Hackathon 2025 Idea Submission PPT.pptx
PPTX
Data-Driven-Credit-Card-Launch-A-Wells-Fargo-Case-Study.pptx
DOCX
Estimating GW Storage Variability Using GRACE derived data_Paper.docx
PDF
Mastering Query Optimization Techniques for Modern Data Engineers
PDF
Company Profile 2023 PT. ZEKON INDONESIA.pdf
PDF
Foundation of Data Science unit number two notes
PDF
Master Databricks SQL with AccentFuture – The Future of Data Warehousing
PDF
CB-Insights_Artificial-Intelligence-Report-Q2-2025.pdf
PPTX
batch data Retailer Data management Project.pptx
PPTX
Major-Components-ofNKJNNKNKNKNKronment.pptx
PPTX
1intro to AI.pptx AI components & composition
PPTX
Machine Learning Solution for Power Grid Cybersecurity with GraphWavelets
A Systems Thinking Approach to Algorithmic Fairness.pdf
Measurement of Afordability for Water Supply and Sanitation in Bangladesh .pptx
Chapter 2 METAL FORMINGhhhhhhhjjjjmmmmmmmmm
Presentation1.pptxvhhh. H ycycyyccycycvvv
Trading Procedures (1).pptxcffcdddxxddsss
Azure Data management Engineer project.pptx
Business Acumen Training GuidePresentation.pptx
Moving the Public Sector (Government) to a Digital Adoption
Bharatiya Antariksh Hackathon 2025 Idea Submission PPT.pptx
Data-Driven-Credit-Card-Launch-A-Wells-Fargo-Case-Study.pptx
Estimating GW Storage Variability Using GRACE derived data_Paper.docx
Mastering Query Optimization Techniques for Modern Data Engineers
Company Profile 2023 PT. ZEKON INDONESIA.pdf
Foundation of Data Science unit number two notes
Master Databricks SQL with AccentFuture – The Future of Data Warehousing
CB-Insights_Artificial-Intelligence-Report-Q2-2025.pdf
batch data Retailer Data management Project.pptx
Major-Components-ofNKJNNKNKNKNKronment.pptx
1intro to AI.pptx AI components & composition
Machine Learning Solution for Power Grid Cybersecurity with GraphWavelets

Visual Basic Controls ppt

  • 1. VISUAL BASIC CONTROLS Submitted by: RANJUMA SHUBHANGI S.MAMTA RUCHI YADAV Submitted to: PROF. VANI AGARWAL
  • 2. PRESENTATION OUTLINES  INTRINSIC CONTROLS  ACTIVEX CONTROLS  COMMON DIALOG CONTROLS
  • 3. INTRINSIC CONTROL The visual toolbox contains the tool we use to draw controls on your frames. intrinsic controls are one of them. It contain command button and frame controls. It include in the .exe file. Basic Controls are : • checkbox- displays a true/false or yes/no option. You can check any number of checkboxes on a form at one time. • Combo box- a textbox with a list box , allows user to type in a selection or select an item from a drop-down list. • Command button- carries out a command or action when user chooses it. Enables you to connect to an existing databases and display information from it on your forms. • Label- displays text a user cannot interact with or modify. • Listbox -displays a list of items that user can choose from .
  • 4.  Option button – the option button control , as part of an option group with other option buttons, displays multiple choices from which a user can choose only one.  Picture box- displays bitmap , icons or window metafiles, JPEG or GIF files. It also displays text or cats as a visual contains for other controls.  Textbox- provides an area to enter or display text.  Timer – Executes time events at specified time intervals.  OLE container – Enables data into a visual basic application.  Image – displays bitmaps , icons or window metafiles ,JPEG or GIF files, acts like a command button when clicked.  Scrollbar – allow user to add scroll bars to control that do not automatically provide them.  Frame – provides a visual and functional container for controls .
  • 5.  The most useful intrinsic controls these are nine intrinsic controls are pretty much used on every VB application .start your learning with these and then branch out . command button, image , checkbox, picture box , text box, list box ,label , combo box , option button.
  • 6. STANDARD ACTIVEX CONTROLS The Learning edition of Visual Basic contains a number of ActiveX controls (referred to as standard ActiveX controls) that allow you to add advanced features to your applications. ActiveX controls have the file name extension .ocx and can be used in your project by manually adding them to the toolbox. The following table summarizes the standard ActiveX controls available in the Learning edition of Visual Basic.
  • 7. Icon Control name Class name Description ADO Data Control ADODC Creates a connection to a database using ADO. Assignable to the DataSource property of other controls such as the DataGrid. Common dialog CommonDialog Provides a standard set of dialog boxes for operations such as opening and saving files, setting print options, and selecting colors and fonts. DataCombo DataCombo Provides most of the features of the standard combo box control, plus increased data access capabilities. DataGrid DataGrid A grid control that allows can be data-bound to a data source such as the ADO Data Control. Reading and editing the recordset is possible. DataList DataList Provides most of the features of the standard list box control, plus increased data access capabilities. Microsoft Hierarchical FlexGrid MSHFlexGrid A read-only grid control that can be bound the Data Environment designer to show hierarchical recordsets.
  • 8. OTHER CONTROLS Other ActiveX controls included with all versions of Visual Basic are documented in the Component Tools Guide, and include the following: ImageCombo, ImageList, ListView, ProgressBar, Slider, Statusbar, TabStrip, Toolbar, and TreeView.
  • 9. ADDING AND REMOVING ACTIVEX CONTROLS You move ActiveX controls to and from the toolbox using the following procedures. To add an ActiveX control to the toolbox  From the Project menu, choose Components.  Select the check box next to the name of the .ocx control, and then choose OK. Once a control is placed in the toolbox, you can add it to a form just as you would an intrinsic control.
  • 10. To remove an ActiveX control  Remove all instances of the control from the forms in your project. Delete any references to the control in the project's code. If references to a deleted control are left in your code, an error message will display when you compile the application.  From the Project menu, choose Components.  Clear the check box next to the name of the .ocx control, and then choose OK. An error message will display if there are remaining instances of the control in your project.
  • 11. COMMON DIALOG CONTROL:  VB provides user facility of using in-built dialog boxes in application. Hence user is saved from the job of design his own dialog boxes. He has just to use common dialog control on form and call appropriate methods. Common dialog control is a special control. It provides its services to application but it need not to be displayed at form at run time.  Common dialog control is a component that allows us to access inbuilt libraries.  Common dialog control provides an interface between visual basic and the procedures in the Microsoft windows.
  • 12. TO USE THE COMMON DIALOG CONTROL:  Add the common dialog control to the toolbox by selecting components from the project menu. Locate and select the control in the controls tabbed dialog, then click the OK button.  On the toolbox, click the common Dialog control and draw it on a form. When you draw a common dialog control on a form, it automatically resize itself. Like the timer control, this dialog is invisible at run time.
  • 13. The common dialog control allows you to display these commonly used dialog boxes:  Open  Save As  Color  Font  Print  Help
  • 14.  File open and file save common dialog control: File common dialog doesn’t display all files in any given folder normally. File display are limited to those recognized by application. Filter property determines the file to be displayed in File Open or File Save dialog box. DefaultExt property is used to specify the type of file to be displayed.  Color Common Dialog Control: It has single property color which returns color selected by user or sets initially selected color when dialog box opened.  Font common dialog box: It lets user select and view font, font size and style. Following attributes are set- Color, Font Bold, Font Italic, FontStrikethru, Font Underline, Font Name, Font Size.  Print Common Dialog Box: It enables user to select printer, set
  • 15.  Help common Dialog Control: Before using help common dialog box , user must have help files. These files either can be prepared by user or in-built.  To display common dialog box through code, its action property must be set. Method Action ShowOpen Displays open dialog box ShowSave Displays Save as dialog box ShowColor Displays Color dialog box ShowFont Displays Font dialog box ShowPrinter Displays Printer Dialog box ShowHelp Invokes Windows help engine