0% found this document useful (0 votes)
46 views

Child Development and Pedagogy Ebook

The document discusses intrinsic controls in Visual Basic 6.0. It provides a table describing 20 intrinsic controls, their naming conventions, important properties, and functionality. The controls include text boxes, labels, command buttons, checkboxes, list boxes, scroll bars, timers, and more. It also explains how to use control properties and methods by setting property values like ControlName.Property=Value and calling methods like ControlName.Method(Parameters).

Uploaded by

VinayakKaurav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views

Child Development and Pedagogy Ebook

The document discusses intrinsic controls in Visual Basic 6.0. It provides a table describing 20 intrinsic controls, their naming conventions, important properties, and functionality. The controls include text boxes, labels, command buttons, checkboxes, list boxes, scroll bars, timers, and more. It also explains how to use control properties and methods by setting property values like ControlName.Property=Value and calling methods like ControlName.Method(Parameters).

Uploaded by

VinayakKaurav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Downloaded from WWW.STUDIESTODAY.COM Downloaded from WWW.STUDIESTODAY.

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

6. Checkbox Chk Alignment, enabled, value Displays an X when selected; the X


disappears when the Checkbox is cleared.
7. OptionButt Opt Alignment, enabled, value, Displays an option that can be turned on or
on style off.
8. ComboBox Cbo Appearance, borderstyle, Combines the features of a TextBox
visible. control and a ListBox control.
9. List Box Lst Multiselect , sorted, style Displays a list of items from which the
AddItem(), user can select one or more.
RemoveItem(),Clear(), list()
10. HScrollbar hsb Min, max, Value, Provides a horizontal scroll bar for easy
LargeChange, smallChange navigation through long lists of items.
11. VScrollbar vsb Min, max, Value, Provides a vertical scroll bar.
LargeChange, smallChange
12. Timer tmr Enabled, interval, index A control which can execute code at
Timer() regular intervals by causing a Timer event.
13. DriveListB drv drive Enables a user to select a valid disk drive
ox at run time.
14. DirListBox dir path Displays directories and paths at run time.

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.

20. OLE ole


w Class. Sourcedoc,
Sourceitem,
OLETypeAllowed
Enables you to add insertable objects to
the forms of your applications.

Name, Caption (or text in case of textbox), font, are common properties of all controls which are related
to the controls basic properties.

How to use the properties within a particular control:


Syantax: Controlname.property=value
Ex:- txtcountry.text=”India” here the txtcountry is a text box assigned a value of “India” to its property
text.

How to use the properties within a particular control:


Syantax: Controlname.method(parameters)
Ex:- lstname.additem(“my name”) the method additem is here adding a new item in the listbox.

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

You might also like