Search Tools Links Login

VB6 Tutorial 10: Common Properties 2 of 3


In this second part of three of the common properties section, we'll take a quick look at nine more properties that are common to most default VB6 objects.

The Left, Top, Width and Height properties

Example

Private Sub cmdChange_Click()
     Form1.Left = 12000
     Form1.Top = 7000
     Form1.Height = 10000
     Form1.Width = 12000
End Sub

The Container property

Moves an object into another container. You don't see it in the Properties Window, it is a run-time only property.

In this case, you need to start with the 'Set' keyword.

Example

Set Command1.Container = Frame1

The command1 control will be moved into frame1.

The Visible property

Determines whether an object is visible or hidden.

Example

Label1.Visible = False

The Enabled property

Determines whether an object can respond to user generated events.

Example

Text1.enabled=False

MousePointer and MouseIcon

The MousePointer property sets the type of mouse pointer over an object. The values of MousePointer property are

The MouseIcon property sets a custom mouse icon from your files.

In the next and final section on common properties, we'll take a quick look at nine more.

About this post

Posted: 2018-03-24
By: vb6boy
Viewed: 526 times

Categories

Visual Basic 6

VB6 Tutorial

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.

ADODB.Connection error '800a0e79'

Operation is not allowed when the object is open.

/assets/inc/inc_footer.asp, line 37