Using Visual Basic 6

Previous chapterNext chapterContents


- B -
Control Syntax: Properties, Events, and Methods


Visual Basic relies heavily on components, such as ActiveX controls and objects. Each component often has dozens of properties, events, and methods by which it can be modified or manipulated. It's often difficult to remember the details of a control or object's interface, especially if it is an object that is seldom used.

This appendix provides a quick reference to the properties, events, and methods of Visual Basic's many components. Not only are all the ActiveX controls detailed here, other important objects (such as Screen, Printer, and UserControl) are also included. Although this is not meant to be a complete reference, it may prove useful because it allows you to see all the properties, events, and methods for a control within the space of a page or two. It also provides pertinent information about each, such as the data types of properties, the syntax of methods, and the arguments of events. If you require a more in-depth source of information, Microsoft's Visual Basic 6.0 Language Reference and Visual Basic 6.0 ActiveX Controls Reference are highly recommended.

Each control or object in this appendix shows the full list of properties, events, and methods. A few notes about the way the information is presented are listed here:

Common Properties, Events, and Methods

Many properties, events, and methods are common to many controls. For example, the BorderStyle property is used in several different controls. In some, it is implemented as an Integer value. Others use the BorderStyleConstants enumeration type.

This section lists many common properties, events, and methods used in Visual Basic. The information here portrays the most commonly used formats. However, some controls may use slightly different implementations. For example, an event may return different arguments, or a method may have a different syntax.

Common Properties

The following list includes properties that are common to several different controls.

*Appearance Integer
BackColor Long
*BorderStyle Integer or BorderStyleConstants Enum
Container Object
DataBindings DataBindings Collection
DataChanged Boolean
DataField String
DragIcon IPictureDisp Object
DragMode Integer
Enabled Boolean
Font StdFont Object or IFontDisp Object
FontBold Boolean
FontItalic Boolean
FontName String
FontSize Single
FontStrikethru Boolean
FontTransparent Boolean
FontUnderline Boolean
ForeColor Long
*hDC Long
Height Single
HelpContextID Long
*hWnd Long
*Index Integer
Left Single
LinkItem String
LinkMode Integer
LinkTopic String
LinkTimeout Integer
MouseIcon IPictureDisp Object
MousePointer Integer
*Name String
*Object Object
OLEDragMode Integer
OLEDropMode Integer
*Parent Form Object or Object
RightToLeft Boolean
ScaleHeight Single
ScaleLeft Single
ScaleMode Integer
ScaleTop Single
ScaleWidth Single
TabIndex Integer
TabStop Boolean
Tag String
ToolTipText String
Top Single
Visible Boolean
WhatsThisHelpID Long
Width Single

Common Events

The following list includes events that are common to several different controls.

Click()

DblClick()

DragDrop(source As Control, x As Single, y As Single)

DragOver(source As Control, x As Single, y As Single, state As Integer)

GotFocus()

KeyDown(keycode As Integer, shift As Integer)

KeyPress(keyascii As Integer)

KeyUp(keycode As Integer, shift As Integer)

LinkClose()

LinkError(linkerr As Integer)

LinkExecute(cmdstr As String, cancel As Integer)

LinkNotify([index As Integer])

LinkOpen(cancel As Integer)

LostFocus()

MouseDown(button As Integer, shift As Integer, x As Single, y As Single)

MouseMove(button As Integer, shift As Integer, x As Single, y As Single)

MouseUp(button As Integer, shift As Integer, x As Single, y As Single)

OLECompleteDrag(effect As Long)

OLEDragDrop(data As DataObject, effect As Long, button As Integer, shift As Integer, x As Single, y As Single)

OLEDragOver(data As DataObject, effect As Long, button As Integer, shift As Integer, x As Single, y As Single, state As Integer)

OLEGiveFeedback(effect As Long, defaultcursors As Boolean)

OLESetData(data As DataObject, dataFormat As Integer)

OLEStartDrag(data As DataObject, allowedeffects As Long)

Common Methods

The following list includes methods that are common to several different controls.

Drag object.Drag(action)
LinkExecute object.LinkExecute(cmdstr, cancel)
LinkPoke object.LinkPoke
LinkRequest object.LinkRequest
LinkSend object.LinkSend
Move object.Move(rows, start)
OLEDrag object.OLEDrag
Refresh object.Refresh
Scale object.Scale(x1, y1)-(x2, y2)
ScaleX object.ScaleX(width, fromscale, toscale)
ScaleY object.ScaleY(height, fromscale, toscale)
SetFocus object.SetFocus
ShowWhatsThis object.ShowWhatsThis
ZOrder object.ZOrder(position)

Animation

Properties

Common Properties: BackColor, Container, DragIcon, DragMode, Enabled, Height, HelpContextID, hWnd, Index, Left, Name, Object, OLEDropMode, Parent, TabIndex, TabStop, Tag, ToolTipText, Top, Visible, WhatsThisHelpID, Width

AutoPlay Boolean
BackStyle Integer
Center Boolean

Events

Common Events: Click, DblClick, DragDrop, DragOver, GotFocus, LostFocus, MouseDown, MouseMove, MouseUp, OLECompleteDrag, OLEDragDrop, OLEGiveFeedback, OLESetData, OLEStartDrag

Methods

Common Methods: Drag, Move, OLEDrag, SetFocus, ShowWhatsThis, ZOrder

Close object.Close
Open object.Open (file)
Play object.Play ([repeatcount], [startframe], [endframe])
Stop object.Stop

CheckBox

Properties

Common Properties: Appearance, BackColor, Container, DataChanged, DataField, DragIcon, DragMode, Enabled, Font, FontBold, FontItalic, FontName, FontSize, FontStrikethru, FontUnderline, ForeColor, Height, HelpContextID, hWnd, Index, Left, MouseIcon, MousePointer, Name, OLEDropMode, Parent, RightToLeft, TabIndex, TabStop, Tag, ToolTipText, Top, Visible, WhatsThisHelpID, Width

*Alignment Integer
Caption String
DisabledPicture IPictureDisp Object
DownPicture IPictureDisp Object
MaskColor Long
Picture IPictureDisp Object
*Style Integer
UseMaskColor Boolean
Value Integer

Events

Common Events: Click, DragDrop, DragOver, GotFocus, KeyDown, KeyPress, KeyUp, LostFocus, MouseDown, MouseMove, MouseUp, OLECompleteDrag, OLEDragDrop, OLEDragOver, OLEGiveFeedback, OLESetData, OLEStartDrag

Methods

Common Methods: Drag, Move, OLEDrag, Refresh, SetFocus, ShowWhatsThis, ZOrder

ComboBox

Properties

Common Properties: Appearance, BackColor, Container, DataChanged, DataField, DragIcon, DragMode, Enabled, Font, FontBold, FontItalic, FontName, FontSize, FontStrikethru, FontUnderline, ForeColor, Height, HelpContextID, hWnd, Index, Left, MouseIcon, MousePointer, Name, OLEDragMode, OLEDropMode, Parent, RightToLeft, TabIndex, TabStop, Tag, ToolTipText, Top, Visible, WhatsThisHelpID, Width

*IntegralHeight Boolean
ItemData Long Array
List String Array
*ListCount Integer
ListIndex Integer
Locked Boolean
*NewIndex Integer
SelLength Long
SelStart Long
SelText String
*Sorted Boolean
*Style Integer
Text String
TopIndex Integer

Events

Common Events: Click, DblClick, DragDrop, DragOver, GotFocus, KeyDown, KeyPress, KeyUp, LostFocus, OLECompleteDrag, OLEDragDrop, OLEDragOver, OLEGiveFeedback, OLESetData, OLEStartDrag

Change()

DropDown()

Scroll()

Methods

Common Methods: Drag, Move, OLEDrag, Refresh, SetFocus, ShowWhatsThis, ZOrder

AddItem object.AddItem(item [, index])
Clear object.Clear
RemoveItem object.RemoveItem(index)

CommandButton

Properties

Common Properties: Appearance, BackColor, Container, DragIcon, DragMode, Enabled, Font, FontBold, FontItalic, FontName, FontSize, FontStrikethru, FontUnderline, Height, HelpContextID, hWnd, Index, Left, MouseIcon, MousePointer, Name, OLEDropMode, Parent, RightToLeft, TabIndex, TabStop, Tag, ToolTipText, Top, Visible, WhatsThisHelpID, Width

Cancel Boolean
Caption String
Default Boolean
DisabledPicture IPictureDisp Object
DownPicture IPictureDisp Object
MaskColor Long
Picture IPictureDisp Object
*Style Integer
UseMaskColor Boolean
Value Boolean

Events

Common Events: Click, DragDrop, DragOver, GotFocus, KeyDown, KeyPress, KeyUp, LostFocus, MouseDown, MouseMove, MouseUp, OLECompleteDrag, OLEDragDrop, OLEDragOver, OLEGiveFeedback, OLESetData, OLEStartDrag

Methods

Common Methods: Drag, Move, OLEDrag, Refresh, SetFocus, ShowWhatsThis, ZOrder

Common Dialog

Properties

Common Properties: FontBold, FontItalic, FontName, FontSize, FontStrikethru, FontUnderline, hDC, Index, Name, Object, Parent, Tag

Action Integer
CancelError Boolean
Color OLE_COLOR
Copies Integer
DefaultExt String
DialogTitle String
FileName String
FileTitle String
Filter String
FilterIndex Integer
Flags Long
HelpCommand Integer
HelpContext Long
HelpFile String
HelpKey String
InitDir String
Max Integer
MaxFileSize Integer
Min Integer
PrinterDefault Boolean
ToPage Integer

Events

No events

Methods

ShowColor object.ShowColor
ShowFont object.ShowFont
ShowHelp object.ShowHelp
ShowOpen object.ShowOpen
ShowPrinter object.ShowPrinter
ShowSave object.ShowSave

Data

Properties

Common Properties: Appearance, BackColor, DragIcon, DragMode, Enabled, Font, FontBold, FontItalic, FontName, FontSize, FontStrikethru, FontUnderline, ForeColor, Height, Index, Left, MouseIcon, MousePointer, Name, OLEDropMode, Parent, RightToLeft, Tag, ToolTipText, Top, Visible, WhatsThisHelpID, Width

Align Integer
BOFAction Integer
Caption String
Connect String
*Database Database Object
DatabaseName String
DefaultCursorType Integer
DefaultType Integer
*EditMode Integer
EOFAction Integer
Exclusive Boolean
Options Integer
ReadOnly Boolean
Recordset Recordset Object
RecordsetType Integer
RecordSource String

Events

Common Events: DragDrop, DragOver, MouseDown, MouseMove, MouseUp, OLECompleteDrag, OLEDragDrop, OLEGiveFeedback, OLESetData, OLEStartDrag, Resize

Error(dataerr As Integer, response As Integer)

Reposition()

Validate(action As Integer, save As Integer)

Methods

Common Methods: Drag, Move, OLEDrag, Refresh, ShowWhatsThis, ZOrder

UpdateControls object.UpdateControls
UpdateRecord object.UpdateRecord

DBCombo

Properties

Common Properties: Appearance, BackColor, Container, DataBindings, DataChanged, DataField, DragIcon, DragMode, Enabled, Font, ForeColor, Height, HelpContextID, hWnd, Index, Left, MouseIcon, MousePointer, Name, Object, OLEDragMode, OLEDropMode, Parent, RightToLeft, TabIndex, TabStop, Tag, Text, ToolTipText, Top, Visible, WhatsThisHelpID, Width

BoundColumn String
BoundText String
IntegralHeight Boolean
ListField String
Locked Boolean
*MatchedWithList Boolean
MatchEntry MatchEntryConstants Enum
RowSource IRowCursor Object
*SelectedItem Variant
SelLength Long
SelStart Long
SelText String
Style StyleConstants Enum
*VisibleCount Integer
*VisibleItems Variant Array

Events

Common Events: Click, DblClick, DragDrop, DragOver, GotFocus, KeyDown, KeyPress, KeyUp, LostFocus, MouseDown, MouseMove, MouseUp, OLECompleteDrag, OLEDragDrop, OLEDragOver, OLEGiveFeedback, OLESetData, OLEStartDrag

Change()

Methods

Common Methods: Drag, Move, OLEDrag, Refresh, SetFocus, ShowWhatsThis, ZOrder

ReFill object.ReFill

DBGrid

Properties

Common Properties: Appearance, BackColor, BorderStyle, Container, DataBindings, DataChanged, DragIcon, DragMode, Enabled, Font, ForeColor, Height, HelpContextID, hWnd, Index, Left, Name, Object, Parent, TabIndex, TabStop, Tag, ToolTipText, Top, Visible, WhatsThisHelpID, Width

AddNewMode enumAddNewModeConstants Enum
Align Integer
AllowAddNew Boolean
AllowArrows Boolean
AllowDelete Boolean
AllowRowSizing Boolean
AllowUpdate Boolean
ApproxCount Long
Bookmark Variant
Caption String
Col Integer
ColumnHeaders Boolean
*Columns Object Array
CurrentCellModified Boolean
CurrentCellVisible Boolean
DataMode enumDataModeConstants Enum
DataSource ICursor Object
DefColWidth Single
EditActive Boolean
ErrorText String
FirstRow Variant
HeadFont IFontDisp Object
HeadLines Single
hWndEditor OLE_HANDLE Object
LeftCol Integer
MarqueeStyle enumMarqueeStyleConstants Enum
MarqueeUnique Boolean
RecordSelectors Boolean
Row Integer
RowDividerStyle enumDividerStyleConstants Enum
RowHeight Single
ScrollBars enumScrollBarConstants Enum
*SelBookmarks Variant Array
SelEndCol Integer
SelLength Long
SelStart Long
SelStartCol Integer
SelText String
Split Integer
Splits Object Array
TabAcrossSplits Boolean
TabAction enumTabActionConstants Enum
Text String
VisibleCols Integer
VisibleRows Integer
WrapCellPointer Boolean

Events

Common Events: Click, DblClick, DragDrop, DragOver, GotFocus, KeyDown, KeyPress, KeyUp, LostFocus, MouseDown, MouseMove, MouseUp

AfterColEdit([index As Integer,] ByVal colindex As Integer)

AfterColUpdate([index As Integer,] colindex As Integer)

AfterDelete([index As Integer,] colindex As Integer)

AfterInsert(index As Integer)

AfterUpdate(index As Integer)

BeforeColEdit([index As Integer,] ByVal colindex As Integer,

ByVal keyascii As Integer, cancel As Integer)

BeforeColUpdate([index As Integer,] colindex As Integer,

oldvalue As Variant, cancel As Integer)

BeforeDelete([index As Integer,] cancel As Integer)

BeforeInsert([index As Integer,] cancel As Integer)

BeforeUpdate([index As Integer,] cancel As Integer)

ButtonClick([index As Integer,] ByVal colindex As Integer)

Change([index As Integer])

ColEdit([index As Integer,] ByVal colindex As Integer)

ColResize([index As Integer,] colindex As Integer,

cancel As Integer)

Error([index As Integer,] ByVal dataerror As Integer,

response As Integer)

HeadClick([index As Integer,] colindex As Integer)

OnAddNew([index As Integer])

RowColChange([index As Integer, lastrow As String,

lastcol As Integer])

RowResize([index As Integer,] cancel As Integer)

Scroll([cancel As Integer])

SelChange([index As Integer,] cancel As Integer)

SplitChange([index As Integer])

UnboundAddData(rowbuf As RowBuffer, newrowbookmark As Variant)

UnboundDeleteRow(bookmark As Variant)

UnboundGetRelativeBookmark([index As Integer,]

startlocation As Variant, ByVal offset As Long,

newlocation As Variant, approximateposition As Long)

UnboundReadData(rowbuf As RowBuffer, startlocation As Variant,

readpriorrows As Boolean)

UnboundWriteData(rowbuf As RowBuffer, writelocation As Variant)

Methods

Common Methods: Drag, Move, Refresh, ZOrder

AboutBox object.AboutBox
CaptureImage object.CaptureImage
ClearFields object.ClearFields
ClearSelCols object.ClearSelCols
ColContaining object.ColContaining (coordinate)
GetBookmark object.GetBookmark (value)
HoldFields object.HoldFields
ReBind object.Rebind
RowBookmark object.RowBookmark (value)
RowContaining object.RowContaining (coordinate)
RowTop object.RowTop (value)
Scroll object.Scroll (colvalue, rowvalue)

DBList

Properties

Common Properties: Appearance, BackColor, Container, DataBindings, DataChanged, DataField, DragIcon, DragMode, Enabled, Font, ForeColor, Height, HelpContextID, hWnd, Index, Left, MouseIcon, MousePointer, Name, Object, OLEDragMode, OLEDropMode, Parent, RightToLeft, TabIndex, TabStop, Tag, ToolTipText, Top, Visible, WhatsThisHelpID, Width

BoundColumn String
BoundText String
IntegralHeight Boolean
ListField String
Locked Boolean
*MatchedWithList Boolean
RowSource IRowCursor Object
*SelectedItems Variant
Text String
*VisibleCount Integer
*VisibleItems Variant Array

Events

Common Events: Click, DblClick, DragDrop, DragOver, GotFocus, KeyDown, KeyPress, KeyUp, LostFocus, MouseDown, MouseMove, MouseUp, OLECompleteDrag, OLEDragDrop, OLEDragOver, OLEGiveFeedback, OLESetData, OLEStartDrag

Methods

Common Methods: Drag, Move, OLEDrag, Refresh, SetFocus, ShowWhatsThis, ZOrder

ReFill object.ReFill

DirListBox

Properties

Common Properties: Appearance, BackColor, Container, DragIcon, DragMode, Enabled, Font, FontBold, FontItalic, FontName, FontSize, FontStrikethru, FontUnderline, ForeColor, Height, HelpContextID, hWnd, Index, Left, MouseIcon, MousePointer, Name, OLEDragMode, OLEDropMode, Parent, TabIndex, TabStop, Tag, ToolTipText, Top, Visible, WhatsThisHelpID, Width

*List String Array
*ListCount Integer
ListIndex Integer
Path String
TopIndex Integer

Events

Common Events: Click, DragDrop, DragOver, GotFocus, KeyDown, KeyPress, KeyUp, LostFocus, MouseDown, MouseMove, MouseUp, OLECompleteDrag, OLEDragDrop, OLEDragOver, OLEGiveFeedback, OLESetData, OLEStartDrag

Change([index As Integer])

Scroll()

Methods

Common Methods: Drag, Move, OLEDrag, Refresh, SetFocus, ShowWhatsThis, ZOrder

DriveListBox

Properties

Common Properties: Appearance, BackColor, Container, DragIcon, DragMode, Enabled, Font, FontBold, FontItalic, FontName, FontSize, FontStrikethru, FontUnderline, ForeColor, Height, HelpContextID, hWnd, Index, Left, MouseIcon, MousePointer, Name, OLEDropMode, Parent, TabIndex, TabStop, Tag, ToolTipText, Top, Visible, WhatsThisHelpID, Width

Drive String
*List String Array
*ListCount Integer
ListIndex Integer
TopIndex Integer

Events

Common Events: DragDrop, DragOver, GotFocus, KeyDown, KeyPress, KeyUp, LostFocus, OLECompleteDrag, OLEDragDrop, OLEDragOver, OLEGiveFeedback, OLESetData, OLEStartDrag

Change([index As Integer)

Scroll()

Methods

Common Methods: Drag, Move, OLEDrag, Refresh, SetFocus, ShowWhatsThis, ZOrder

FileListBox

Properties

Common Properties: Appearance, BackColor, Container, DragIcon, DragMode, Enabled, Font, FontBold, FontItalic, FontName, FontSize, FontStrikethru, FontUnderline, ForeColor, Height, HelpContextID, hWnd, Index, Left, MouseIcon, MousePointer, Name, OLEDragMode, OLEDropMode, Parent, TabIndex, TabStop, Tag, ToolTipText, Top, Visible, WhatsThisHelpID, Width

Archive Boolean
FileName String
Hidden Boolean
*List String Array
*ListCount Integer
ListIndex Integer
*MultiSelect Integer
Normal Boolean
Path String
Pattern String
ReadOnly Boolean
Selected Boolean Array
System Boolean
TopIndex Integer

Events

Common Events: Click, DblClick, DragOver, GotFocus, KeyDown, KeyPress, KeyUp, LostFocus, MouseDown, MouseMove, MouseUp, OLECompleteDrag, OLEDragOver, OLEGiveFeedback, OLESetData, OLEStartDrag

PathChange([index As Integer])

PatternChange([index As Integer])

Scroll()

Methods

Common Methods: Drag, Move, OLEDrag, Refresh, SetFocus, ShowWhatsThis, ZOrder

Form

Properties

Common Properties: Appearance, BackColor, Enabled, Font, FontBold, FontItalic, FontName, FontSize, FontStrikethru, FontTransparent, FontUnderline, ForeColor, hDC, Height, HelpContextID, hWnd, Left, LinkMode, LinkTopic, MouseIcon, MousePointer, Name, OLEDropMode, RightToLeft, ScaleHeight, ScaleLeft, ScaleMode, ScaleTop, ScaleWidth, Tag, Top, Visible, Width

*ActiveControl Control Object
AutoRedraw Boolean
*BorderStyle Integer
Caption String
*ClipControls Boolean
*ControlBox Boolean
*Controls Object
*Count Integer
CurrentX Single
CurrentY Single
DrawMode Integer
DrawStyle Integer
DrawWidth Integer
FillColor Long
FillStyle Integer
Icon IPictureDisp Object
*Image IPictureDisp Object
KeyPreview Boolean
*MaxButton Boolean
*MDIChild Boolean
*MinButton Boolean
*Moveable Boolean
Palette IPictureDisp Object
PaletteMode Integer
Picture IPictureDisp Object
*ShowInTaskbar Boolean
*StartUpPosition Integer
*WhatsThisButton Boolean
*WhatsThisHelp Boolean
WindowState Integer

Events

Common Events: Click, DblClick, DragDrop, DragOver, GotFocus, KeyDown, KeyPress, KeyUp, LinkClose, LinkError, LinkExecute, LinkOpen, LostFocus, MouseDown, MouseMove, MouseUp, OLECompleteDrag, OLEDragDrop, OLEDragOver, OLEGiveFeedback, OLESetData, OLEStartDrag

Activate()

Deactivate()

Initialize()

Load()

Paint()

QueryUnload(cancel As Integer, unloadmode As Integer)

Resize()

Terminate()

Unload(cancel As Integer)

Methods

Common Methods: Move, OLEDrag, Refresh, Scale, ScaleX, ScaleY, SetFocus, ZOrder

Circle object.Circle [Step] (x, y), [color, start, end, aspect]
Cls object.Cls
Hide object.Hide
Line object.Line [Step] (x1, y1) [Step] (x2, y2), [color], [B][F]
PaintPicture object.PaintPicture(picture, x1, y1, width1, height1, x2, y2, width2, height2, opcode)
Point object.Point(x, y)
PopupMenu object.PopupMenu(menuname, flags, x, y, boldcommand)
PrintForm object.PrintForm
PSet object.PSet [Step] (x, y), [color]
Show object.Show(style, ownerform)
TextHeight object.TextHeight(string)
TextWidth object.TextWidth(string)
WhatsThisMode object.WhatsThisMode

Frame

Properties

Common Properties: Appearance, BackColor, BorderStyle, Container, DragIcon, DragMode, Enabled, Font, FontBold, FontItalic, FontName, FontSize, FontStrikethru, FontUnderline, ForeColor, Height, HelpContextID, hWnd, Index, Left, MouseIcon, MousePointer, Name, OLEDropMode, Parent, RightToLeft, TabIndex, Tag, ToolTipText, Top, Visible, WhatsThisHelpID, Width

Caption String
*ClipControls Boolean

Events

Common Events: Click, DblClick, DragOver, MouseDown, MouseUp, OLECompleteDrag, OLEDragDrop, OLEDragOver, OLEGiveFeedback, OLESetData, OLEStartDrag

Methods

Common Methods: Drag, Move, OLEDrag, Refresh, ShowWhatsThis, ZOrder

HScrollBar

Properties

Common Properties: Container, DragIcon, DragMode, Enabled, Height, HelpContextID, hWnd, Index, Left, MouseIcon, MousePointer, Name, Parent, RightToLeft, TabIndex, TabStop, Tag, Top, Visible, WhatsThisHelpID, Width

LargeChange Integer
Max Integer
Min Integer
SmallChange Integer
Value Integer

Events

Common Events: DragDrop, DragOver, GotFocus, KeyDown, KeyPress, KeyUp, LostFocus

Change([index As Integer])

Scroll()

Methods

Common Methods: Drag, Move, Refresh, SetFocus, ShowWhatsThis, ZOrder

Image

Properties

Common Properties: Appearance, BorderStyle, Container, DragIcon, DragMode, Enabled, Height, Index, Left, MouseIcon, MousePointer, Name, OLEDragMode, OLEDropMode, Parent, Tag, ToolTipText, Top, Visible, WhatsThisHelpID, Width

DataChanged Boolean
DataField String
Picture IPictureDisp Object
Stretch Boolean

Events

Common Events: Click, DblClick, DragDrop, DragOver, MouseDown, MouseMove, MouseUp, OLECompleteDrag, OLEDragDrop, OLEDragOver, OLEGiveFeedback, OLESetData, OLEStartDrag

Methods

Common Methods: Drag, Move, OLEDrag, Refresh, ShowWhatsThis, ZOrder

ImageList

Properties

Common Properties: BackColor, Index, Name, Object, Parent, Tag

hImageList OLE_HANDLE Object
ImageHeight Integer
ImageWidth Integer
ListImages ListImages Collection
MaskColor OLE_COLOR Object
UseMaskColor Boolean

Events

No events

Methods

Overlay object.Overlay(key1, key2) As IPictureDisp

Internet Transfer (Inet)

Properties

Common Properties: Index, Name, Object, Parent, Tag

AccessType AccessConstants Enum
Document String
*hInternet Long
Password String
Protocol ProtocolConstants Enum
Proxy String
RemoteHost String
RemotePort Integer
RequestTimeout Long
*ResponseCode Long
*ResponseInfo String
*StillExecuting Boolean
URL String
UserName String

Events

StateChanged(ByVal state As Integer)

Methods

Cancel object.Cancel
Execute object.Execute(url, operation, data, requestheaders)
GetChunk object.GetChunk(size [, datatype])
GetHeader object.GetHeader(hrdname)
OpenURL object.OpenURL(url [, datatype])

Label

Properties

Common Properties: Appearance, BackColor, BorderStyle, Container, DataChanged, DataField, DragIcon, DragMode, Enabled, Font, FontBold, FontItalics, FontName, FontSize, FontStrikethru, FontUnderline, ForeColor, Height, Index, Left, LinkItem, LinkMode, LinkTimeout, LinkTopic, MouseIcon, MousePointer, Name, OLEDropMode, Parent, RightToLeft, TabIndex, Tag, ToolTipText, Top, Visible, WhatsThisHelpID, Width

Alignment Integer
AutoSize Boolean
BackStyle Integer
Caption String
UseMnemonic Boolean
WordWrap Boolean

Events

Common Events: Click, DblClick, DragDrop, DragOver, LinkClose, LinkError, LinkNotify, LinkOpen, MouseDown, MouseMove, MouseUp, OLECompleteDrag, OLEDragDrop, OLEDragOver, OLEGiveFeedback, OLESetData, OLEStartDrag

Change()

Methods

Common Methods: Drag, LinkExecute, LinkPoke, LinkRequest, LinkSend, Move, OLEDrag, Refresh, ShowWhatsThis, ZOrder

Line

Properties

Common Properties: BorderStyle, Container, Index, Name, Parent, Tag, Visible

BorderColor Long
BorderWidth Integer
DrawMode Integer
X1 Single
X2 Single
Y1 Single
Y2 Single

Events

No events

Methods

Common Methods: Refresh, ZOrder

ListBox

Properties

Common Properties: Appearance, BackColor, Container, DataChanged, DataField, DragIcon, DragMode, Enabled, Font, FontBold, FontItalic, FontName, FontSize, FontStrikethru, FontUnderline, ForeColor, Height, HelpContextID, hWnd, Index, Left, MouseIcon, MousePointer, Name, OLEDragMode, Parent, RightToLeft, TabIndex, TabStop, Tag, ToolTipText, Top, Visible, WhatsThisHelpID, Width

Columns Integer
*IntegralHeight Boolean
ItemData Long Array
List String Array
*ListCount Integer
ListIndex Integer
*MultiSelect Integer
*NewIndex Integer
*SelCount Integer
Selected Boolean Array
*Sorted Boolean
*Style Integer
Text String
TopIndex Integer

Events

Common Events: Click, DblClick, DragDrop, DragOver, GotFocus, KeyDown, KeyPress, KeyUp, LostFocus, MouseDown, MouseMove, MouseUp, OLECompleteDrag, OLEDragDrop, OLEDragOver, OLEGiveFeedback, OLESetData, OLEStartDrag

ItemCheck(item As Integer)

Scroll()

Methods

Common Methods: Drag, Move, OLEDrag, Refresh, SetFocus, ShowWhatsThis, ZOrder

AddItem object.AddItem(item [, index])
Clear object.Clear
RemoveItem object.RemoveItem(index)

ListView

Properties

Common Properties: Appearance, BackColor, BorderStyle, Container, DragIcon, DragMode, Enabled, Font, ForeColor, Height, HelpContextID, hWnd, Index, Left, MouseIcon, MousePointer, Name, Object, OLEDragMode, OLEDropMode, Parent, TabIndex, TabStop, Tag, ToolTipText, Top, Visible, WhatsThisHelpID, Width

Arrange ListArrangeConstants
ColumnHeaders ColumnHeaders Collection
DropHighlight ListItem Object
HideColumnHeader Boolean
HideSelection Boolean
Icons Object
LabelEdit ListLabelEditConstants
LabelWrap Boolean
ListItems ListItems Collection
MultiSelect Boolean
SelectedItem ListItem Object
SmallIcons Object
Sorted Boolean
SortKey Integer
SortOrder ListSortOrderConstants
View ListViewConstants

Events

Common Events: Click, DblClick, DragDrop, DragOver, GotFocus, KeyDown, KeyPress, KeyUp, LostFocus, MouseDown, MouseMove, MouseUp, OLECompleteDrag, OLEDragDrop, OLEDragOver, OLEGiveFeedback, OLESetData, OLEStartDrag

AfterLabelEdit(cancel As Integer, newstring As String)

BeforeLabelEdit(cancel As Integer)

ColumnClick(colheader As ColumnHeader)

ItemClick(item As ListItem)

Methods

Common Methods: Drag, Move, OLEDrag, Refresh, SetFocus, ShowWhatsThis, ZOrder

FindItem object.FindItem (string, [value], [index], [match]) As ListItem
GetFirstVisible object.GetFirstVisible() As ListItem
HitTest object.HitTest (x, y) As ListItem
StartLabelEdit object.StartLabelEdit

MAPIMessages

Properties

Common Properties: Index, Name, Object, Parent, Tag

Action Integer
AddressCaption String
AddressEditFieldCount Integer
AddressLabel String
AddressModifiable Boolean
AddressResolveUI Boolean
AttachmentCount Long
AttachmentIndex Long
AttachmentName String
AttachmentPathName String
AttachmentPosition Long
AttachmentType Integer
FetchMsgType String
FetchSorted Boolean
FetchUnreadOnly Boolean
MsgConversationID String
MsgCount Long
MsgDateReceived String
MsgID String
MsgIndex Long
MsgNoteText String
MsgOrigAddress String
MsgOrigDisplayName String
MsgRead Boolean
MsgReceiptRequested Boolean
MsgSent Boolean
MsgSubject String
MsgType String
RecipAddress String
RecipCount Long
RecipDisplayName String
RecipIndex Long
RecipType Integer
SessionID Long

Events

No events

Methods

Compose object.Compose
Copy object.Copy
Delete object.Delete ([value])
Fetch object.Fetch
Forward object.Forward
Reply object.Reply
ReplyAll object.ReplyAll
ResolveName object.ResolveName
Save object.Save
Send object.Send ([value])
Show object.Show ([value])

MAPISession

Properties

Common Properties: Index, Name, Object, Parent, Tag

Action Integer
DownloadMail Boolean
LogonUI Boolean
NewSession Boolean
Password String
SessionID Long
UserName String

Events

No events

Methods

SignOff object.SignOff
SignOn object.SignOn

Masked Edit (MaskEdBox)

Properties

Common Properties: Appearance, BackColor, BorderStyle, Container, DataBindings, DataChanged, DataField, DragIcon, DragMode, Enabled, Font, ForeColor, Height, HelpContextID, hWnd, Index, Left, MouseIcon, MousePointer, Name, Object, OLEDragMode, OLEDropMode, Parent, TabIndex, TabStop, Tag, ToolTipText, Top, Visible, WhatsThisHelpID, Width

AllowPrompt Boolean
AutoTab Boolean
ClipMode ClipModeConstants
ClipText String
Format String
FormattedText String
Mask String
MaxLength Integer
PromptChar String
PromptInclude Boolean
SelLength Long
SelStart Long
SelText Long
Text String

Events

Common Events: DragDrop, GotFocus, KeyDown, KeyPress, KeyUp, LostFocus, OLECompleteDrag, OLEDragDrop, OLEDragOver, OLEGiveFeedback, OLESetData, OLEStartDrag

Change()

ValidationError(invalidtext As String, startpos As Integer)

Methods

Common Methods: Drag, Move, OLEDrag, Refresh, SetFocus, ShowWhatsThis, ZOrder

MDIForm

Properties

Common Properties: Appearance, BackColor, Enabled, Height, HelpContextID, hWnd, Left, LinkMode, LinkTopic, MouseIcon, MousePointer, Name, OLEDropMode, RightToLeft, ScaleHeight, ScaleWidth, Tag, Top, Visible, Width

*ActiveControl Control Object
*ActiveForm Object
AutoShowChildren Boolean
Caption String
*Controls Object Collection
*Count Integer
Icon IPictureDisp Object
*Moveable Boolean
Picture IPictureDisp Object
*ScrollBars Boolean
StartUpPosition Integer
*WhatsThisHelp Boolean
WindowState Integer

Events

Common Events: Click, DblClick, DragDrop, DragOver, LinkClose, LinkError, LinkExecute, LinkOpen, MouseDown, MouseMove, MouseUp, OLECompleteDrag, OLEDragDrop, OLEDragOver, OLEGiveFeedback, OLESetData, OLEStartDrag

Activate()

Deactivate()

Initialize()

Load()

QueryUnload(cancel As Integer, unloadmode As Integer)

Resize()

Terminate()

Unload(cancel As Integer)

Methods

Common Methods: Move, OLEDrag, SetFocus, ZOrder

Arrange object.Arrange(arrangement)
Hide object.Hide
PopupMenu object.PopupMenu(menu, [flags], [x], [y], [defaultmenu])
Show object.Show([modal], [ownerform])
WhatsThisMode object.WhatsThisMode

Microsoft Tabbed Dialog (SSTab)

Properties

Common Properties: BackColor, Container, DataBindings, DragIcon, DragMode, Enabled, Font, ForeColor, Height, HelpContextID, hWnd, Index, Left, MouseIcon, MousePointer, Name, Object, OLEDropMode, Parent, TabIndex, TabStop, Tag, ToolTipText, Top, Visible, WhatsThisHelpID, Width

Caption String
Rows Integer
ShowFocusRect Boolean
Style StyleConstants
Tab Integer
TabCaption String Array
TabEnabled Boolean Array
TabHeight Single
TabMaxWidth Single
TabOrientation TabOrientationConstants
TabPicture IPictureDisp Array
Tabs Integer
TabsPerRow Integer
TabVisible Boolean Array
WordWrap Boolean

Events

Common Events: Click, DblClick, DragDrop, DragOver, GotFocus, KeyDown, KeyPress, KeyUp, LostFocus, MouseDown, MouseMove, MouseUp, OLECompleteDrag, OLEDragDrop, OLEDragOver, OLEGiveFeedback, OLESetData, OLEStartDrag

Methods

Common Methods: Drag, Move, OLEDrag, SetFocus, ShowWhatsThis, ZOrder

MSChart

Properties

Common Properties: BorderStyle, Container, DataBindings, DragIcon, DragMode, Enabled, Height, HelpContextID, hWnd, Index, Left, Name, MousePointer, Object, Parent, TabIndex, TabStop, Tag, ToolTipText, Top, Visible, WhatsThisHelpID, Width

*ActiveSeriesCount Integer
AllowDithering Boolean
AllowDynamicRotation Boolean
AllowSelections Boolean
AllowSeriesSelection Boolean
AutoIncrement Boolean
*BackDrop Backdrop Object
BorderStyle VtBorderStyle Enum
*Chart3d Boolean
ChartData Variant
ChartType VtChChartType Enum
Column Integer
ColumnCount Integer
ColumnLabel String
ColumnLabelCount Integer
ColumnLabelIndex Integer
Data String
*DataGrid DataGrid Object
DoSetCursor Boolean
DrawMode VtChDrawMode Enum
*Footnote Footnote Object
FootnoteText String
*Legend Legend Object
*Plot Plot Object
RandomFill Boolean
Repaint Boolean
Row Integer
RowCount Integer
RowLabel String
RowLabelCount Integer
RowLabelIndex Integer
SeriesColumn Integer
SeriesType VtChSeriesType Enum
ShowLegend Boolean
Stacking Boolean
TextLengthType VtTextLengthType Enum
*Title Title Object
TitleText String

Events

Common Events: Click, DblClick, DragDrop, DragOver, GotFocus, KeyDown, KeyPress, KeyUp, LostFocus, MouseDown, MouseMove, MouseUp

AxisActivated(axisid As Integer, axisindex As Integer, mouseflag As Integer, cancel As Integer)

AxisLabelActivated(axisid As Integer, axisindex As Integer, labelsetindex As Integer, labelindex As Integer, mouseflag As Integer, cancel As Integer)

AxisLabelSelected(axisid As Integer, axisindex As Integer, labelsetindex As Integer, labelindex As Integer, mouseflag As Integer, cancel As Integer)

AxisLabelUpdated(axisid As Integer, axisindex As Integer, labelsetindex As Integer, labelindex As Integer, updateflags As Integer)

AxisSelected(axisid As Integer, axisindex As Integer, mouseflag As Integer, cancel As Integer)

AxisTitleActivated(axisid As Integer, axisindex As Integer, mouseflag As Integer, cancel As Integer)

AxisTitleSelected(axisid As Integer, axisindex As Integer, mouseflag As Integer, cancel As Integer)

AxisTitleUpdated(axisid As Integer, axisindex As Integer, updateflags As Integer)

AxisUpdated(axisid As Integer, axisindex As Integer, updateflags As Integer)

ChartActivated(mouseflag As Integer, cancel As Integer)

ChartSelected(mouseflag As Integer, cancel As Integer)

ChartUpdated(updateflags As Integer)

DataUpdated(row As Integer, column As Integer, labelrow As Integer, labelcolumn As Integer, labelsetindex As Integer, updateflags As Integer)

DonePainting()

FootnoteActivated(mouseflag As Integer, cancel As Integer)

FootnoteSelected(mouseflag As Integer, cancel As Integer)

FootnoteUpdated(updateflags As Integer)

LegendActivated(mouseflag As Integer, cancel As Integer)

LegendSelected(mouseflag As Integer, cancel As Integer)

LegendUpdated(updateflags As Integer)

PlotActivated(mouseflag As Integer, cancel As Integer)

PlotSelected(mouseflag As Integer, cancel As Integer)

PlotUpdated(updateflags As Integer)

PointActivated(series As Integer, datapoint As Integer, mouseflag As Integer, cancel As Integer)

PointLabelActivated(series As Integer, datapoint As Integer, mouseflag As Integer, cancel As Integer)

PointLabelSelected(series As Integer, datapoint As Integer, mouseflag As Integer, cancel As Integer)

PointLabelUpdated(series As Integer, datapoint As Integer, updateflags As Integer)

PointSelected(series As Integer, datapoint As Integer, mouseflag As Integer, cancel As Integer)

PointUpdated(series As Integer, datapoint As Integer, updateflags As Integer)

SeriesActivated(series As Integer, mouseflag As Integer, cancel As Integer)

SeriesSelected(series As Integer, mouseflag As Integer, cancel As Integer)

SeriesUpdated(series As Integer, updateflags As Integer)

TitleActivated(mouseflag As Integer, cancel As Integer)

TitleSelected(mouseflag As Integer, cancel As Integer)

TitleUpdated(updateflags As Integer)

Methods

Common Methods: Drag, Move, Refresh, SetFocus, ShowWhatsThis, ZOrder

AboutBox object.AboutBox
EditCopy object.EditCopy
EditPaste object.EditPaste
GetSelectedPart object.GetSelectedPart (part, index1, index2, index3, index4)
Layout object.Layout
SelectPart object.SelectPart (part, index1, index2, index3, index4)
ToDefaults object.ToDefaults
TwipsToChartPart object.TwipsToChartPart (xval, yval, part, index1, index2, index3, index4)

MSComm

Properties

Common Properties: Index, Name, Object, Parent, Tag

Break Boolean
CDHolding Boolean
CommEvent Integer
CommID Long
CommPort Integer
CTSHolding Boolean
DSRHolding Boolean
DTREnable Boolean
EOFEnable Boolean
Handshaking HandshakeConstants Enum
InBufferCount Integer
InBufferSize Integer
Input Variant
InputLen Integer
InputMode InputModeConstants Enum
NullDiscard Boolean
OutBufferCount Integer
OutBufferSize Integer
Output Variant
ParityReplace String
PortOpen Boolean
RThreshold Integer
RTSEnable Boolean
Settings String
SThreshold Integer

Events

OnComm()

Methods

No methods

MSFlexGrid

Properties

Common Properties: Appearance, BackColor, BorderStyle, Container, DataBindings, DragIcon, DragMode, Enabled, Font, ForeColor, Height, HelpContextID, hWnd, Index, Left, MouseIcon, MousePointer, Name, Object, OLEDropMode, Parent, RightToLeft, TabIndex, TabStop, Tag, ToolTipText, Top, Visible, WhatsThisHelpID, Width

AllowBigSelection Boolean
AllowUserResizing AllowUserResizingSettings Enum
BackColorBkg OLE_COLOR Object
BackColorFixed OLE_COLOR Object
BackColorSel OLE_COLOR Object
CellAlignment Integer
CellBackColor OLE_COLOR Object
CellFontBold Boolean
CellFontItalic Boolean
CellFontName String
CellFontSize Single
CellFontStrikeThrough Boolean
CellFontUnderline Boolean
CellFontWidth Single
CellForeColor OLE_COLOR Object
*CellHeight Long
*CellLeft Long
CellPicture IPictureDisp Object
CellPictureAlignment Integer
CellTextStyle TextStyleSettings Enum
*CellTop Long
*CellWidth Long
Clip String
Col Long
ColAlignment Integer Array
ColData Long Array
ColIsVisible Boolean Array
ColPos Long Array
ColPosition Long Array
Cols Long
ColSel Long
ColWidth Long Array
DataSource IRowCursor Object
FillStyle FillStyleSettings Enum
FixedAlignment Integer Array
FixedCols Long
FixedRows Long
FocusRect FocusRectSettings Enum
FontWidth Single
ForeColorFixed OLE_COLOR Object
ForeColorSel OLE_COLOR Object
FormatString String
GridColor OLE_COLOR Object
GridColorFixed OLE_COLOR Object
GridLines GridLineSettings Enum
GridLinesFixed GridLineSettings Enum
GridLineWidth Integer
HighLight HighLightSettings Enum
LeftCol Long
MergeCells MergeCellsSettings Enum
MergeCol Boolean Array
MergeRow Boolean Array
*MouseCol Long
*MouseRow Long
*Picture IPictureDisp Object
PictureType PictureTypeSettings Enum
Redraw Boolean
Row Long
RowData Long Array
RowHeight Long Array
RowHeightMin Long
*RowIsVisible Boolean Array
*RowPos Long Array
RowPosition Long Array
Rows Long
RowSel Long
ScrollBars ScrollBarsSettings Enum
ScrollTrack Boolean
SelectionMode SelectionModeSettings Enum
Sort Integer
Text String
TextArray String Array
TextMatrix String Array
TextStyle TextStyleSettings Enum
TextStyleFixed TextStyleSettings Enum
TopRow Long
*Version Integer
WordWrap Boolean

Events

Common Events: Click, DblClick, DragDrop, DragOver, GotFocus, KeyDown, KeyPress, KeyUp, LostFocus, MouseDown, MouseMove, MouseUp, OLECompleteDrag, OLEDragDrop, OLEDragOver, OLEGiveFeedback, OLESetData, OLEStartDrag

Compare(row1 As Integer, row2 As Integer, cmp As Integer)

EnterCell()

LeaveCell()

RowColChange()

Scroll()

SelChange()

Methods

Common Methods: Drag, Move, OLEDrag, Refresh, SetFocus, ShowWhatsThis, ZOrder

AddItem object.AddItem (item, [index])
Clear object.Clear
RemoveItem object.RemoveItem (index)

MSRDC (Remote Data Control)

Properties

Common Properties: Appearance, BackColor, Container, DragIcon, DragMode, Enabled, Font, ForeColor, Height, Index, Left, Name, Parent, Tag, ToolTipText, Top, Visible, WhatsThisHelpID, Width

Align Integer
*BatchCollisionCount Long
*BatchCollisionRows Variant
BatchSize Long
BOFAction BOFActionConstants Enum
Caption String
Connect String
Connection rdoConnection Object
CursorDriver CursorDriverConstants Enum
DataSourceName String
EditMode Integer
Environment rdoEnvironment Object
EOFAction EOFActionConstants Enum
ErrorThreshold Long
KeysetSize Long
LockType LockTypeConstants Enum
LoginTimeout Long
LogMessages String
MaxRows Long
*Object Object
Options Integer
Password String
Prompt PromptConstants Enum
QueryTimeout Long
ReadOnly Boolean
Resultset rdoResultSet Object
ResultsetType ResultsetTypeConstants Enum
RowsetSize Long
SQL String
UpdateCriteria Integer
UpdateOperation Integer
UserName String
*Version String

Events

Common Events: DragDrop, DragOver, MouseDown, MouseMove, MouseUp

Error(number As Long, description As String, scode As Long, source As String, helpfile As String, helpcontext As Long, canceldisplay As Boolean)

QueryCompleted()

Reposition()

Validate(action As Integer, reserved As Integer)

Methods

Common Methods: Drag, Move, Refresh, ShowWhatsThis, ZOrder

BeginTrans object.BeginTrans
Cancel object.Cancel
CommitTrans object.CommitTrans
RollbackTrans object.RollbackTrans
UpdateControls object.UpdateControls
UpdateRow object.UpdateRow

Multimedia MCI

Properties

Common Properties: BorderStyle, Container, DataBindings, DragIcon, DragMode, Enabled, Height, HelpContextID, hWnd, Index, Left, MouseIcon, MousePointer, Name, Object, OLEDropMode, Parent, TabIndex, TabStop, Tag, ToolTipText, Top, Visible, WhatsThisHelpID, Width

AutoEnable Boolean
BackEnabled Boolean
BackVisible Boolean
CanEject Boolean
CanPlay Boolean
CanRecord Boolean
CanStep Boolean
Command String
DeviceID Integer
DeviceType String
EjectEnabled Boolean
EjectVisible Boolean
Error Integer
ErrorMessage String
FileName String
Frames Long
From Long
hWndDisplay Long
Length Long
Mode Long
NextEnabled Boolean
NextVisible Boolean
Notify Boolean
NotifyMessage String
NotifyValue Integer
Orientation OrientationConstants Enum
PauseEnabled Boolean
PauseVisible Boolean
PlayEnabled Boolean
PlayVisible Boolean
Position Long
PrevEnabled Boolean
PrevVisible Boolean
RecordEnabled Boolean
RecordMode RecordModeConstants Enum
RecordVisible Boolean
Shareable Boolean
Silent Boolean
Start Long
StepEnabled Boolean
StepVisible Boolean
StopEnabled Boolean
StopVisible Boolean
TimeFormat Long
To Long
Track Long
TrackLength Long
TrackPosition Long
Tracks Long
UpdateInterval Integer
UsesWindows Boolean
Wait Boolean

Events

Common Events: DragDrop, DragOver, GotFocus, LostFocus, OLECompleteDrag, OLEDragOver, OLEGiveFeedback, OLESetData, OLEStartDrag

BackClick(cancel As Integer)

BackCompleted(errcode As Long)

BackGotFocus()

BackLostFocus()

Done(notifycode As Integer)

EjectClick(cancel As Integer)

EjectCompleted(errcode As Long)

EjectGotFocus()

EjectLostFocus()

NextClick(cancel As Integer)

NextCompleted(errcode As Long)

NextGotFocus()

NextLostFocus()

PauseClick(cancel As Integer)

PauseCompleted(errcode As Long)

PauseGotFocus()

PauseLostFocus()

PlayClick(cancel As Integer)

PlayCompleted(errcode As Long)

PlayGotFocus()

PlayLostFocus()

PrevClick(cancel As Integer)

PrevCompleted(errcode As Long)

PrevGotFocus()

PrevLostFocus()

RecordClick(cancel As Integer)

RecordCompleted(errcode As Long)

RecordGotFocus()

RecordLostFocus()

StatusUpdate()

StepClick(cancel As Integer)

StepCompleted(errcode As Long)

StepGotFocus()

StepLostFocus()

StopClick(cancel As Integer)

StopCompleted(errcode As Long)

StopGotFocus()

StopLostFocus()

Methods

Common Methods: Drag, Move, OLEDrag, Refresh, SetFocus, ShowWhatsThis, ZOrder

OLE

Properties

Common Properties: Appearance, BackColor, BorderStyle, Container, DragIcon, DragMode, Enabled, Height, HelpContextID, hWnd, Index, Left, MouseIcon, MousePointer, Name, Object, TabIndex, TabStop, Tag, Top, Visible, WhatsThisHelpID, Width

Action Integer
AppIsRunning Boolean
AutoActivate Integer
AutoVerbMenu Boolean
BackStyle Integer
Class String
Data Long
DataChanged Boolean
DataField String
DataText String
DisplayType Integer
FileNumber Integer
Format String
HostName String
*LpOleObject Long
MiscFlags Integer
*ObjectAcceptFormats String Array
*ObjectAcceptFormatsCount Integer
*ObjectGetFormats String Array
*ObjectGetFormatsCount Integer
*ObjectVerbFlags Long Array
*ObjectVerbs String Array
*ObjectVerbsCount Integer
OLEDropAllowed Boolean
*OLEType Integer
OLETypeAllowed Integer
*PasteOK Boolean
*Picture IPictureDisp Object
SizeMode Integer
SourceDoc String
SourceItem String
UpdateOptions Integer
Verb Integer

Events

Common Events: Click, DblClick, DragDrop, DragOver, GotFocus, KeyDown, KeyPress, KeyUp, LostFocus, MouseDown, MouseMove, MouseUp

ObjectMove(left As Single, top As Single, width As Single, height As Single)

Resize(newheight As Single, newwidth As Single)

Updated(code As Integer)

Methods

Common Methods: Drag, Move, Refresh, SetFocus, ShowWhatsThis, ZOrder

Close object.Close()
Copy object.Copy()
CreateEmbed object.CreateEmbed(sourcedoc, [class])
CreateLink object.CreateLink(sourcedoc, [sourceitem])
Delete object.Delete()
DoVerb object.DoVerb([verb])
FetchVerbs object.FetchVerbs()
InsertObjDlg object.InsertObjDlg()
Paste object.Paste()
PasteSpecialDlg object.PasteSpecialDlg()
ReadFromFile object.ReadFromFile(filenum)
SaveToFile object.SaveToFile(filenum)
SaveToOle1File object.SaveToOle1File(filenum)
Update object.Update()

OptionButton

Properties

Common Properties: Appearance, BackColor, Container, DragIcon, DragMode, Enabled, Font, FontBold, FontItalic, FontName, FontSize, FontStrikethru, FontUnderline, ForeColor, Height, HelpContextID, hWnd, Index, Left, MouseIcon, MousePointer, Name, Parent, RightToLeft, TabIndex, TabStop, Tag, ToolTipText, Top, Visible, WhatsThisHelpID, Width

*Alignment Integer
Caption String
DisabledPicture IPictureDisp Object
DownPicture IPictureDisp Object
MaskColor Long
Picture IPictureDisp Object
*Style Integer
UseMaskColor Boolean
Value Boolean

Events

Common Events: Click, DblClick, DragDrop, DragOver, GotFocus, KeyDown, KeyPress, KeyUp, LostFocus, MouseDown, MouseMove, MouseUp, OLECompleteDrag, OLEDragDrop, OLEDragOver, OLEGiveFeedback, OLESetData, OLEStartDrag

Methods

Common Methods: Drag, Move, OLEDrag, Refresh, SetFocus, ShowWhatsThis, ZOrder

PictureBox

Properties

Common Properties: Appearance, BackColor, BorderStyle, Container, DataChanged, DataField, DragIcon, DragMode, Enabled, Font, FontBold, FontItalic, FontName, FontSize, FontStrikethru, FontTransparent, FontUnderline, ForeColor, hDC, Height, HelpContextID, hWnd, Index, Left, LinkItem, LinkMode, LinkTimeout, LinkTopic, MouseIcon, MousePointer, Name, OLEDragMode, OLEDropMode, Parent, RightToLeft, ScaleHeight, ScaleLeft, ScaleMode, ScaleTop, ScaleWidth, TabIndex, TabStop, Tag, ToolTipText, Top, Visible, WhatsThisHelpID, Width

Align Integer
AutoRedraw Boolean
AutoSize Boolean
*ClipControls Boolean
CurrentX Single
CurrentY Single
DrawMode Integer
DrawStyle Integer
DrawWidth Integer
FillColor Long
FillStyle Integer
*Image IPictureDisp Object
Picture IPictureDisp Object

Events

Common Events: Click, DblClick, DragDrop, DragOver, GotFocus, KeyDown, KeyPress, KeyUp, LinkClose, LinkError, LinkNotify, LinkOpen, LostFocus, MouseDown, MouseMove, MouseUp, OLECompleteDrag, OLEDragDrop, OLEDragOver, OLEGiveFeedback, OLESetData, OLEStartDrag

Change()

Paint()

Resize()

Methods

Common Methods: Drag, LinkExecute, LinkPoke, LinkRequest, LinkSend, Move, OLEDrag, Refresh, Scale, ScaleX, ScaleY, SetFocus, ShowWhatsThis, ZOrder

Circle object.Circle(step, x, y, radius, color, start, end, aspect)
Cls object.Cls
Line object.Line(flags, x1, y1, x2, y2, color)
PaintPicture object.PaintPicture(picture, x1, y1, [width1], [height1], [x2], [y2], [width2], [height2], [opcode])
Point object.Point(x, y) As Long
PSet object.PSet(step, x, y, color)
TextHeight object.TextHeight(str) As Single
TextWidth object.TextWidth(str) As Single

PictureClip

Properties

Common Properties: Height, hWnd, Index, Name, Object, Parent, Tag, Width

CellHeight Integer
CellWidth Integer
Clip IPictureDisp Object
ClipHeight Integer
ClipWidth Integer
ClipX Integer
ClipY Integer
Cols Integer
GraphicCell IPictureDisp Object Array
Picture IPictureDisp Object
Rows Integer
StretchX Integer
StretchY Integer

Events

No events

Methods

No methods

Printer

Properties

Common Properties: Font, FontBold, FontItalic, FontName, FontSize, FontStrikethru, FontTransparent, FontUnderline, ForeColor, hDC, Height, RightToLeft, ScaleHeight, ScaleLeft, ScaleMode, ScaleTop, ScaleWidth, Width

ColorMode Integer
Copies Integer
CurrentX Single
CurrentY Single
*DeviceName String
DrawMode Integer
DrawStyle Integer
DrawWidth Integer
*DriverName String
Duplex Integer
FillColor Long
FillStyle Integer
*FontCount Integer
*Fonts String Array
Orientation Integer
*Page Integer
PaperBin Integer
PaperSize Integer
*Port String
PrintQuality Integer
TrackDefault Boolean
*TwipsPerPixelX Single
*TwipsPerPixelY Single
Zoom Long

Events

No events

Methods

Common Methods: Scale, ScaleX, ScaleY

Circle object.Circle(step, x, y, radius, color, start, end, aspect)
EndDoc object.EndDoc
KillDoc object.KillDoc
Line object.Line(flags, x1, y1, x2, y2, color)
NewPage object.NewPage
PaintPicture object.PaintPicture(picture, x1, y1, [width1], [height1], [x2], [y2], [width2], [height2], [opcode])
PSet object.PSet(step, x, y, color)
TextHeight object.TextHeight(str) As Single
TextWidth object.TextWidth(str) As Single

ProgressBar

Properties

Common Properties: Appearance, BorderStyle, Container, DragIcon, DragMode, Enabled, Height, hWnd, Index, Left, MouseIcon, MousePointer, Name, Object, OLEDropMode, Parent, TabIndex, Tag, ToolTipText, Top, Visible, WhatsThisHelpID, Width

Align Integer
Max Single
Min Single
Value Single

Events

Common Events: Click, DragDrop, DragOver, MouseDown, MouseMove, MouseUp, OLECompleteDrag, OLEDragDrop, OLEDragOver, OLEGiveFeedback, OLESetData, OLEStartDrag

Methods

Common Methods: Drag, Move, OLEDrag, ShowWhatsThis, ZOrder

Property Page

Properties

Common Properties: Appearance, BackColor, Font, FontBold, FontItalic, FontName, FontSize, FontStrikethru, FontTransparent, FontUnderline, ForeColor, hDC, Height, HelpContextID, hWnd, MouseIcon, MousePointer, Name, OLEDropMode, RightToLeft, ScaleHeight, ScaleLeft, ScaleMode, ScaleTop, ScaleWidth, Tag, Width

*ActiveControl Control Object
AutoRedraw Boolean
Caption String
Changed Boolean
*ClipControls Boolean
*Controls Object Collection
*Count Integer
CurrentX Single
CurrentY Single
DrawMode Integer
DrawStyle Integer
DrawWidth Integer
FillColor Long
FillStyle Integer
*Image IPictureDisp Object
KeyPreview Boolean
Palette IPictureDisp Object
PaletteMode Integer
Picture IPictureDisp Object
*SelectedControls SelectedControls Collection

Events

Common Events: Click, DblClick, DragDrop, DragOver, GotFocus, KeyDown, KeyPress, KeyUp, LostFocus, MouseDown, MouseMove, MouseUp, OLECompleteDrag, OLEDragDrop, OLEDragOver, OLEGiveFeedback, OLESetData, OLEStartDrag

ApplyChanges()

EditProperty(propertyname As String)

Initialize()

Paint()

SelectionChanged()

Terminate()

Methods

Common Methods: OLEDrag, Refresh, Scale, ScaleX, ScaleY, SetFocus

Circle object.Circle(step, x, y, radius, color, start, end, aspect)
Cls object.Cls
Line object.Line(flags, x1, y1, x2, y2, color)
PaintPicture object.PaintPicture(picture, x1, y1, [width1], [height1], [x2], [y2], [width2], [height2], [opcode])
Point object.Point(x, y) As Long
PopupMenu object.PopupMenu(menu, [flags], [x], [y], [defaultmenu])
PSet object.PSet(step, x, y, color)
TextHeight object.TextHeight(str) As Single
TextWidth object.TextWidth(str) As Single

RichTextBox

Properties

Common Properties: Appearance, BackColor, BorderStyle, Container, DataBindings, DataChanged, DataField, DragIcon, DragMode, Enabled, Font, Height, HelpContextID, hWnd, Index, Left, MouseIcon, MousePointer, Name, Object, OLEDragMode, OLEDropMode, Parent, TabIndex, TabStop, Tag, ToolTipText, Top, Visible, WhatsThisHelpID, Width

AutoVerbMenu Boolean
BulletIndent Single
DisableNoScroll Boolean
FileName String
HideSelection Boolean
Locked Boolean
MaxLength Long
MultiLine Boolean
*OLEObjects OLEObjects Collection
RightMargin Single
ScrollBars ScrollBarsConstants Enum
SelAlignment Variant
SelBold Variant
SelBullet Variant
SelCharOffset Variant
SelColor Variant
SelFontName Variant
SelFontSize Variant
SelHangingIndent Variant
SelIndent Variant
SelItalic Variant
SelLength Long
SelProtected Variant
SelRightIndent Variant
SelRTF String
SelStart Long
SelStrikethru Variant
SelTabCount Variant
SelTabs Variant Array
SelText String
SelUnderline Variant
Text String
TextRTF String

Events

Common Events: Click, DblClick, DragDrop, DragOver, GotFocus, KeyDown, KeyPress, KeyUp, LostFocus, MouseDown, MouseMove, MouseUp, OLECompleteDrag, OLEDragDrop, OLEDragOver, OLEGiveFeedback, OLESetData, OLEStartDrag

Change()

SelChange()

Methods

Common Methods: Drag, Move, OLEDrag, Refresh, SetFocus, ShowWhatsThis, ZOrder

Find object.Find(string, [start], [end], [options])
GetLineFromChar object.GetLineFromChar(charpos)
LoadFile object.LoadFile(pathname, [flags])
SaveFile object.SaveFile(pathname, [flags])
SelPrint object.SelPrint(hdc)
Span object.Span(characterset, [forward], [negate])
UpTo object.UpTo(characterset, [forward], [negate])

Screen

Properties

Common Properties: Height, MouseIcon, MousePointer, Width

*ActiveControl Control Object
*ActiveForm Form Object
*FontCount Integer
*Fonts String Array
*TwipsPerPixelX Single
*TwipsPerPixelY Single

Events

No events

Methods

No methods

Shape

Properties

Common Properties: BackColor, BorderStyle, Container, Height, Index, Left, Name, Parent, Tag, Top, Visible, Width

BackStyle Integer
BorderColor Long
BorderWidth Integer
DrawMode Integer
FillColor Long
FillStyle Integer
Shape Integer

Events

No events

Methods

Common Methods: Move, Refresh, ZOrder

Slider

Properties

Common Properties: BorderStyle, Container, DataBindings, DragIcon, DragMode, Enabled, Height, HelpContextID, hWnd, Index, Left, MouseIcon, MousePointer, Name, Object, OLEDropMode, Parent, TabIndex, TabStop, Tag, ToolTipText, Top, Visible, WhatsThisHelpID, Width

*GetNumTicks Long
LargeChange Long
Max Long
Min Long
Orientation OrientationConstants Enum
SelectRange Boolean
SelLength Long
SelStart Long
SmallChange Long
TickFrequency Long
TickStyle TickStyleConstants Enum
Value Long

Events

Common Events: Click, DragDrop, DragOver, GotFocus, KeyDown, KeyPress, KeyUp, LostFocus, MouseDown, MouseMove, MouseUp, OLECompleteDrag, OLEDragDrop, OLEDragOver, OLEGiveFeedback, OLESetData, OLEStartDrag

Change()

Scroll()

Methods

Common Methods: Drag, Move, OLEDrag, Refresh, SetFocus, ShowWhatsThis, ZOrder

ClearSel object.ClearSel

StatusBar

Properties

Common Properties: Container, DragIcon, DragMode, Enabled, Font, Height, hWnd, Index, Left, MouseIcon, MousePointer, Name, Object, OLEDropMode, Parent, TabIndex, Tag, ToolTipText, Top, Visible, WhatsThisHelpID, Width

Align Integer
Panels Panels Collection
ShowTips Boolean
SimpleText String
Style SbarStyleConstants Enum

Events

Common Events: Click, DblClick, DragDrop, DragOver, MouseDown, MouseMove, MouseUp, OLECompleteDrag, OLEDragDrop, OLEDragOver, OLEGiveFeedback, OLESetData, OLEStartDrag

PanelClick(panel As Panel)

PanelDblClick(panel As Panel)

Methods

Common Methods: Drag, Move, OLEDrag, Refresh, ShowWhatsThis, ZOrder

Sysinfo

Properties

Common Properties: Index, Name, Object, Parent, Tag

*ACStatus Integer
*BatteryFullTime Long
*BatteryLifePercent Integer
*BatteryLifeTime Long
*BatteryStatus Integer
*OSBuild Integer
*OSPlatform Integer
*OSVersion Single
*ScrollBarSize Single
*WorkAreaHeight Single
*WorkAreaLeft Single
*WorkAreaTop Single
*WorkAreaWidth Single

Events

Common Events: None.

ConfigChangeCancelled()

ConfigChanged(oldconfignum As Long, newconfignum As Long)

DeviceArrival(devicetype As Long, deviceid As Long, devicename As String, devicedata As Long)

DeviceOtherEvent(devicetype As Long, eventname As String, datapointer As Long)

DeviceQueryRemove(devicetype As Long, deviceid As Long, devicename As String, devicedata As Long, cancel As Boolean)

DeviceQueryRemoveFailed(devicetype As Long, deviceid As Long, devicename As String, devicedata As Long)

DeviceRemoveComplete(devicetype As Long, deviceid As Long, devicename As String, devicedata As Long)

DeviceRemovePending(devicetype As Long, deviceid As Long, devicename As String, devicedata As Long)

DevModeChanged()

DisplayChanged()

PowerQuerySuspend(cancel As Boolean)

PowerResume()

PowerStatusChanged()

PowerSuspend()

QueryChangeConfig(cancel As Boolean)

SettingChanged(item As Integer)

SysColorsChanged()

TimeChanged()

Methods

No methods

TabStrip

Properties

Common Properties: Container, DataBindings, DragIcon, DragMode, Enabled, Font, Height, HelpContextID, hWnd, Index, Left, MouseIcon, MousePointer, Name, Object, OLEDropMode, Parent, TabIndex, TabStop, Tag, ToolTipText, Top, Visible, WhatsThisHelpID, Width

ClientHeight Single
ClientLeft Single
ClientTop Single
ClientWidth Single
ImageList Object
MultiRow Boolean
SelectedItem Tab Object
ShowTips Boolean
Style TabStyleConstants Enum
TabFixedHeight Integer
TabFixedWidth Integer
Tabs Tabs Collection
TabWidthStyle TabWidthStyleConstants Enum

Events

Common Events: Click, DragDrop, DragOver, GotFocus, KeyDown, KeyPress, KeyUp, LostFocus, MouseDown, MouseMove, MouseUp, OLECompleteDrag, OLEDragDrop, OLEDragOver, OLEGiveFeedback, OLESetData, OLEStartDrag

BeforeClick(cancel As Integer)

Methods

Common Methods: Drag, Move, OLEDrag, Refresh, SetFocus, ShowWhatsThis, ZOrder

TextBox

Properties

Common Properties: Appearance, BackColor, BorderStyle, Container, DataChanged, DataField, DragIcon, DragMode, Enabled, Font, FontBold, FontItalic, FontName, FontSize, FontStrikethru, FontUnderline, ForeColor, Height, HelpContextID, hWnd, Index, Left, LinkItem, LinkMode, LinkTimeout, LinkTopic, MouseIcon, MousePointer, Name, OLEDragMode, OLEDropMode, Parent, RightToLeft, TabStop, Tag, ToolTipText, Top, Visible, WhatsThisHelpID, Width

Alignment Integer
*HideSelection Boolean
Locked Boolean
MaxLength Long
*MultiLine Boolean
PasswordChar String
*ScrollBars Integer
SelLength Long
SelStart Long
SelText String
Text String

Events

Common Events: Click, DblClick, DragDrop, DragOver, GotFocus, KeyDown, KeyPress, KeyUp, LinkClose, LinkError, LinkNotify, LinkOpen, LostFocus, MouseDown, MouseMove, MouseUp, OLECompleteDrag, OLEDragDrop, OLEDragOver, OLEGiveFeedback, OLESetData, OLEStartDrag

Change()

Methods

Common Methods: Drag, LinkExecute, LinkPoke, LinkRequest, LinkSend, Move, OLEDrag, Refresh, SetFocus, ShowWhatsThis, ZOrder

Timer

Properties

Common Properties: Enabled, Index, Name, Parent, Tag

Interval Long

Events

Common Events: None

Timer()

Methods

No methods

Toolbar

Properties

Common Properties: Appearance, BorderStyle, Container, DataBindings, DragIcon, DragMode, Enabled, Height, HelpContextID, hWnd, Index, Left, MouseIcon, MousePointer, Name, Object, OLEDropMode, Parent, TabIndex, Tag, ToolTipText, Top, Visible, WhatsThisHelpID, Width

Align Integer
AllowCustomize Boolean
ButtonHeight Single
Buttons Buttons Collection
ButtonWidth Single
*Controls Controls Collection
HelpFile String
ImageList Object
ShowTips Boolean
Wrappable Boolean

Events

Common Events: Click, DblClick, DragDrop, DragOver, MouseDown, MouseMove, MouseUp, OLECompleteDrag, OLEDragDrop, OLEDragOver, OLEGiveFeedback, OLESetData, OLEStartDrag

ButtonClick(button As Button)

Change()

Methods

Common Methods: Drag, Move, OLEDrag, Refresh, ShowWhatsThis, ZOrder

Customize object.Customize
RestoreToolbar object.RestoreToolbar(key, subkey, value)
SaveToolbar object.SaveToolbar(key, subkey, value)

TreeView

Properties

Common Properties: Appearance, BorderStyle, Container, DragIcon, DragMode, Enabled, Font, Height, HelpContextID, hWnd, Index, Left, MouseIcon, MousePointer, Name, Object, OLEDragMode, OLEDropMode, Parent, TabIndex, TabStop, Tag, ToolTipText, Top, Visible, WhatsThisHelpID, Width

DropHighlight Node Object
HideSelection Boolean
ImageList Object
Indentation Single
LabelEdit LabelEditConstants Enum
LineStyle TreeLineStyleConstants Enum
Nodes Nodes Collection
PathSeparator String
SelectedItem Node Object
Sorted Boolean
Style TreeStyleConstants Enum

Events

Common Events: Click, DragDrop, DragOver, GotFocus, KeyDown, KeyPress, KeyUp, LostFocus, MouseDown, MouseMove, MouseUp, OLECompleteDrag, OLEDragDrop, OLEDragOver, OLEGiveFeedback, OLESetData, OLEStartDrag

AfterLabelEdit(cancel As Integer, newstring As String)

BeforeLabelEdit(cancel As Integer)

Expand(node As Node)

NodeClick(node As Node)

Methods

Common Methods: Drag, Move, OLEDrag, Refresh, SetFocus, ShowWhatsThis, ZOrder

GetVisibleCount object.GetVisibleCount() As Long
HitTest object.HitTest(x, y) As Node
StartLabelEdit object.StartLabelEdit

UpDown

Properties

Common Properties: Container, DragIcon, DragMode, Enabled, Height, HelpContextID, hWnd, Index, Left, Name, Object, Parent, TabIndex, TabStop, Tag, ToolTipText, Top, Visible, WhatsThisHelpID, Width

Alignment AlignmentConstants Enum
AutoBuddy Boolean
BuddyControl Variant
BuddyProperty Variant
Increment Long
Max Long
Min Long
OLEDropMode OLEDropConstants Enum
Orientation OrientationConstants Enum
SyncBuddy Boolean
Value Long
Wrap Boolean

Events

Common Events: DragDrop, DragOver, GotFocus, LostFocus, MouseDown, MouseMove, MouseUp, OLECompleteDrag, OLEDragDrop, OLEDragOver, OLEGiveFeedback, OLESetData, OLEStartDrag

Change()

DownClick()

UpClick()

Methods

Common Methods: Drag, Move, OLEDrag, SetFocus, ShowWhatsThis, ZOrder

UserControl

Properties

Common Properties: Appearance, BackColor, BorderStyle, Enabled, Font, FontBold, FontItalic, FontName, FontSize, FontStrikethru, FontTransparent, FontUnderline, ForeColor, hDC, Height, hWnd, MouseIcon, MousePointer, Name, OLEDropMode, Parent, RightToLeft, ScaleHeight, ScaleLeft, ScaleMode, ScaleTop, ScaleWidth, Tag, Width

AccessKeys String
*ActiveControl Control Object
*Ambient AmbientProperties Object
AutoRedraw Boolean
BackStyle Long
*ClipControls Boolean
*ContainedControls ContainedControls Collection
*Controls Object Collection
*Count Integer
CurrentX Single
CurrentY Single
DrawMode Integer
DrawStyle Integer
DrawWidth Integer
*EventsFrozen Boolean
*Extender Object
FillColor Long
FillStyle Integer
*Hyperlink Hyperlink Object
*Image IPictureDisp Object
KeyPreview Boolean
MaskColor Long
MaskPicture IPictureDisp Object
Palette IPictureDisp Object
PaletteMode Integer
ParentControls ParentControls Collection
Picture IPictureDisp Object
PropertyPages String Array

Events

Common Events: Click, DblClick, DragDrop, DragOver, GotFocus, KeyDown, KeyPress, KeyUp, LostFocus, MouseDown, MouseMove, MouseUp, OLECompleteDrag, OLEDragDrop, OLEDragOver, OLEGiveFeedback, OLESetData, OLEStartDrag

AccessKeyPress(keyascii As Integer)

AmbientChanged(propertyname As String)

AsyncReadComplete(asyncprop As AsyncProperty)

EnterFocus()

ExitFocus()

Hide()

Initialize()

InitProperties()

Paint()

ReadProperties(propbag As PropertyBag)

Resize()

Show()

Terminate()

WriteProperties(propbag As PropertyBag)

Methods

Common Methods: OLEDrag, Refresh, Scale, ScaleX, ScaleY, SetFocus

AsyncRead object.AsyncRead(target, asynctype, [propertyname])
CancelAsyncRead object.CancelAsyncRead([property])
CanPropertyChange object.CanPropertyChange(propname) As Boolean
Circle object.Circle(step, x, y, radius, color, start, end, aspect)
Cls object.Cls
Line object.Line(flags, x1, y1, x2, y2, color)
PaintPicture object.PaintPicture(picture, x1, y1, [width1], [height1], [x2], [y2], [width2], [height2], [opcode])
Point object.Point(x, y) As Long
PopupMenu object.PopupMenu(menu, [flags], [x], [y], [defaultmenu])
PropertyChanged object.PropertyChanged([propname])
PSet object.PSet(step, x, y, color)
Size object.Size(width, height)
TextHeight object.TextHeight(str) As Single
TextWidth object.TextWidth(str) As Single

UserDocument

Properties

Common Properties: Appearance, BackColor, Font, FontBold, FontItalic, FontName, FontSize, FontStrikethru, FontTransparent, FontUnderline, ForeColor, hDC, Height, hWnd, MouseIcon, MousePointer, Name, OLEDropMode, Parent, RightToLeft, ScaleHeight, ScaleLeft, ScaleMode, ScaleTop, ScaleWidth, Tag, Width

*ActiveControl Control Array
AutoRedraw Boolean
*ClipControls Boolean
ContinuousScroll Boolean
*Controls Object Collection
*Count Integer
CurrentX Single
CurrentY Single
DrawMode Integer
DrawStyle Integer
DrawWidth Integer
FillColor Long
FillStyle Integer
HScrollSmallChange Single
*Hyperlink Hyperlink Object
*Image IPictureDisp Object
KeyPreview Boolean
MinHeight Single
MinWidth Single
Palette IPictureDisp Object
PaletteMode Integer
Picture IPictureDisp Object
ScrollBars Integer
*ViewportHeight Single
ViewportLeft Single
ViewportTop Single
*ViewportWidth Single
VScrollSmallChange Single

Events

Common Events: Click, DblClick, DragDrop, DragOver, GotFocus, KeyDown, KeyPress, KeyUp, LostFocus, MouseDown, MouseMove, MouseUp, OLECompleteDrag, OLEDragDrop, OLEDragOver, OLEGiveFeedback, OLESetData, OLEStartDrag

AsyncReadComplete(asyncprop As AsyncProperty)

EnterFocus()

ExitFocus()

Hide()

Initialize()

InitProperties()

Paint()

ReadProperties(propbag As PropertyBag)

Resize()

Scroll()

Show()

Terminate()

WriteProperties(propbag As PropertyBag)

Methods

Common Methods: OLEDrag, Refresh, Scale, ScaleX, ScaleY, SetFocus

AsyncRead object.AsyncRead(target, asynctype, [propertyname])
CancelAsyncRead object.CancelAsyncRead([property])
Circle object.Circle(step, x, y, radius, color, start, end, aspect)
Cls object.Cls
Line object.Line(flags, x1, y1, x2, y2, color)
PaintPicture object.PaintPicture(picture, x1, y1, [width1], [height1], [x2], [y2], [width2], [height2], [opcode])
Point object.Point(x, y) As Long
PopupMenu object.PopupMenu(menu, [flags], [x], [y], [defaultmenu])
PrintForm object.PrintForm
PropertyChanged object.PropertyChanged([propname])
PSet object.PSet(step, x, y, color)
SetViewport object.SetViewport(left, top)
TextHeight object.TextHeight(str) As Single
TextWidth object.TextWidth(str) As Single

VScrollBar

Properties

Common Properties: Container, DragIcon, DragMode, Enabled, Height, HelpContextID, hWnd, Index, Left, MouseIcon, MousePointer, Name, Parent, RightToLeft, TabIndex, TabStop, Tag, Top, Visible, WhatsThisHelpID, Width

LargeChange Integer
Max Integer
Min Integer
SmallChange Integer
Value Integer

Events

Common Events: DragDrop, DragOver, GotFocus, KeyDown, KeyPress, KeyUp, LostFocus

Change()

Scroll()

Methods

Common Methods: Drag, Move, Refresh, SetFocus, ShowWhatsThis, ZOrder

Winsock

Properties

Common Properties: Index, Name, Object, Parent, Tag

*BytesReceived Long
*LocalHostName String
*LocalIP String
LocalPort Long
Protocol ProtocolConstants Enum
RemoteHost String
*RemoteHostIP String
RemotePort Long
*SocketHandle Long
*State Integer

Events

Common Events: None

Close()

Connect()

ConnectionRequest(requestid As Long)

DataArrival(totalbytes As Long)

Error(number As Integer, description As String, scode As Long, source As String, helpfile As String, helpcontext As Long, canceldisplay As Boolean)

SendComplete()

SendProgress(bytessent As Long, bytesleft As Long)

Methods

Common Methods: None

Accept object.Accept(requestid)
Bind object.Bind([localport], [localid])
Close object.Close
Connect object.Connect([remotehost], [remoteport])
GetData object.GetData(data, [type], [maxLen])
Listen object.Listen
PeekData object.PeekData(data, [type], [maxLen])
SendData object.SendData(data)

Summary

This appendix provided a quick-reference for many objects commonly used in Visual Basic, including all the standard and professional controls plus objects such as Screen and Printer. For each object, the chapter lists all its properties, methods, and events. Other information, such as the data type of properties, the syntax of methods, and the arguments of events, was also provided.


Previous chapterNext chapterContents

© Copyright, Macmillan Computer Publishing. All rights reserved.