Search Tools Links Login

VB6 Tutorial 11: Common Properties 3 of 3


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.

About this post

Posted: 2018-03-25
By: vb6boy
Viewed: 631 times

Categories

Visual Basic 6

VB6 Tutorial

Attachments

No attachments for this post


Loading Comments ...

Comments

AnonymousCoward posted this comment on 2018-03-31:

Hey VBBoy, just wanted you to know I'm here and *someone* is reading your stuff. You're not alone brother.
 

vb6boy posted this comment on 2018-03-31:

Haha thanks! I'm just glad someone is getting some use out of these posts.

I'm working on the rest of the series, and should be able to have them submitted tomorrow.  The webmaster will only release two per day, though. :(

CrazyDude posted this comment on 2018-04-02:

Not sure why it's posting me as "AnonymousCoward". I didn't sign up as that.  I might be a coward, but I don't care if I'm all that anonymous. :)  I know a lot of this stuff coz I been in it since 2003, but there's stuff that's always eluded me, like Xor and And ops, so look forward to that.  I know there's a lot of those tutorials online, but since you're making them, why not use yours?

vb6boy posted this comment on 2018-04-02:

Looks like you got it sorted.  I'll poke dwirch about your issue.  He might be already chasing it down, though.  He's usually pretty on top of these things.

vb6boy posted this comment on 2018-04-02:

Oh and ... I've got a numeric functions lesson coming up in a bit.  Should be around lesson 37 or so.  

You must be logged in to make a comment.