際際滷

際際滷Share a Scribd company logo
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, 際際滷r,
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 doesnt 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

What's hot (20)

Introduction to vb.net
Introduction to vb.netIntroduction to vb.net
Introduction to vb.net
Jaya Kumari
Java swing
Java swingJava swing
Java swing
Apurbo Datta
Looping statement in vb.net
Looping statement in vb.netLooping statement in vb.net
Looping statement in vb.net
ilakkiya
Visual basic ppt for tutorials computer
Visual basic ppt for tutorials computerVisual basic ppt for tutorials computer
Visual basic ppt for tutorials computer
simran153
Event Handling in java
Event Handling in javaEvent Handling in java
Event Handling in java
Google
JavaScript - Chapter 11 - Events
 JavaScript - Chapter 11 - Events  JavaScript - Chapter 11 - Events
JavaScript - Chapter 11 - Events
WebStackAcademy
ADO .Net
ADO .Net ADO .Net
ADO .Net
DrSonali Vyas
visual basic v6 introduction
visual basic v6 introductionvisual basic v6 introduction
visual basic v6 introduction
bloodyedge03
Windowforms controls c#
Windowforms controls c#Windowforms controls c#
Windowforms controls c#
prabhu rajendran
Applets in java
Applets in javaApplets in java
Applets in java
Wani Zahoor
Event In JavaScript
Event In JavaScriptEvent In JavaScript
Event In JavaScript
ShahDhruv21
HTML Forms
HTML FormsHTML Forms
HTML Forms
Ravinder Kamboj
Visual basic 6.0
Visual basic 6.0Visual basic 6.0
Visual basic 6.0
sanket1996
Visual programming lecture
Visual programming lecture Visual programming lecture
Visual programming lecture
AqsaHayat3
Dialog box in vb6
Dialog box in vb6Dialog box in vb6
Dialog box in vb6
Saroj Patel
Visual Basic(Vb) practical
Visual Basic(Vb) practicalVisual Basic(Vb) practical
Visual Basic(Vb) practical
Rahul juneja
ASP.NET - Life cycle of asp
ASP.NET - Life cycle of aspASP.NET - Life cycle of asp
ASP.NET - Life cycle of asp
priya Nithya
Web controls
Web controlsWeb controls
Web controls
Sarthak Varshney
Vectors in Java
Vectors in JavaVectors in Java
Vectors in Java
Abhilash Nair
Inline function
Inline functionInline function
Inline function
Tech_MX
Introduction to vb.net
Introduction to vb.netIntroduction to vb.net
Introduction to vb.net
Jaya Kumari
Looping statement in vb.net
Looping statement in vb.netLooping statement in vb.net
Looping statement in vb.net
ilakkiya
Visual basic ppt for tutorials computer
Visual basic ppt for tutorials computerVisual basic ppt for tutorials computer
Visual basic ppt for tutorials computer
simran153
Event Handling in java
Event Handling in javaEvent Handling in java
Event Handling in java
Google
JavaScript - Chapter 11 - Events
 JavaScript - Chapter 11 - Events  JavaScript - Chapter 11 - Events
JavaScript - Chapter 11 - Events
WebStackAcademy
visual basic v6 introduction
visual basic v6 introductionvisual basic v6 introduction
visual basic v6 introduction
bloodyedge03
Windowforms controls c#
Windowforms controls c#Windowforms controls c#
Windowforms controls c#
prabhu rajendran
Applets in java
Applets in javaApplets in java
Applets in java
Wani Zahoor
Event In JavaScript
Event In JavaScriptEvent In JavaScript
Event In JavaScript
ShahDhruv21
Visual basic 6.0
Visual basic 6.0Visual basic 6.0
Visual basic 6.0
sanket1996
Visual programming lecture
Visual programming lecture Visual programming lecture
Visual programming lecture
AqsaHayat3
Dialog box in vb6
Dialog box in vb6Dialog box in vb6
Dialog box in vb6
Saroj Patel
Visual Basic(Vb) practical
Visual Basic(Vb) practicalVisual Basic(Vb) practical
Visual Basic(Vb) practical
Rahul juneja
ASP.NET - Life cycle of asp
ASP.NET - Life cycle of aspASP.NET - Life cycle of asp
ASP.NET - Life cycle of asp
priya Nithya
Inline function
Inline functionInline function
Inline function
Tech_MX

Similar to Visual Basic Controls ppt (20)

Vb basic
Vb basicVb basic
Vb basic
IYPUMANI
visual basic for the beginner
visual basic for the beginnervisual basic for the beginner
visual basic for the beginner
Salim M
Vb basics
Vb basicsVb basics
Vb basics
sagaroceanic11
Visual basic concepts
Visual basic conceptsVisual basic concepts
Visual basic concepts
melody77776
control structure in visual basic
control structure in visual basic control structure in visual basic
control structure in visual basic
classall
Visual basic
Visual basicVisual basic
Visual basic
KavithaAlagumalai
Visual Basic.pptx
Visual Basic.pptxVisual Basic.pptx
Visual Basic.pptx
KavithaAlagumalai
Visual basic
Visual basicVisual basic
Visual basic
mafffffe19
UNIT - 1 VISUAL BASIC PRESENTATION FOR IT
UNIT - 1 VISUAL BASIC PRESENTATION FOR ITUNIT - 1 VISUAL BASIC PRESENTATION FOR IT
UNIT - 1 VISUAL BASIC PRESENTATION FOR IT
gayathripcs
Visual Basic IDE Intro.pdf
Visual Basic IDE Intro.pdfVisual Basic IDE Intro.pdf
Visual Basic IDE Intro.pdf
sheenmarie0212
Visual Basic IDE Introduction
Visual Basic IDE IntroductionVisual Basic IDE Introduction
Visual Basic IDE Introduction
Ahllen Javier
Vb.net ide
Vb.net ideVb.net ide
Vb.net ide
Faisal Aziz
Getting started with test complete 7
Getting started with test complete 7Getting started with test complete 7
Getting started with test complete 7
Hoamuoigio Hoa
VB PPT by ADI PART4.pdf
VB PPT by ADI PART4.pdfVB PPT by ADI PART4.pdf
VB PPT by ADI PART4.pdf
AdiseshaK
VB PPT by ADI PART4.pdf
VB PPT by ADI PART4.pdfVB PPT by ADI PART4.pdf
VB PPT by ADI PART4.pdf
Prof. Dr. K. Adisesha
Original material, visual studio
Original material, visual studioOriginal material, visual studio
Original material, visual studio
Anoo Al-henai
Autocad lt 2010__tips_and_tricks
Autocad lt 2010__tips_and_tricksAutocad lt 2010__tips_and_tricks
Autocad lt 2010__tips_and_tricks
Handry J
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速...
Sami JAMMALI
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
Dipen Parmar
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
Ujwala Junghare
Vb basic
Vb basicVb basic
Vb basic
IYPUMANI
visual basic for the beginner
visual basic for the beginnervisual basic for the beginner
visual basic for the beginner
Salim M
Visual basic concepts
Visual basic conceptsVisual basic concepts
Visual basic concepts
melody77776
control structure in visual basic
control structure in visual basic control structure in visual basic
control structure in visual basic
classall
Visual basic
Visual basicVisual basic
Visual basic
mafffffe19
UNIT - 1 VISUAL BASIC PRESENTATION FOR IT
UNIT - 1 VISUAL BASIC PRESENTATION FOR ITUNIT - 1 VISUAL BASIC PRESENTATION FOR IT
UNIT - 1 VISUAL BASIC PRESENTATION FOR IT
gayathripcs
Visual Basic IDE Intro.pdf
Visual Basic IDE Intro.pdfVisual Basic IDE Intro.pdf
Visual Basic IDE Intro.pdf
sheenmarie0212
Visual Basic IDE Introduction
Visual Basic IDE IntroductionVisual Basic IDE Introduction
Visual Basic IDE Introduction
Ahllen Javier
Getting started with test complete 7
Getting started with test complete 7Getting started with test complete 7
Getting started with test complete 7
Hoamuoigio Hoa
VB PPT by ADI PART4.pdf
VB PPT by ADI PART4.pdfVB PPT by ADI PART4.pdf
VB PPT by ADI PART4.pdf
AdiseshaK
Original material, visual studio
Original material, visual studioOriginal material, visual studio
Original material, visual studio
Anoo Al-henai
Autocad lt 2010__tips_and_tricks
Autocad lt 2010__tips_and_tricksAutocad lt 2010__tips_and_tricks
Autocad lt 2010__tips_and_tricks
Handry J
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速...
Sami JAMMALI
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
Dipen Parmar
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
Ujwala Junghare

Recently uploaded (20)

Turinton Insights - Enterprise Agentic AI Platform
Turinton Insights - Enterprise Agentic AI PlatformTurinton Insights - Enterprise Agentic AI Platform
Turinton Insights - Enterprise Agentic AI Platform
vikrant530668
data compression.ppt tree structure vector
data compression.ppt tree structure vectordata compression.ppt tree structure vector
data compression.ppt tree structure vector
vidhyaminnalveeran29
GE-108-LESSON8.pptxbshsnsnsnsnsnsnnsnsnsnsnsbd
GE-108-LESSON8.pptxbshsnsnsnsnsnsnnsnsnsnsnsbdGE-108-LESSON8.pptxbshsnsnsnsnsnsnnsnsnsnsnsbd
GE-108-LESSON8.pptxbshsnsnsnsnsnsnnsnsnsnsnsbd
HarleySamboFavor
ENG8-Q4-MOD2.pdfajxnjdabajbadjbiadbiwdhiwdhwdhiwd
ENG8-Q4-MOD2.pdfajxnjdabajbadjbiadbiwdhiwdhwdhiwdENG8-Q4-MOD2.pdfajxnjdabajbadjbiadbiwdhiwdhwdhiwd
ENG8-Q4-MOD2.pdfajxnjdabajbadjbiadbiwdhiwdhwdhiwd
shekainahrosej
LITERATURE-MODEL.pptxddddddddddddddddddddddddddddddddd
LITERATURE-MODEL.pptxdddddddddddddddddddddddddddddddddLITERATURE-MODEL.pptxddddddddddddddddddddddddddddddddd
LITERATURE-MODEL.pptxddddddddddddddddddddddddddddddddd
Maimai708843
Chapter-4-Plane-Wave-Propagation-pdf.pdf
Chapter-4-Plane-Wave-Propagation-pdf.pdfChapter-4-Plane-Wave-Propagation-pdf.pdf
Chapter-4-Plane-Wave-Propagation-pdf.pdf
ShamsAli42
Visionaize for Visionaize AI Powered Solution For Thermal Power Plant.pptx
Visionaize  for Visionaize AI Powered Solution For Thermal Power Plant.pptxVisionaize  for Visionaize AI Powered Solution For Thermal Power Plant.pptx
Visionaize for Visionaize AI Powered Solution For Thermal Power Plant.pptx
SumantaBasu12
MeasureCamp Belgrade 2025 - Yasen Lilov - Past - Present - Prompt
MeasureCamp Belgrade 2025 - Yasen Lilov - Past - Present - PromptMeasureCamp Belgrade 2025 - Yasen Lilov - Past - Present - Prompt
MeasureCamp Belgrade 2025 - Yasen Lilov - Past - Present - Prompt
Yasen Lilov
Drillingis_optimizedusingartificialneural.pptx
Drillingis_optimizedusingartificialneural.pptxDrillingis_optimizedusingartificialneural.pptx
Drillingis_optimizedusingartificialneural.pptx
singhsanjays2107
Introduction to Microsoft Power BI is a business analytics service
Introduction to Microsoft Power BI is a business analytics serviceIntroduction to Microsoft Power BI is a business analytics service
Introduction to Microsoft Power BI is a business analytics service
Kongu Engineering College, Perundurai, Erode
SCIENCE-TECHNOLOGY-AND-SOCIETY.pptxhhgfffv
SCIENCE-TECHNOLOGY-AND-SOCIETY.pptxhhgfffvSCIENCE-TECHNOLOGY-AND-SOCIETY.pptxhhgfffv
SCIENCE-TECHNOLOGY-AND-SOCIETY.pptxhhgfffv
TristanEvasco
inSis AI - An Industrial AI Platform for Process Plants
inSis AI - An Industrial AI Platform for Process PlantsinSis AI - An Industrial AI Platform for Process Plants
inSis AI - An Industrial AI Platform for Process Plants
Kondapi V Siva Rama Brahmam
IT Professional Ethics, Moral and Cu.ppt
IT Professional Ethics, Moral and Cu.pptIT Professional Ethics, Moral and Cu.ppt
IT Professional Ethics, Moral and Cu.ppt
FrancisFayiah
This presentation detail concepts of cryptocurrency
This presentation detail concepts of cryptocurrencyThis presentation detail concepts of cryptocurrency
This presentation detail concepts of cryptocurrency
Aslbtr
chap2_nnejjejehhehehhhhhhhhhehslides.ppt
chap2_nnejjejehhehehhhhhhhhhehslides.pptchap2_nnejjejehhehehhhhhhhhhehslides.ppt
chap2_nnejjejehhehehhhhhhhhhehslides.ppt
Nikhil620181
AI-Powered Contact Centre Virtual Assistant DS
AI-Powered Contact Centre Virtual Assistant DSAI-Powered Contact Centre Virtual Assistant DS
AI-Powered Contact Centre Virtual Assistant DS
Srinivasan N
diagram ANN of factor and responses.pptx
diagram ANN of factor and responses.pptxdiagram ANN of factor and responses.pptx
diagram ANN of factor and responses.pptx
EdunjobiTunde1
20230109_NLDL_Tutorial_Tan.pdf data analysis
20230109_NLDL_Tutorial_Tan.pdf data analysis20230109_NLDL_Tutorial_Tan.pdf data analysis
20230109_NLDL_Tutorial_Tan.pdf data analysis
aitaghavi
Mastering Data Science with Tutort Academy
Mastering Data Science with Tutort AcademyMastering Data Science with Tutort Academy
Mastering Data Science with Tutort Academy
yashikanigam1
Lecture 2-DATABASE MODELS lecture 2.pptx
Lecture 2-DATABASE MODELS lecture 2.pptxLecture 2-DATABASE MODELS lecture 2.pptx
Lecture 2-DATABASE MODELS lecture 2.pptx
elvis24mutura
Turinton Insights - Enterprise Agentic AI Platform
Turinton Insights - Enterprise Agentic AI PlatformTurinton Insights - Enterprise Agentic AI Platform
Turinton Insights - Enterprise Agentic AI Platform
vikrant530668
data compression.ppt tree structure vector
data compression.ppt tree structure vectordata compression.ppt tree structure vector
data compression.ppt tree structure vector
vidhyaminnalveeran29
GE-108-LESSON8.pptxbshsnsnsnsnsnsnnsnsnsnsnsbd
GE-108-LESSON8.pptxbshsnsnsnsnsnsnnsnsnsnsnsbdGE-108-LESSON8.pptxbshsnsnsnsnsnsnnsnsnsnsnsbd
GE-108-LESSON8.pptxbshsnsnsnsnsnsnnsnsnsnsnsbd
HarleySamboFavor
ENG8-Q4-MOD2.pdfajxnjdabajbadjbiadbiwdhiwdhwdhiwd
ENG8-Q4-MOD2.pdfajxnjdabajbadjbiadbiwdhiwdhwdhiwdENG8-Q4-MOD2.pdfajxnjdabajbadjbiadbiwdhiwdhwdhiwd
ENG8-Q4-MOD2.pdfajxnjdabajbadjbiadbiwdhiwdhwdhiwd
shekainahrosej
LITERATURE-MODEL.pptxddddddddddddddddddddddddddddddddd
LITERATURE-MODEL.pptxdddddddddddddddddddddddddddddddddLITERATURE-MODEL.pptxddddddddddddddddddddddddddddddddd
LITERATURE-MODEL.pptxddddddddddddddddddddddddddddddddd
Maimai708843
Chapter-4-Plane-Wave-Propagation-pdf.pdf
Chapter-4-Plane-Wave-Propagation-pdf.pdfChapter-4-Plane-Wave-Propagation-pdf.pdf
Chapter-4-Plane-Wave-Propagation-pdf.pdf
ShamsAli42
Visionaize for Visionaize AI Powered Solution For Thermal Power Plant.pptx
Visionaize  for Visionaize AI Powered Solution For Thermal Power Plant.pptxVisionaize  for Visionaize AI Powered Solution For Thermal Power Plant.pptx
Visionaize for Visionaize AI Powered Solution For Thermal Power Plant.pptx
SumantaBasu12
MeasureCamp Belgrade 2025 - Yasen Lilov - Past - Present - Prompt
MeasureCamp Belgrade 2025 - Yasen Lilov - Past - Present - PromptMeasureCamp Belgrade 2025 - Yasen Lilov - Past - Present - Prompt
MeasureCamp Belgrade 2025 - Yasen Lilov - Past - Present - Prompt
Yasen Lilov
Drillingis_optimizedusingartificialneural.pptx
Drillingis_optimizedusingartificialneural.pptxDrillingis_optimizedusingartificialneural.pptx
Drillingis_optimizedusingartificialneural.pptx
singhsanjays2107
SCIENCE-TECHNOLOGY-AND-SOCIETY.pptxhhgfffv
SCIENCE-TECHNOLOGY-AND-SOCIETY.pptxhhgfffvSCIENCE-TECHNOLOGY-AND-SOCIETY.pptxhhgfffv
SCIENCE-TECHNOLOGY-AND-SOCIETY.pptxhhgfffv
TristanEvasco
inSis AI - An Industrial AI Platform for Process Plants
inSis AI - An Industrial AI Platform for Process PlantsinSis AI - An Industrial AI Platform for Process Plants
inSis AI - An Industrial AI Platform for Process Plants
Kondapi V Siva Rama Brahmam
IT Professional Ethics, Moral and Cu.ppt
IT Professional Ethics, Moral and Cu.pptIT Professional Ethics, Moral and Cu.ppt
IT Professional Ethics, Moral and Cu.ppt
FrancisFayiah
This presentation detail concepts of cryptocurrency
This presentation detail concepts of cryptocurrencyThis presentation detail concepts of cryptocurrency
This presentation detail concepts of cryptocurrency
Aslbtr
chap2_nnejjejehhehehhhhhhhhhehslides.ppt
chap2_nnejjejehhehehhhhhhhhhehslides.pptchap2_nnejjejehhehehhhhhhhhhehslides.ppt
chap2_nnejjejehhehehhhhhhhhhehslides.ppt
Nikhil620181
AI-Powered Contact Centre Virtual Assistant DS
AI-Powered Contact Centre Virtual Assistant DSAI-Powered Contact Centre Virtual Assistant DS
AI-Powered Contact Centre Virtual Assistant DS
Srinivasan N
diagram ANN of factor and responses.pptx
diagram ANN of factor and responses.pptxdiagram ANN of factor and responses.pptx
diagram ANN of factor and responses.pptx
EdunjobiTunde1
20230109_NLDL_Tutorial_Tan.pdf data analysis
20230109_NLDL_Tutorial_Tan.pdf data analysis20230109_NLDL_Tutorial_Tan.pdf data analysis
20230109_NLDL_Tutorial_Tan.pdf data analysis
aitaghavi
Mastering Data Science with Tutort Academy
Mastering Data Science with Tutort AcademyMastering Data Science with Tutort Academy
Mastering Data Science with Tutort Academy
yashikanigam1
Lecture 2-DATABASE MODELS lecture 2.pptx
Lecture 2-DATABASE MODELS lecture 2.pptxLecture 2-DATABASE MODELS lecture 2.pptx
Lecture 2-DATABASE MODELS lecture 2.pptx
elvis24mutura

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, 際際滷r, 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 doesnt 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