SlideShare une entreprise Scribd logo
1  sur  16
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

Contenu connexe

Tendances

visual basic v6 introduction
visual basic v6 introductionvisual basic v6 introduction
visual basic v6 introduction
bloodyedge03
 
VB Function and procedure
VB Function and procedureVB Function and procedure
VB Function and procedure
pragya ratan
 
Visual basic 6.0
Visual basic 6.0Visual basic 6.0
Visual basic 6.0
Aarti P
 
Visual basic 6.0
Visual basic 6.0Visual basic 6.0
Visual basic 6.0
sanket1996
 

Tendances (20)

visual basic v6 introduction
visual basic v6 introductionvisual basic v6 introduction
visual basic v6 introduction
 
VB Function and procedure
VB Function and procedureVB Function and procedure
VB Function and procedure
 
Visual Basic IDE Introduction
Visual Basic IDE IntroductionVisual Basic IDE Introduction
Visual Basic IDE Introduction
 
Visual basic 6.0
Visual basic 6.0Visual basic 6.0
Visual basic 6.0
 
Variable scope ppt in vb6
Variable scope ppt in vb6Variable scope ppt in vb6
Variable scope ppt in vb6
 
Meaning Of VB
Meaning Of VBMeaning Of VB
Meaning Of VB
 
VISUAL BASIC 6 - CONTROLS AND DECLARATIONS
VISUAL BASIC 6 - CONTROLS AND DECLARATIONSVISUAL BASIC 6 - CONTROLS AND DECLARATIONS
VISUAL BASIC 6 - CONTROLS AND DECLARATIONS
 
toolbox and its properties in the visual basic
toolbox and its properties in the visual basictoolbox and its properties in the visual basic
toolbox and its properties in the visual basic
 
Lecture 1 introduction to vb.net
Lecture 1   introduction to vb.netLecture 1   introduction to vb.net
Lecture 1 introduction to vb.net
 
Buttons In .net Visual Basic
Buttons In .net Visual BasicButtons In .net Visual Basic
Buttons In .net Visual Basic
 
Microsoft visual basic 6
Microsoft visual basic 6Microsoft visual basic 6
Microsoft visual basic 6
 
Windows form application_in_vb(vb.net --3 year)
Windows form application_in_vb(vb.net --3 year)Windows form application_in_vb(vb.net --3 year)
Windows form application_in_vb(vb.net --3 year)
 
Vb basics
Vb basicsVb basics
Vb basics
 
Visual basic
Visual basicVisual basic
Visual basic
 
Vb.net ide
Vb.net ideVb.net ide
Vb.net ide
 
Vb introduction.
Vb introduction.Vb introduction.
Vb introduction.
 
Visual basic 6.0
Visual basic 6.0Visual basic 6.0
Visual basic 6.0
 
Programming in c
Programming in cProgramming in c
Programming in c
 
introduction to visual basic PPT.pptx
introduction to visual basic PPT.pptxintroduction to visual basic PPT.pptx
introduction to visual basic PPT.pptx
 
Objects and classes in Visual Basic
Objects and classes in Visual BasicObjects and classes in Visual Basic
Objects and classes in Visual Basic
 

Similaire à Visual Basic Controls ppt

control structure in visual basic
control structure in visual basic control structure in visual basic
control structure in visual basic
classall
 
Original material, visual studio
Original material, visual studioOriginal material, visual studio
Original material, visual studio
Anoo Al-henai
 
Getting started with_testcomplete
Getting started with_testcompleteGetting started with_testcomplete
Getting started with_testcomplete
ankit.das
 

Similaire à Visual Basic Controls ppt (20)

Vb basic
Vb basicVb basic
Vb basic
 
visual basic for the beginner
visual basic for the beginnervisual basic for the beginner
visual basic for the beginner
 
Visual basic concepts
Visual basic conceptsVisual basic concepts
Visual basic concepts
 
control structure in visual basic
control structure in visual basic control structure in visual basic
control structure in visual basic
 
Visual basic
Visual basicVisual basic
Visual basic
 
Visual Basic.pptx
Visual Basic.pptxVisual Basic.pptx
Visual Basic.pptx
 
Visual basic
Visual basicVisual basic
Visual basic
 
Visual Basic IDE Intro.pdf
Visual Basic IDE Intro.pdfVisual Basic IDE Intro.pdf
Visual Basic IDE Intro.pdf
 
Getting started with test complete 7
Getting started with test complete 7Getting started with test complete 7
Getting started with test complete 7
 
VB PPT by ADI PART4.pdf
VB PPT by ADI PART4.pdfVB PPT by ADI PART4.pdf
VB PPT by ADI PART4.pdf
 
VB PPT by ADI PART4.pdf
VB PPT by ADI PART4.pdfVB PPT by ADI PART4.pdf
VB PPT by ADI PART4.pdf
 
Original material, visual studio
Original material, visual studioOriginal material, visual studio
Original material, visual studio
 
Autocad lt 2010__tips_and_tricks
Autocad lt 2010__tips_and_tricksAutocad lt 2010__tips_and_tricks
Autocad lt 2010__tips_and_tricks
 
Mr20 enus 02-Report Design in Management Reporter 2.0 for Microsoft Dynamics®...
Mr20 enus 02-Report Design in Management Reporter 2.0 for Microsoft Dynamics®...Mr20 enus 02-Report Design in Management Reporter 2.0 for Microsoft Dynamics®...
Mr20 enus 02-Report Design in Management Reporter 2.0 for Microsoft Dynamics®...
 
Visual studio ide componects dot net framwork
Visual studio ide componects dot net framworkVisual studio ide componects dot net framwork
Visual studio ide componects dot net framwork
 
Unit IV-Checkboxes and Radio Buttons in VB.Net in VB.NET
Unit IV-Checkboxes    and   Radio Buttons in VB.Net in VB.NET Unit IV-Checkboxes    and   Radio Buttons in VB.Net in VB.NET
Unit IV-Checkboxes and Radio Buttons in VB.Net in VB.NET
 
Interactive material
Interactive materialInteractive material
Interactive material
 
Getting started with_testcomplete
Getting started with_testcompleteGetting started with_testcomplete
Getting started with_testcomplete
 
Gui
GuiGui
Gui
 
Visual basic programming
Visual basic programmingVisual basic programming
Visual basic programming
 

Dernier

Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
nirzagarg
 
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
gajnagarg
 
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
nirzagarg
 
Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1
ranjankumarbehera14
 
Jodhpur Park | Call Girls in Kolkata Phone No 8005736733 Elite Escort Service...
Jodhpur Park | Call Girls in Kolkata Phone No 8005736733 Elite Escort Service...Jodhpur Park | Call Girls in Kolkata Phone No 8005736733 Elite Escort Service...
Jodhpur Park | Call Girls in Kolkata Phone No 8005736733 Elite Escort Service...
HyderabadDolls
 
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
wsppdmt
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...
gajnagarg
 
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Klinik kandungan
 

Dernier (20)

Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
Top profile Call Girls In Begusarai [ 7014168258 ] Call Me For Genuine Models...
 
Kings of Saudi Arabia, information about them
Kings of Saudi Arabia, information about themKings of Saudi Arabia, information about them
Kings of Saudi Arabia, information about them
 
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
Top profile Call Girls In dimapur [ 7014168258 ] Call Me For Genuine Models W...
 
Statistics notes ,it includes mean to index numbers
Statistics notes ,it includes mean to index numbersStatistics notes ,it includes mean to index numbers
Statistics notes ,it includes mean to index numbers
 
TrafficWave Generator Will Instantly drive targeted and engaging traffic back...
TrafficWave Generator Will Instantly drive targeted and engaging traffic back...TrafficWave Generator Will Instantly drive targeted and engaging traffic back...
TrafficWave Generator Will Instantly drive targeted and engaging traffic back...
 
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
 
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
 
Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1Lecture_2_Deep_Learning_Overview-newone1
Lecture_2_Deep_Learning_Overview-newone1
 
Jodhpur Park | Call Girls in Kolkata Phone No 8005736733 Elite Escort Service...
Jodhpur Park | Call Girls in Kolkata Phone No 8005736733 Elite Escort Service...Jodhpur Park | Call Girls in Kolkata Phone No 8005736733 Elite Escort Service...
Jodhpur Park | Call Girls in Kolkata Phone No 8005736733 Elite Escort Service...
 
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
如何办理英国诺森比亚大学毕业证(NU毕业证书)成绩单原件一模一样
 
Aspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - AlmoraAspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - Almora
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
Digital Advertising Lecture for Advanced Digital & Social Media Strategy at U...
 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Research
 
Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Latur [ 7014168258 ] Call Me For Genuine Models We ...
 
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
Jual obat aborsi Bandung ( 085657271886 ) Cytote pil telat bulan penggugur ka...
 
Gomti Nagar & best call girls in Lucknow | 9548273370 Independent Escorts & D...
Gomti Nagar & best call girls in Lucknow | 9548273370 Independent Escorts & D...Gomti Nagar & best call girls in Lucknow | 9548273370 Independent Escorts & D...
Gomti Nagar & best call girls in Lucknow | 9548273370 Independent Escorts & D...
 
Dubai Call Girls Peeing O525547819 Call Girls Dubai
Dubai Call Girls Peeing O525547819 Call Girls DubaiDubai Call Girls Peeing O525547819 Call Girls Dubai
Dubai Call Girls Peeing O525547819 Call Girls Dubai
 
High Profile Call Girls Service in Jalore { 9332606886 } VVIP NISHA Call Girl...
High Profile Call Girls Service in Jalore { 9332606886 } VVIP NISHA Call Girl...High Profile Call Girls Service in Jalore { 9332606886 } VVIP NISHA Call Girl...
High Profile Call Girls Service in Jalore { 9332606886 } VVIP NISHA Call Girl...
 
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book nowVadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
 

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