VB6 Tutorial 11: Common Properties 3 of 3

By | 2018-03-24

This is the third and final part of the common properties section, in which a description of properties that are common to most VB6 controls.

The TabIndex and TabStop property

The TabStop property indicates whether the user can use the TAB key to give the focus to an object. You can give focus to the objects pressing the TAB key in the daily use software applications.

The TabIndex property sets the tab order of an object.

Example

Command3.TabIndex = 0
Command2.TabIndex = 1
Command1.TabIndex = 2

When you press the TAB key, the focus will be given on Command3 first, then on Command2 and at last on Command1.

Movable

Determines whether an object is movable.

Locked

Determines whether an object e.g TextBox can be edited.

The Tag Property

Stores any extra data for your program that is used in the code.

Control Box

Indicates whether a control-menu box is displayed on the form at run time. If this property is set to False, the Close Button, Minimize Button and Maximize Button are not shown on the form.

ShowInTaskBar

Determines whether the form appears in the windows taskbar.

StartUpPosition

Specifies the position of the form when it first appears.

Icon

Sets the icon displayed when the form is minimized at run time.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.