Child Development and Pedagogy Ebook
Child Development and Pedagogy Ebook
COM
Chapter - 4
Visual Basic Revision Tour
Intrinsic Controls in Visual basic
The visual basic 6.0 provides some standard controls on its control box which are known as
intrinsic control. These are built-in controls and are contained in Visual basic .EXE file. These are
different from the extrinsic controls (ActiveX objects and Insertable objects) in the sense that they always
reside in the control toolbox, while the others are required to be inserted through the components.
TOOL BOX
o m
y . c
d a
t o
d ies
s tu
w .
w w
The following table is describing the basic controls, their functionality, naming conventions and some
important properties and commonly used methods. The letters in ITALICS show the methods generally
used with these properties.
Describing the intrinsic control
S.no Control Naming Important properties Functionality
convention
1. PictureBox Pic Borderstyle, picture, autosize Displays a graphic from a bitmap, icon or
LoadPicture() metafile.
2. Label Lbl Alignment, wordwrap, Displays text that a user can't change
autosize, borderstyle directly.
3. Textbox Txt Text, max length, multiline, Displays information entered at design
scrollbar, password time by the user, or in code at run time.
character, seltext, selstart
4. Frame Fra Visible, borderstyle, Provides an identifiable grouping for
appearance controls.
5. Command Cmd Enabled, font, style, top Looks like a push button and is used to
Button visible. begin, interrupt, or end a process.
Downloaded from WWW.STUDIESTODAY.COM Downloaded from WWW.STUDIESTODAY.COM
Downloaded from WWW.STUDIESTODAY.COM Downloaded from WWW.STUDIESTODAY.COM
m
15. FileListBox fil Path, pattern Locates and lists files in the directory
o
specified by the Path property at run time.
. c
16. Shape shp Only for decorative purpose on A graphical control displayed as a
y
Form Shape, bordercolor, rectangle, square, oval, circle or rounded
a
fillcolor rectangle or square.
d
17. Line lin Only for decorative purpose on A graphical control displayed as a
t o
Form horizontal, vertical or diagonal line.
ies
Shape, bordercolor, fillcolor,
borderstyle, borderwidth
d
18. Image img Appearance, borderstyle, Displays a graphic.
tu
picture, stretch
.s
LoadPicture()
19. Data dat DatabaseName, Provides access to databases using a
ww recordsource, Readonly,
exclusive
Recordset object.
Name, Caption (or text in case of textbox), font, are common properties of all controls which are related
to the controls basic properties.
The codes using these properties and/or methods are generally written either within a function, procedure
or an event-procedure while writing a VB 6.0 programs.
***
Downloaded from WWW.STUDIESTODAY.COM Downloaded from WWW.STUDIESTODAY.COM