By Fatskills Exam Guides Team — the exam nerds behind 28,500+ quizzes and 2.1M practice questions across 500+ global exams.
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 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
1. PictureBox Naming convention Pic
2. Label Lbl
3. Textbox Txt
4. Frame Fra
5. Command Button Cmd Important properties Functionality Borderstyle, picture, autosize LoadPicture() Alignment, wordwrap, autosize, borderstyle Text, max length, multiline, scrollbar, password character, seltext, selstart Visible, borderstyle, appearance Enabled, font, style, top visible. Displays a graphic from a bitmap, icon or metafile. Displays text that a user can't change directly. Displays information entered at design time by the user, or in code at run time. Provides an identifiable grouping for controls. Looks like a push button and is used to begin, interrupt, or end a process.
6. Checkbox Chk Alignment, enabled, value
7. Opt
8. OptionButt on ComboBox Cbo
9. List Box Lst Alignment, enabled, value, style Appearance, borderstyle, visible. Multiselect , sorted, style AddItem(), RemoveItem(),Clear(), list() Min, max, Value, LargeChange, smallChange Min, max, Value, LargeChange, smallChange Enabled, interval, index Timer() drive
- HScrollbar hsb - VScrollbar vsb - Timer tmr - DriveListB drv ox - DirListBox dir - FileListBox fil - Shape shp path
Path, pattern
Only for decorative purpose on Form Shape, bordercolor, fillcolor 1.. Line lin Only for decorative purpose on Form Shape, bordercolor, fillcolor, borderstyle, borderwidth 1.. Image img Appearance, borderstyle, picture, stretch LoadPicture() 1.. Data dat DatabaseName, recordsource, Readonly, exclusive 2.. OLE ole Class. Sourcedoc, Sourceitem,
OLETypeAllowed Name, Caption (or text in case of textbox), font, are common to the controls basic properties. Displays an X when selected; the X disappears when the Checkbox is cleared. Displays an option that can be turned on or off. Combines the features of a TextBox control and a ListBox control. Displays a list of items from which the user can select one or more. Provides a horizontal scroll bar for easy navigation through long lists of items. Provides a vertical scroll bar. A control which can execute code at regular intervals by causing a Timer event. Enables a user to select a valid disk drive at run time. Displays directories and paths at run time. Locates and lists files in the directory specified by the Path property at run time. A graphical control displayed as a rectangle, square, oval, circle or rounded rectangle or square. A graphical control displayed as a horizontal, vertical or diagonal line. Displays a graphic. Provides access to databases using a Recordset object. Enables you to add insertable objects to the forms of your applications. properties of all controls which are related
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.
Join 4M+ learners. Unlock unlimited quizzes, wrong-answer tracking, flashcards + reminders, study guides, and 1-on-1 challenges.