You are on page 1of 17

Controls

Visual Basic 6.0 Control Summary - Properties / Methods / Events


Instrinsic Controls

Horizontal Scroll Bar

Vertical Scroll Bar


CommandButton

OLE Container

OptionButton
DriveListBox

FileListBox
ComboBox

DirListBox
CheckBox

ListBox

Picture

Shape
Frame

Image

Timer
Label
Form
Data

Text
Line
File Name n/a n/a n/a n/a n/a n/a n/a n/a n/a n/a n/a n/a n/a n/a n/a n/a n/a n/a n/a n/a n/a
Property
Name x x x x x x x x x x x x x x x x x x x x x
Alignment x - - - - - - - - - - x - - - x - - x - -
Appearance x x x x x x x x x - x x - x x x x - x - -
BackColor x x x x x x x x x - - x - x x x x x x - -
BackStyle - - - - - - - x - - - x - - x - - x - - -
BorderStyle - - - - - - - x x - x x x - x - x x x - -
Caption x - x x - - - x x - - x - - - x - - - - -
CausesValidation x x - - x x x - - x - - - x x x x - x - x
Container x x x - x x x x x x x x x x x x x x x - x
DataField x x - x - - - - - - x x - x x - x - x - -
DataFormat x x - - - - - - - - x x - x - x x - x - -
DataMember x x - - - - - - - - x x - x - - x - x - -
DataSource x - - x - - - - - - x x - x x - x - x - -
DragIcon x x x x x x x - x x x x - x x x x - x - x
DragMode x x x x x x x - x x x x - x x x x - x - x
Enabled x x x x x x x x x x x x - x x x x - x x x
Font x x x x x x x x x - - x - x - x x - x - -
ForeColor x x x x x x x x x - - x - x x x x x x - -
Height x x x x x x x x x x x x - x x x x x x - x
HelpContextID x x x - x x x x x x - - - x x x x - x - x
hWnd x x x - x x x x x x - - - x x x x - x - x
Index x x x x x x x - x x x x x x x x x x x x x
Left x x x x x x x x x x x x - x x x x x x x x
MaskColor x - x - - - - - - - - - - - x - - - - -
MouseIcon x x x x x x x x x x x x - x x x x - x - x
MousePointer x x x x x x x x x x x x - x x x x - x - x
Object - - - - - - - - - - - - - - x - - - - - -
OLEDragMode - x - - x - x - - x x - x - - x - x - -
OLEDropMode x x x x x x x x x - x x - x - x x - x - -
Parent x x x x x x x x x x x x x x x x x x x x x
RightToLeft x x x x - - - x x x - x - x - x x - x - x
Style x x x - - - - - - - - - - x - x - - - - -
TabIndex x x x - x x x - x x - x - x x x x - x - x
TabStop x x x - x x x - - x - - - x x x x - x - x
Tag x x x x x x x x x x x x x x x x x x x x x
Text - x - - - - - - - - - - - x - - - - x - -
ToolTipText x x x x x x x - x - x x - x - x x x - -
Top x x x x x x x x x x x x - x x x x x x x x
Visible x x x x x x x x x x x x x x x x x x x - x
WhatsThisHelpID x x x x x x x x x x x x - x x x x x - x
Width x x x x x x x x x x x x - x x x x x x - x
DataChanged DataChanged Cancel Align FontBold Drive Archive ActiveControl ClipControls LargeChange DataChanged AutoSize BorderColor Columns Action DisabledPicture Align BorderColor DataChanged Interval LargeChange
DisabledPicture FontBold Default BOFAction FontItalic FontBold FileName AutoRedraw FontBold Max Picture DataChanged BorderWidth DataChanged AppIsRunning DownPicture AutoRedraw BorderWidth FontBold Max
DownPicture FontItalic DisabledPicture Connect FontName FontItalic FontBold ClipControls FontItalic Min Stretch FontBold DrawMode FontBold AutoActivate FontBold AutoSize DrawMode FontItalic Min
FontBold FontName DownPicture DataBase FontSize FontName FontItalic ControlBox FontName SmallChange FontItalic X1 FontItalic AutoVerbMenu FontItalic ClipControls FillColor FontName SmallChange
FontItalic FontSize FontBold DatabaseName FontStrikeThru FontSize FontName Controls FontSize Value FontName X2 FontName Class FontName CurrentX FillStyle FontSize Value
FontName FontStrikeThru FontItalic DataBaseName FontUnderline FontStrikeThru FontSize Count FontStrikeThru FontSize Y1 FontSize Data FontSize CurrentY Shape FontStrikeThru
FontSize FontUnderline FontName DefaultCursorType List FontUnderline FontStrikeThru CurrentX FontUnderline FontStrikeThru Y2 FontStrikeThru DataChanged FontStrikeThru DataChanged FontUnderline
FontStrikeThru IntegralHeight FontSize DefaultType ListCount List FontUnderline CurrentY FontUnderline FontUnderline DataText FontUnderline DrawMode HideSelection
FontUnderline ItemData FontStrikeThru EditMode ListIndex ListCount Hidden DrawMode LinkItem IntegralHeight DisplayType Picture DrawStyle LinkItem
Picture List FontUnderline EOFAction Path ListIndex List DrawStyle LinkMode IntegralHeight FileNumber UseMaskColor DrawWidth LinkMode
UseMaskColor ListCount Picture Exclusive TopIndex TopIndex ListCount DrawWidth LinkTimeout ItemData Format Value FillColor LinkTimeout
Value ListIndex UseMaskColor FontBold ListIndex FillColor LinkTopic List HostName FillStyle LinkTopic
Locked UseMnemonic FontItalic Locked FillStyle UseMnemonic ListCount IpOLEObject FontBold Locked
NewIndex Value FontName MultiSelect FontBold WordWrap ListIndex MiscFlags FontItalic MaxLength
SelLength FontSize Normal FontItalic MultiSelect ObjectAcceptFormats FontName MultiLine
SelStart FontStrikeThru Path FontName SelCount ObjectAcceptFormatsCount FontSize PasswordChar
SelText FontUnderline Pattern FontSize Selected ObjectGetFormats FontStrikeThru ScrollBars
Sorted Negotiate ReadOnly FontStrikeThru Sorted ObjectGetFormatsCount FontTransparent SelLength
TopIndex Options Selected FontTransparent TopIndex ObjectVerbFlags FontUnderline SelStart
ReadOnly System FontUnderline ObjectVerbs hDC SelText
Recordset TopIndex hDC ObjectVerbsCount Image
RecordsetType Icon OLEDropAllowed LinkItem
RecordSource Image OLEType LinkMode
KeyPreview OLETypeAllowed LinkTimeOut
LinkMode PasteOK LInkTopic
LinkTopic Picture Negotiate
MaxButton SizeMode Picture
MDIChild SourceDoc ScaleHeight
MinButton SourceItem ScaleLeft
Moveable UpdateOptions ScaleMode
NegotiateMenus Verb ScaleTop
Palette ScaleWidth
PaletteMode
Picture
ScaleHeight
ScaleLeft
ScaleMode
ScaleTop
ScaleWidth
ShowInTaskBar
StartupObject
StartUpPosition
WhatsThisButton
WindowState

Methods
Refresh x x x x x x x x x x x x x x x x x x x - x
Drag x x x x x x x - x x x x - x x x x - x - x
Move x x x x x x x x x x x x - x x x x x x - x

Page 1
Controls

SetFocus x x x - x x x x - x - - - x x x x - x - x
ZOrder x x x x x x x x x x x x x x x x x x x - x
OLEDrag x x x x x x x x x - x x - x - x x - x - -
ShowWhatsThis x x x x x x x x x x x x - x x x x - x - x
AddItem UpdateControls Add LinkExecute AddItem Close Circle LinkExecute
Clear UpdateRecord Circle LinkPoke Clear Copy Cls LinkPoke
RemoveItem Cls LinkRequest RemoveItem CreateEmbed Line LinkRequest
Hide LinkSend CreateLink LinkExecute LinkSend
Line Delete LinkPoke
PaintPicture DoVerb LinkRequest
Point FetchVerbs LinkSend
PopUpMenu InsertObjDlg PaintPicture
Print Paste Point
PrintForm PasteSpecialDlg PSet
Pset ReadFromFile Scale
Scale SaveToFile ScaleX
ScaleX SaveToOLE1File ScaleY
ScaleY Update TextHeight
Show TextWidth
TextHeight
TextWidth

Events
Change - x - - x x - - - x - x - - - - x - x - x
Click x x x - x - x x x - x x - x x x x - x - -
DblClick - x - - - - x x x - x x - x x x x - x - -
DragDrop x x x x x x x x x x x x - x x x x - x - x
DragOver x x x x x x x x x x x x - x x x x - x - x
GotFocus x x x - x x x x - x - - - x x x x - x - x
KeyDown x x x - x x x x - x - - - x x x x - x - x
KeyPress x x x - x x x x - x - - - x x x x - x - x
KeyUp x x x - x x x x - x - - - x x x x - x - x
LostFocus x x x - x x x x - x - - - x x x x - x - x
MouseDown x - x x x - x x x - x x - x x x x - x - -
MouseMove x - x x x - x x x - x x - x x x x - x - -
MouseUp x - x x x - x x x - x x - x x x x - x - -
OLECompleteDrag x x x x x x x x x - x x - x - x x - x - -
OLEDragDrop x x x x x x x x x - x x - x - x x - x - -
OLEDragOver x x x x x x x x x - x x - x - x x - x - -
OLEGiveFeedBack x x x x x x x x x - x x - x - x x - x - -
OLESetData x x x x x x x x x - x x - x - x x - x - -
OLEStartDrag x x x x x x x x x - x x - x - x x - x - -
Validate x x - x x x x - - x - - - x x x x - x - x
DropDown Validate Error Scroll Scroll PathChange Activate Scroll LinkClose ItemCheck ObjectMove LinkClose LinkClose Timer Scroll
Scroll Reposition PatternChange DeActivate LinkError Scroll Resize LinkError LinkError
Resize Scroll Initialize LinkNotify Updated LinkNotify LinkNotify
LinkClose LinkOpen LinkOpen LinkOpen
LinkError Paint
LinkExecute Resize
LinkOpen
Load
Paint
QueryUnload
Resize
Terminate
Unload

Horizontal Scroll Bar

Vertical Scroll Bar


CommandButton

OLE Container

OptionButton
DriveListBox

FileListBox
ComboBox

DirListBox
CheckBox

ListBox

Picture

Shape
Image

Timer
Form
Data

Line

Page 2
Controls

DBGrid (not installed)


ADO Data Control

Internet Transfer
CommonDialog

MAPIMessages
DataRepeater

ImageCombo
FlatScrollBar
DataCombo

DBCombo
Animation

ImageList
DTPicker
DataGrid

ListView
DataList
Coolbar

DBList
msadodc mscomct2 comdlg32 comct332 msdatgrd msdatlst msdatlst msdatrep dblist32 dblist32 dbgrid32 mscomct2 mscomct2 mscomctl mscomctl msinet mscomctl msapi32

x x x x x x x x x x x x x x x x x x
- - - - - - - - - - - - - - - - - -
x - - - x x x x x x x - x - - - x -
x x - x x x x x x x x - - x x - x -
- x - - - - - - - - - - - - - - - -
- - - - x - - x - - x - - - - - x -
x - - - x - - x - - x - - - - - - -
x x - - x x x x x x x x - x - - x -
x x - x x x x x x x x x x x x x x -
- - - - - x x - x x - x - x - - - -
- - - - - x x - x x - x - x - - - -
- - - - x x x x x x x x - x - - - -
- - - - x x x x x x x x - x - - - -
x x - x x x x x x x x x x x - - x -
x x - x x x x x x x x x x x - - x -
- x - x x x x x x x x x x x - - x -
x - - - x x x x x x x x - x - - x -
x - - x x x x x x x x - - x x - x -
x x - x x x x x x x x x x x - - x -
x x - - x x x x x x x x - x - - x -
- x - x x x x x x x x x x x - - x -
x x x x x x x x x x x x x x x x x x
x x x x x x x x x x x x x x x x x x
- - - - - - - - - - - - - - x - - -
- - - x - x x x x x - x x x - - x -
- - - x - x x x x x - x x x - - x -
x x x x x x x x x x x x x x x x x x
- - - - - x x - x x - - - x - - x -
- x - x - x x - x x - x - x - - x -
x x x x x x x x x x x x x x x x x x
- - - - x x x x x x x - - - - - - -
- - - - - x - - x - - - - - - - - -
x x - x x x x x x x x x x x - - x -
x x - - x x x x x x x x - x - - x -
x x x - x x x x x x x x x x x x x x
- - - - x x x - x - x - - x - - - -
x x - x x x x x x x x x x x - - x -
x x x x x x x x x x x x x x x x x x
x x - x x x x x x x x x x x - - x -
x x - x x x x x x x x x x x - - x -
x x - x x x x x x x x x x x - x -
Align AutoPlay Action Align AddNewMode HeadLines BoundColumn BoundColumn ActiveRow BoundColumn BoundColumn AddNewMode HeadLines CalendarBackColor Arrows CaseSensitive hImageList AccessType AllowColumnReorder Action
BOFAction Center CancelError BandBorders Align hWndEditor BoundText BoundText CaptionStyle BoundText BoundText Align hWndEditor CalendarForeColor LargeChange ComboItems ImageHeight Document Arrange AddressCaption
CacheSize Color Bands AllowAddNew LeftCol DataBindings DataBindings CurrentRecord DataBindings DataBindings AllowAddNew LeftCol CalendarTitleBackColor Max DataBindings ImageWidth hInternet CheckBoxes AddressEditField
CommandTimeout Copies EmbossHighLight AllowArrows MarqueeStyle DataChanged DataChanged DataBindings DataChanged DataChanged AllowArrows MarqueeStyle CalendarTitleForeColor Min ImageList ListImages Password ColumnHeaderIcons AddressEditFieldCount
COmmandType DefaultExt EmbossPicture AllowDelete Negotiate DataCombo DataList DataFields DBCombo DBList AllowDelete Negotiate CalendarTrailingForeColor Orientation Indentation UseMaskColor Protocol ColumnHeaders AddressLabel
ConnectionString DialogTitle EmbossShadow AllowRowSizing RecordSelectors IntegralHeight IntegralHeight DataRepeater IntegralHeight IntegralHeight AllowRowSizing RecordSelectors CheckBox SmallChange Locked Proxy DropHighLight AddressModifiable
ConnectionTimeout FileName FixedOrder AllowUpdate Row ListField ListField IntegralHeight ListField ListField AllowUpdate Row CustomFormat Value SelectedItem RemoteHost FlatScrollBar AddressResolveUI
CursorLocation FileTitle ImageList ApproxCount RowDividerStyle locked Locked PropertyName Locked Locked ApproxCount RowDividerStyle DataBindings SelLength RemotePort FullRowSelect AttachmentCount
CursorType Filter Negotiate Bookmark RowHeight MatchEntry MatchEntry RepeatedControl MatchEntry MatchEntry Bookmark RowHeight DataChanged SelStart RequestTimeout GridLines AttachmentIndex
EOFAction FilterIndex Orientation BoundText RowHeight MatchWithList MatchWithList RepeatedControlName MatchWithList MatchWithList BoundText RowHeight DateOfWeek SelText ResponseCode HideColumnHeaders AttachmentName
LockType Flags Picture Col ScrollBars RowMember RowMember RepeaterBindings RowSource RowSource Col ScrollBars Day UsePathSep ResponseInfo HideSeleciton AttachmentPathName
MaxRecords FontBold RowCount ColumnHeaders SelBookMarks RowSource RowSource RowDividerStyle SelectedItem SelectedItem ColumnHeaders SelBookMarks Format StillExecuting HotTracking AttachmentPosition
Mode FontItalic VariantHeight ColumnHeaders SelEndCol SelectedItem SelectedItem RowIndicator SelLength VisibleCount ColumnHeaders SelEndCol Hour URL HoverSelection AttachmentType
Negotiate FontName Columns SelEndRow SelLength VisibleCount ScrollBars SelStart VisibleItems Columns SelEndRow MaxDate UserName Icons FetchMsgType
Orientation FontSize CurrentCellModifie SelLength SelStart VisibleItems Visible Records SelText CurrentCellModified SelLength MinDate LabelEdit FetchSorted
Password FontStrikeThru CurrentCellVisible SelStart SelText Visible Rows VisibleCount CurrentCellVisible SelStart Minute LabelWrap FetchUnreadOnly
Provider FontUnderLine DataBindings SelStartCol VisibleCount VisibleItems DataBindings SelStartCol Month ListItems MsgConversationID
Recordset FromPage DataChanged SelStartRow VisibleItems DataChanged SelStartRow Second MultiSelect MsgDateReceived
RecordSource hDC DataFormats SelTest DataFormats SelTest UpDown Picture MsgID
UserName HelpCommand DataGrid Split DataGrid Split Value PictureAlignment MsgIndex
HelpContext DefColWidth Splits DefColWidth Splits Year SelectedItem MsgNoteText
HelpFile EditActive TabAcrossSplits EditActive TabAcrossSplits SmallIcons MsgOrigAddress
HelpKey ErrorText TabAction ErrorText TabAction Sorted MsgOrigDisplayName
InitDir FirstRow VisibleCols FirstRow VisibleCols SortKey MsgRead
Max HeadFont WrapCellPointer HeadFont WrapCellPointer SortOrder MsgReceiptRequested
MaxFileSize TextBackground MsgSent
Min View MsgSubject
Orientation MsgType
PrinterDefault RecipAddress
ToPage RecipCount
RecipDisplayName
RecipIndex
RecipType
SessionID

x - - - x x x x x x x x x x - - x -
x x - - x x x x x x x x x x - - x -
x x - - x x x x x x x x x x - - x -

Page 3
Controls

x x - - x x x x x x x x x x - - x -
x x - - x x x x x x x x x x - - x -
- x - - - x x - x x - x - x - - x -
x x - - x x x x x x x x x x - - x -
UpdateControls Close AboutBox CaptureImage ReFill Clear AboutBox AboutBox CaptureImage GetFirstVisible Overlay Cancel FindItem Compose
Open ShowColor ClearFields Refill Refill ClearFields SetFirstVisible Execute GetFirstVisible Copy
Play ShowFont ClearSelCols ClearSelCols GetChunk HitTest Delete
Stop ShowHelp ColContaining ColContaining GetHeader StartLabelEdit Fetch
ShowOpen GetBookMark GetBookMark OpenURL Forward
ShowPrinter HoldFields HoldFields Reply
ShowSave Rebind Rebind ReplyAll
RowBookmark RowBookmark ResolveName
RowContaining RowContaining Save
RowTop RowTop Send
Scroll Scroll Show
SplitContaining SplitContaining

- - - - x x - - x - x x x x - - - -
- x - - x x x x x x x x - x - - - -
- x - - x x x x x x x x - - - - - -
x x - - x x x x x x x x x x - - - -
x x - - x x x x x x x x x x - - - -
x x - - x x x x x x x x - x - - - -
- - - - x x x x x x x x - x - - - -
- - - - x x x x x x x x - x - - - -
- - - - x x x x x x x x - x - - - -
x x - - x x x x x x x x - x - - - -
x x - - x x x x x x x x - - - - - -
x x - - x x x x x x x x - - - - - -
x x - - x x x x x x x x - - - - - -
- x - - - x x - x x - x - x - - - -
- x - - - x x - x x - x - x - - - -
- x - - - x x - x x - x - x - - - -
- x - - - x x - x x - x - x - - - -
- x - - - x x - x x - x - x - - - -
- x - - - x x - x x - x - x - - - -
x x - - x x x x x x x x - x - - - -
EndofRecordset AfterColEdit ActiveRowChanged AfterColEdit CallBackKeyDown Scroll DropDown StateChanged
Error AfterColUpdate CurrentRecordChange AfterColUpdate CloseUp
FetchComplete AfterDelete DataUpdate AfterDelete DropDown
FetchProgress AfterInsert RepeatedControlLoaded AfterInsert Format
FieldChangeComplete AfterUpdate RepeatedControlUnloaded AfterUpdate FormatSize
MoveComplete BeforeColEdit VisibleRecordChanged BeforeColEdit
RecordChangeComplete BeforeColUpdate BeforeColUpdate
RecordSetChangeComplete BeforeDelete BeforeDelete
WillChangeField BeforeInsert BeforeInsert
WillChangeRecord BeforeUpdate BeforeUpdate
WillChangeRecordSet ButtonClick ButtonClick
WillMove ColEdit ColEdit
ColResize ColResize
Error Error
HeadClick HeadClick
OnNewAdd OnNewAdd
RowColChange RowColChange
RowResize RowResize
Scroll Scroll
SelChange SelChange
SplitChange SplitChange

Internet Transfer
CommonDialog

MAPIMessages
ImageCombo
FlatScrollBar
DBCombo
Animation

ImageList
DTPicker

ListView
Coolbar

DBGrid
DBList

Page 4
Controls

OCX Controls

Microsoft Tab (SSTAB)


Microsoft Chart

MultiMedia MCI
MAPISession

MSHFlexGrid

ProgressBar
MaskedEdit

MSFlexGrid
MonthView

PictureClip
MSComm
msapi32 msmask32 mschart tabctl32 mscomct2 mscomm32 msflxgrd mshflxgd mci32 picclp mscomctl

x x x x x x x x x x x
- - - - - - - - - -
- x - - x - x x - - x
- x - x x - x x - - -
- - - - - - - - - -
- x x - x - x x x - x
- - x - - - - - - -
- x x - x - x x x - -
- x x x x - x x x - x
- x - - x - - x - - -
- x - - x - - - - - -
- x x - x - - x - - -
- x x - x - x x - - -
- x x x x - x x x - x
- x x x x - x x x - x
- x x x x - x x x - x
- x - x x - x x - - -
- x - x x - x x - - -
- x x x x - x x x x x
- x x x x - x x x -
- x x x x - x x x x x
x x x x x x x x x x x
x x x x x x x x x - x
- - - - - - - - - -
- x - x x - x x x - x
- x x x x - x x x - x
- x x x x x x x x x x
- x x - - - - - - -
- x x x x - x x x - x
x x x x x x x x x x x
- - - - x - - - -
- - x - - - - - - -
- x x x x - x x x - x
- x x x x - x x x -
x x x x x x x x x x x
- x - - - - x x - - -
- x x x x - x x x - x
x x x x x x x x x x x
- x x x x - x x x - x
- x x x x - x x x - x
- x x x x - x x x x x
Action AllowPrompt ActiveSeriesCount DataBindings Databindings Break AllowBigSelection ColWidth HighLight AllowBigSelection CellHeight FixedCols GridLinesHeader RowHeightMin AutoEnable Orientation CellHeight Align
DownLoadMail AutoTab AllowDithering Picture Day CDHolding AllowUserResize DataBindings LeftCol AllowUserResize CellLeft FixedRows GridLinesIndent RowIsVisible BackEnabled PauseEnabled CellWidth Max
LogOnUI ClipMode AllowDynamicRotation Rows DayBold CommEvent BackColorBkg FillStyle MergeCells BackColorBkg CellPicture FocusRect GridLinesUnpopulated RowPos BackVisible PauseVisible Clip Min
NewSession ClipText AllowSelections ShowFocusRect DataChanged CommID BackColorFixed FixedCols MergeCol BackColorFixed CellPictureAlignment FontBand GridLineWidth RowPos ButtonEnabled PlayEnabled ClipHeight Negotiate
Password DataBindings AllowSeriesSelection Tab DayOfWeek CommPort BackColorSel FixedRows MergeRow BackColorHeader CellTextStyle FontFixed GridLineWidthBand RowPosition ButtonVisible PlayVisible ClipWidth Orientation
SessionID DataChanged AutoIncrement TabCaption MaxDate CTSHolding BandData FocusRect MouseCol BackColorIndent CellTop FontHeader GridLineWidthFixed Rows CanEject Position ClipX Scrolling
UserName Format BackDrop TabEnabled MaxSelCount DSRHolding CellAlignment FontWidth MouseRow BackColorSel CellType FontWidth GridLineWidthHeader RowSel CanPlay PrevEnabled ClipY Value
FormattedText Chart3D TabHeight MinDate DTREnable CellBackColor FontWidthBand Picture BackColorUnpopulated CellWidth FontWidthBand GridLineWidthIndent RowSizingMode CanRecord PrevVisible Cols
HideSelection ChartType TabMaxWidth Month EOFEnable CellFontBold FontWidthFixed PictureType BandColIndex Clip FontWidthFixed GridLineWidthUnpopulated ScrollBars CanStep RecordEnabled GraphicCell
Mask Column TabOrientation MonthBackColor Handshaking CellFontItalic FontWidthHeader ReDraw BandData Col FontWidthHeader HighLight ScrollTrack Command RecordMode Picture
MaxLength ColumnCount TabPicture MonthColumns InBufferCount CellFontName ForeColorBand Row BandDisplay ColAignmentFixed ForeColorBand LeftCol SelectionMode DataBindings RecordVisible Rows
PromptChar ColumnLabel Tabs MonthRows InBufferSize CellFontSize ForeColorFixed RowData BandExpandable ColAlignment ForeColorFixed MergeCells Sort DeviceID Shareable StretchX
PromptInclude ColumnLabelCount TabsPerRow MultiSelect Input CellFontStrikeThru ForeColorHeader RowHeight BandIndent ColAlignmentBand ForeColorHeader MergeCol TextArray DeviceType Silent StretchY
SelLength ColumnLabelIndex TabVisible ScrollRate InputLen CellFontUnderline ForeColorSel RowHeightMin BandLevel ColAlignmentHeader ForeColorSel MergeRow TextMatrix EjectEnabled Start
SelStart Data WordWrap SetlEnd InputMode CellFontWidth FormatString RowIsVisible Bands ColData FormatString MouseCol TextStyle EjectVisible StepEnabled
SelText DataBindings SelStart Nulldiscard CellForeColor GridColor RowPos CellAlignment ColHeader GridColor MouseRow TextStyleBand Error StepVisible
DataGrid ShowToday OutBufferCountCellHeight GridColorBand Rows CellBackColor ColHeaderCaption GridColorBand Picture TextStyleFixed ErrorMessage StopEnable
DoSetCursor ShowWeekNumbers OutBufferSize CellLeft GridColorFixed RowSel CellFontBold ColIsVisible GridColorFixed PictureType TextStyleHeader FileName StopVisible
Drag StartOfWeek Output CellPicture GridColorHeader ScrollBars CellFontItalic ColPosition GridColorHeader RecordSet TopRow Frames TimeFormat
DrawMode TitleBackColor PortOpen CellPictureAlignment GridColorIndent ScrollTrack CellFontName ColPosition GridColorIndent ReDraw Version From To
FootNote TitleForeColor ParityReplace CellTextStyle GridColorUnpopulated SelectionMode CellFontSize Cols GridColorUnpopulated Row WordWrap hWndDisplay Track
FootnoteText TrailingForeColor RThreshold CellTop GridLines Sort CellFontStrikeThru ColSel GridLines RowData Length TrackLength
Legend Value RTSEnable CellWidth GridLines TextArray CellFontUnderline ColWidth GridLines RowExpandable Mode TrackPosition
Plot VisibleDays Settings Clip GridLinesBand TextMatrix CellFontWidth DataBindings GridLinesBand RowExpanded NextEnabled Tracks
RandomFill Year SThreshold Col GridLinesFixed TextStyle CellForeColor FillStyle GridLinesFixed RowHeight NextVisible UpdateInterval
Repaint Week ColAlignment GridLinesHeader TextStyleBand Notify UsesWindows
Row ColAlignmentBand GridLinesIndent TextStyleFixed NotifyMessage Wait
RowCount ColAlignmentHeader GridLinesUnpopulated TextStyleHeader NotifyValue
RowLabel ColData GridLineWidth TopRow
RowLabelCount ColIsVisible GridLineWidthBand Version
RowLabelIndex Cols GridLineWidthIndent WordWrap
SeriesColumn ColSel GridLineWidthUnpopulated
SeriesType
ShowLegend
Stacking
TextLengthType
TitleText

- x x - x - x x x - -
- x x x x - x x x - x
- x x x x - x x x - x

Page 5
Controls

- x x x x - x x x - -
- x x x x - x x x - x
- x x x x - x x x - x
- x x x x - x x x - x
DataBindings EditCopy ComputeControlSize AddItem AddItem
EditPaste HiTest Clear Clear
GetSelectedPart RemoveItem ClearStructure
Layout CollapseAll
SelectPart ExpandAll
ToDefaults RemoveItem
TwipsToChartPart

- x - - - - - - - - -
- - x x x - x x - - x
- - x x x - x x - -
- x x x x - x x x - x
- x x x x - x x x - x
- x x x x - x x x - -
- x x x x - x x - - -
- x x x x - x x - - -
- x x x x - x x - - -
- x x x x - x x x - -
- - x x x - x x - - x
- - x x x - x x - - x
- - x x x - x x - - x
- x x x x - x x x - x
- x x x x - x x x - x
- x x x x - x x x - x
- x x x x - x x x - x
- x x x x - x x x - x
- x x x x - x x x - x
- x x x x - - x x - -
ValidationError AxisActivated DateClick OnComm Compare Collapse BackClick
AxisLabelActivated DateDblClick EnterCell Compare BackCompleted
AxisLabelSelected GetDayBold LeaveCell EnterCell BackGotFocus
AxisLabelUpdated SelChange RowColChange Expand BackLostFocus
AxisSelected Scroll LeaveCell ButtonClick
AxisTitleActivated SelChange RowColChange ButtonCompleted
AxisTitleSelected Scroll ButtonGotFocus
AxisTitleUpdated SelChange ButtonLostFocus
AxisUpdated Done
ChartActivated EjectClick
ChartSelected EjectComplete
ChartUpdated EjectGotFocus
DataUpdated EjectLostFocus
DonePainting NextClick
FootNoteActivated NextCompleted
FootNoteSelected NextGotFocus
FootNoteUpdated NextLostFocus
LegendActivated PauseClick
LegendSelected PauseCompleted
LegendUpdated PauseGotFocus
PlotActivated PauseLostFocus
PlotSelected PlayClick
PlotUpdated PlayCompleted
PointActivated PlayGotFocus
PointLabelActivated PlayLostFocus
PointLabelSelected PrevClick
PointLabelUdated PrevComplete
PointSelected PrevGotFocus
PointUpdated PrevLostFocus
SeriesActivated RecordClick
SeriesSelected RecordCompleted
SeriesUpdated RecordGotFocus
TitleActivated RecordLostFocus
TitleSelected StatusUpdate
TitleUpdated StepClick
StepComplete
StepGotFocus
StepLostFocus
StopClick
StopComplete
StopGotFocus
StopLostFocus

MultiMedia MCI
TabbedDialog
MAPISession

ProgressBar
MaskedEdit

MSFlexGrid
MonthView

PictureClip
MSComm

Page 6
Controls

System Objects File System Objects

FileSystemObject
RichTextBox
RemoteData

TextStream
Clipboard
Statusbar

TreeView

WinSock
UpDown
TabStrip

Toolbar
SysInfo

Picture
Screen

Printer

Debug

Folder
Slider

Drive

Files
App

Err
msrdc richtx32 sysinfo mscomctl mscomctl mscomctl mscomctl mscomctl mscomct2 mswinsck n/a n/a n/a n/a n/a n/a n/a n/a n/a n/a n/a n/a

x x x x x x x x x x - - - - - - - - x - - -
- - - - - - - - x - - - - - - - - - - - - -
x x - - - - x x - - - - - - - - - - - - - -
x x - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- x - x - - x x - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- x - x - x - x x - - - - - - - - - - - - -
x x - x x x x x x - - - - - - - - - - - - -
- x - - - - - - - - - - - - - - - - - - - -
- x - - - - - - - - - - - - - - - - - - - -
- x - - - - - - - - - - - - - - - - - - - -
- x - - - - - - - - - - - - - - - - - - - -
x x - x x x x x x - - - - - - - - - - - - -
x x - x x x x x x - - - - - - - - - - - - -
x x - x x x x x x - - - - - - - - - - - - -
x x - - x x - x - - - x - - - - - - - - - -
x x - - - - - - - - - - - - - - - - - - - -
x x - x x x x x x - x x - - - x - - - - - -
- x - x x x x x - - - - - - - - - - - - -
- x - x x x x x x - - - - - - - - - - - - - -
x x - x x x x x x x - - - - - - - - - - - -
x x x x x x x x x - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- x - x x x x x - - x - - - - - - - - - - -
- x - x x x x x - - x - - - - - - - - - - -
x x x x x x x x x x - - - - - - - - - - - -
- x - - - - - x - - - - - - - - - - - - - -
- x - x x x x x x - - - - - - - - - - - - -
x x x x x x x x x x - - - - - - - - - - - -
- - - - - - - - - - - x - - - - - - - - - -
- - - - x x x x - - - - - - - - - - - - - -
- x - x x x x x x - - - - - - - - - - - - -
- x - x x x x - - - - - - - - - - - - -
x x x x x x x x x x - - - - - - - - - - - -
- x - - - - - - - - - - - - - - - - - - - -
x x - x x x x x x - - - - - - - - - - - - -
x x x x x x x x x x - - - - - - - - - - - -
x x - x x x x x x - - - - - - - - - - - - -
x x - x x x x x x - - - - - - - - - - - - -
x x - x x x x x x - x x - - - x - - - - - -
Align AutoVerbMenu ACStatus LargeChange Align ClientHeight Align CheckBoxes AutoBuddy BytesReceived ActiveControl ColorMode Comments Handle Description AvailableSpace Attributes Count Drives AtEndOfLine
BatchCollisionCount BulletIndent BatteryFullTime DataBindings Negotiate ClientLeft AllowCustomize DropHighLight BuddyControl LocalHostName ActiveForm Copies CompanyName hPal HelpContext DriveLetter DateCreated Item AtEndOfStream
BatchCollisionRows DataBindings BatteryLifePercent Max Panels ClientTop ButtonHeight FullRowSelect BuddyProperty LocalIP FontCount Count EXEName Type HelpFile DriveType DateLastAccessed Column
BatchSize DataChanged BatteryLifeTime Min ShowTIps ClientWidth ButtonWidth HideSelection hWnd LocalPort Fonts CurrentX FileDescription LastDLLError FileSystem DateLastModified Line
BOFAction DisableNoScroll BatteryStatus Orientation SimpleText HotTracking ButtonMenus HotTracking Increment Protocol TwipsPerPixelX CurrentY HelpFile Number FreeSpace Drive
Connect FileName OSBuild SelectRange MultiRow Buttons ImageList Max RemoteHost TwipsPerPixelY DeviceName hInstance Source IsReady Files
Connection HideSelection OSPlatform SelLength MultiSelect Controls Indentation Min RemotePort DrawMode LegalCopyright Path IsRootFolder
CursorDriver Locked OSVersion SelStart Placement DataBindings LabelEdit Object SocketHandle DrawStyle LegalTrademark RootFolder ParentFolder
DataSourceName MaxLength ScrollBarSize SmallChange SelectedItem DisabledImageList LineStyle Orientation State DrawWidth LogMode SerialNumber Path
EditMode MultiLine WorkAreaHeight TextPosition Separators HelpFile Nodes SyncBuddy DriverName LogPath ShareName ShortName
Environment OLEObjects WorkAreaLeft TickFrequency ShowTips HotImageList PathSeparator Value Duplex Major TotalSize ShortPath
EOFAction RightMargin WorkAreaTop TickStyle TabFixedHeight ImageList Scroll Wrap FillColor Minor VolumeName Size
ErrorThreshold ScrollBars WorkAreaWidth Value TabFixedWidth Negotiate SelectedItem FillStyle NonModalAllowed SubFolders
KeysetSize SelBullet TabMinWidth ShowTips SingleSel FontBold OLERqPnMsgText Type
LockType SelCharOffset Tabs TextAlignment Sorted FontCount OLERqPnMsgTitle
LoginTimeOut SelFontName TabStyle Wrappable FontItalic OLERqPnTimeout
LogMessage SelFontSize TabWidthStyle FontName OLESrvBsMsgText
MaxRows SelHangingIndent Fonts OLESrvBsMsgTitle
Negotiate SelIndent FontSize OLESrvBsRaiseError
Options SelLength FontStrikeThru OLESrvBsTimeout
Password SelProtected FontTransparent Path
Prompt SelRightIndent FontUnderline PrevInstance
QueryTimeout SelRTF hDC ProductName
ReadOnly SelStart Orientation RetainedProject
Resultset SelTabs Page Revision
ResultsetType SelText PaperBin StartMode
RowsetSize SetAlignment PaperSize TaskVisible
SQL SetBold Port ThreadID
UpdateCriteria SetColor PrintQuality Title
UserName SetItalic ScaleHeight UnattendeApp
Version SetStrikeThru ScaleLeft
SetUnderline ScaleMode
TextRTF ScaleTop
ScaleWidth
TrackDefault
TwipsPerPixelX
TwipsPerPixelY
Zoom

x x - x x x x x - - - - - - - - - - - - - -
x x - x x x - x x - - - - - - - - - - - - -
x x - x x x x x x - - - - - - - - - - - - -

Page 7
Controls

- x - x - x x x x - - - - - - - - - - - - -
x x - x x x x x x - - - - - - - - - - - - -
- x - x x x x x x - - - - - - - - - - - - -
x x - x x x x x x - - - - - - - - - - - - -
BeginTrans Find ClearSel Customize GetVisibleCount Accept Circle LogEvent Assert Clear Type Clear Copy BuildPath Close
Cancel GetLineFromChar GetNumTicks RestoreToolbar HitTest Bind EndDoc StartLogging Print GetData Raise CreateTextFile CopyFile Read
CommitTrans LoadFile SaveToolbar StartLabelEdit Close KillDoc GetFormat Delete CopyFolder ReadAll
RollbackTrans SaveFile Connect Line GetText Move CreateFolder ReadLine
UpdateControls SelPrint GetData NewPage SetData CreateTextFile Skip
UpdateRow Span Listen PaintPicture SetText DeleteFile SkipLine
UpTo PeekData PSet DeleteFolder Write
SendData Scale DriveExists WriteBlankLines
ScaleX FolderExists WriteLine
ScaleY GetAbsolutePathname
TextHeight GetBaseName
TextWidth GetDrive
GetDriveName
GetExtensionName
GetFile
GetFileNmae
GetFolder
GetParentFolderName
GetSpecialFolder
GetTempName
MoveFile
MoveFolder
OpenTextFile

- x - x - - x - x - - - - - - - - - - - - -
- x - x x x x x - - - - - - - - - - - - - -
- x - - x x x - - - - - - - - - - - - - -
x x - x x x x x x - - - - - - - - - - - - -
x x - x x x x x x - - - - - - - - - - - - -
- x - x - x - x x - - - - - - - - - - - - -
- x - x - x - x - - - - - - - - - - - - - -
- x - x - x - x - - - - - - - - - - - - - -
- x - x - x - x - - - - - - - - - - - - - -
- x - x - x - x x - - - - - - - - - - - - -
x x - x x x x x x - - - - - - - - - - - - -
x x - x x x x x x - - - - - - - - - - - - -
x x - x x x x x x - - - - - - - - - - - - -
- x - x x x x x x - - - - - - - - - - - - -
- x - x x x x x x - - - - - - - - - - - - -
- x - x x x x x x - - - - - - - - - - - - -
- x - x x x x x x - - - - - - - - - - - - -
- x - x x x x x x - - - - - - - - - - - - -
- x - x x x x x x - - - - - - - - - - - - -
x x - x - x - x x - - - - - - - - - - - - -
Error SelChange ConfigChangeCancelled Scroll PanelClick BeforeClick ButtonClick AfterLabelEdit DownClick Close
QueryCompleted ConfigChanged PanelDblClick ButtonDropDown BeforeLabelEdit Upclick Connect
Reposition DeviceArrival ButonMenuClick Collapse ConnectionRequest
DeviceOtherEvent Expand DataArrival
DeviceQueryRemove NodeCheck Error
DeviceQueryRemoveFailed NodeClick SendComplete
DeviceRemoveComplete SendProgress
DeviceRemovePending
DevModeChanged
DisplayChanged
PowerQuerySuspend
PowerResume
PowerStatusChanged
PowerSuspend
QueryChangeConfig
SettingChanged
SysColorChanged
TimeChanged

FileSystemObject
RichTextBox
RemoteData

TextStream
Clipboard
Statusbar

TreeView

WinSock
UpDown
TabStrip

Toolbar
SysInfo

Picture
Screen

Printer

Debug

Folder
Slider

Drive

Files
App

Err

Page 8
Menus

Visual Basic 6.0 Summary Information


VB 6.0 IDE Main Menu Structure

File Edit View


New Undo Code
Open Redo Object
Close Cut Definition
Save Copy Last Position
Save As Paste Object Browser
Save Workspace Paste Link Immediate Window
Find File Remove Locals Window
Summary Info Delete Watch Window
Page Setup Delete Table from Database Call Stack
Print Preview Select All Project Eplorer
Print Select All Columns Properties Window
Print Report Table Form Layout Window
Exit Find Property Pages
Find Next Table
Replace Zoom
Indent Show Panes
Outdent Toolbox
Insert File Data View Window
List Properties/Methods Color Palette
List Constants Toolbar
Quick Info Visual Component Manager
Parameter Info

VB 6.0 IDE Pop-Up Menus

Toolbar Toolbar TAB Toolbox


Debug Add TAB Compontents
Edit Delete TAB Add Tab
Form Editor Rename TAB Dockable
Standard Move Up Hide
Customize Move Down

Page 9
Menus

Information

Project Format Debug Run


Add Form Align Step Into Start
Add MDI Form Make Same Size Step Over Start With Full Compile
Add Module Size to Grid Step Out Break
Add Class Module Horizontal Spacing Run to Cursor End
Add User Control Vertical Spacing Add Watch Restart
Add Property Page Center in Form Edit Watch
Add User Document Order Quick Watch
Add DHTML Page Lock Controls Toggle Breakpoint
Add Data Report Clear All Breakpoints
Add WebClass Set Next Statement
Add Data Environment Show Next Statement
Add File
Remove ...
Components
References
... Properties

Project Form Properties Code


View Object View Code Description Cut
View Code Menu Editor Dockable Copy
Properties Lock Controls Hide Paste
Add ... Paste List Properites/Methods
Save As ... Properties List Constants
Remove ... Update User Controls Quick Info
Print Parameter Info
Dockable Complete Word
Hide Toggle
Publish Component Object Browser
Add Watch
Definition
Last Position

Page 10
Menus

HIde

Page 11
Menus

Query Diagram Tools Add-Ins


Run New Text Annotation Add Procedure Visual Data Manager
Clear Results Set Text Font Procedure Attributes Add-In Manager
Verify SQL Syntax Add Related Tables Menu Editor
Group By Show Relationship Labels Options
Change Type Modify Custom View Publish
Add to Output View Page Breaks
Sort Ascending Recalculate Page Breaks
Sort Descending Arrange Selection
Remove Filter Arrange Tables
Select All Rows from <Table A> AutoSize Selected Tables
Select All Rows from <Table B>

Title Bars
Restore
Move
Size
Minimize
Maximize
Close

Page 12
Menus

Window Help
Split Content
Tile Horizontally Index
Tile Vertically Search
Cascade Technical Support
Arrange Icons Microsoft On the Web

Page 13
API

API Information

Declare Function publicname Lib "libname" Alias "alias" (ByVal variable As type, ByVal variable As type) As Type

User32
Kernel32
GDI32

Advapi32.dll Advanced API services library supporting numerous APIs including many security and Registry calls
Comdlg32.dll Common dialog API library
Gdi32.dll Graphics Device Interface API library
Kernel32.dll Core Windows 32-bit base API support
Lz32.dll 32-bit compression routines
Mpr.dll Multiple Provider Router library
Netapi32.dll 32-bit Network API library
Shell32.dll 32-bit Shell API library
User32.dll Library for user itnerface routines
Version.dll Version library
Winmm.dll Windows multimedia library
Winspool.drv Print spoolder interface that contains the print spooler API calls

C Declaration Conversions (to VB)


ATOM ByVal variable as Integer
BOOL ByVal variable as Long
BYTE ByVal variable as Byte
CHAR ByVal variable as Byte
COLORREF ByVal variable as Long
DWORD ByVal variable as Long
HWND, HDC ByVal variable as Long
HMENU ByVal variable as Long
INT, UINT ByVal variable as Long
LONG ByVal variable as Long
LPARAM ByVal variable as Long
LPDWORD variable as Long
LPINT, LPUINT variable as Long
LPRECT variable as Type any variable of that User Type
LPSTR, LPCSTR ByVal variable as String
LPVOID variable As Any use ByVal when passing a string
LPWORD variable as Integer
LPRESULT ByVal variable as Long
NULL As Any or ByVal variable as Integer ByVal Nothing or ByVal 0& or vbNullString
SHORT ByVal variable as Integer
VOID Sub Procecure not applicable
WORD ByVal variable as Integer
WPARAM ByVal variable as Long

DECLARE in standard module are PUBLIC by default and be used anywhere in your app
DECLARE in any other module are PRIVATE to that module and MUST BE marked PRIVATE
Procedure names are CASE-SENSITIVE

ALIAS - Is the "real" name of the procedure as found in the DLL


ALIAS - If API uses string, you MUST use ALIAS with "A" to specify the correct character set (A=ANSI W=UNICODE)
ALIAS - WinNT supports W, but Win95/Win98 do not
ALIAS - Some DLLs have illegal VB name, so you must use ALIAS to rename the procedure
ALIAS - can also be the ordinal number of the procedure

TYPE - Very few DLLs recognize VARIANT


TYPE - ByRef is VB default
TYPE - Most DLLs expect ByVal
TYPE - In C documentation, C passes all arguments except arrays by value
TYPE - AS ANY can be used but it turns off all type checking

Strings - Pass string ByVal means passing pointer to first data byte in the string
Strings - Pass string ByRef means passing memory address to another memory addresss which refers to first data byte in the string
Strings - Most DLLs expect LPSTR (ASCIIZ) strings (end in a null character), which point to the first data byte
Strings - VB Strings should be passed ByVal (in general)
Strings - VB uses BSTR strings (header + data bytes) - BSTR is passed as a pointer to the header
Strings - DLL can modify data in a string variable that it receives as an argument - WARNING: if returned value is longer than passed value, system error occurs!
Strings - Generally, API do not expect string buffers longer than 255 characters
Strings - C & VB both treat a string array as an array of pointers to string data

Arrays - Pass entire array by passing the first element of the array ByRef
Arrays - Pass individual elements of array just like any other variable
Arrays - If pass binary data to DLL, use array of Byte characters

callback function - use AddressOf to pass a user-defined function that the DLL procedure can use
callback function - must have specific set of arguments, AS DEFINED by the API procedure
callback function - procedure MUST be in a .BAS module
callback function - passed procedure must be As Any or As Long

??? Wrapper function


??? Subclassing

To pass a null value - zero-length string ("") will not work


To pass a null value - use vbNullString
To pass a null value - change Type to Long and then use 0&

Control properties MUST be passed by value (use intermediate value to pass ByRef)
Handles - always declare as ByVal Long
Variant - to pass Variant to argument that is not a Variant type, pass the Variant data ByVal
UDT - cannot be passed except as ByRef

Play sound Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName as string, ByVal uFlags as Long) as Long
Result = sndPlaySound (SoundFile, 1)

SubClassing Declare Function CallWindowProc Lib "user32" Alias "CallWindowProcA" (ByVal lpPrevWndFunc as Long, ByVal hwnd as Long, byval msg as long, byval wParam as long, byval lParam as Long ) as long
Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long

Run associated EXE Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long

List window handles Declare Function EnumWindows Lib "user32" (ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long

Find prior instance of EXE Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long

Draw dotted rectangle Declare Function DrawFocusRect Lib "user32" Alias "DrawFocusRect" (ByVal hdc As Long, lpRect As RECT) As Long

Invert colors of rectangle Declare Function InvertRect Lib "user32" Alias "InvertRect" (ByVal hdc As Long, lpRect As RECT) As Long

Get cursor position Declare Function GetCursorPos Lib "user32" Alias "GetCursorPos" (lpPoint As POINTAPI) As Long

Always on top Declare Function SetWindowPos Lib "user32" Alias "SetWindowPos" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal x As Long, ByVal y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) As Long

Send messages to a window Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long

Find directories Declare Function GetWindowsDirectory Lib "kernel32" Alias "GetWindowsDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long
Declare Function GetSystemDirectory Lib "kernel32" Alias "GetSystemDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long
Declare Function GetTempPath Lib "kernel32" Alias "GetTempPathA" (ByVal nBufferLength As Long, ByVal lpBuffer As String) As Long
Declare Function GetCurrentDirectory Lib "kernel32" Alias "GetCurrentDirectory" (ByVal nBufferLength As Long, ByVal lpBuffer As String) As Long

Text alignment Declare Function GetTextAlign Lib "gdi32" Alias "GetTextAlign" (ByVal hdc As Long) As Long
Declare Function SetTextAlign Lib "gdi32" Alias "SetTextAlign" (ByVal hdc As Long, ByVal wFlags As Long) As Long

Flash a title bar Declare Function FlashWindow Lib "user32" Alias "FlashWindow" (ByVal hwnd As Long, ByVal bInvert As Long) As Long

Manipulate bitmaps Declare Function BitBlt Lib "gdi32" Alias "BitBlt" (ByVal hDestDC As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long
Declare Function PatBlt Lib "gdi32" Alias "PatBlt" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal dwRop As Long) As Long
Declare Function StretchBlt Lib "gdi32" Alias "StretchBlt" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal nSrcWidth As Long, ByVal nSrcHeight As Long, ByVal dwRop As Long) As Long
Declare Function CreateCompatibleBitmap Lib "gdi32" Alias "CreateCompatibleBitmap" (ByVal hdc As Long, ByVal nWidth As Long, ByVal nHeight As Long) As Long
Declare Function CreateCompatibleDC Lib "gdi32" Alias "CreateCompatibleDC" (ByVal hdc As Long) As Long

Rotate text Declare Function CreateFontIndirect Lib "gdi32" Alias "CreateFontIndirectA" (lpLogFont As LOGFONT) As Long

Timing Declare Function GetTickCount Lib "kernel32" Alias "GetTickCount" () As Long

File information Declare Function GetFileAttributes Lib "kernel32" Alias "GetFileAttributesA" (ByVal lpFileName As String) As Long
Declare Function GetFileSize Lib "kernel32" Alias "GetFileSize" (ByVal hFile As Long, lpFileSizeHigh As Long) As Long
Declare Function GetFullPathName Lib "kernel32" Alias "GetFullPathNameA" (ByVal lpFileName As String, ByVal nBufferLength As Long, ByVal lpBuffer As String, ByVal lpFilePart As String) As Long

Get window information Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVal hwnd As Long, ByVal lpClassName As String, ByVal nMaxCount As Long) As Long
Declare Function GetWindowText Lib "user32" Alias "GetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String, ByVal cch As Long) As Long
Declare Function GetParent Lib "user32" Alias "GetParent" (ByVal hwnd As Long) As Long

Identify window at cursor Declare Function WindowFromPoint Lib "user32" Alias "WindowFromPoint" (ByVal xPoint As Long, ByVal yPoint As Long) As Long

Registry editing Declare Function RegCreateKey Lib "advapi32.dll" Alias "RegCreateKeyA" (ByVal hKey As Long, ByVal lpSubKey As String, phkResult As Long) As Long
Declare Function RegDeleteKey Lib "advapi32.dll" Alias "RegDeleteKeyA" (ByVal hKey As Long, ByVal lpSubKey As String) As Long
Declare Function RegDeleteValue Lib "advapi32.dll" Alias "RegDeleteValueA" (ByVal hKey As Long, ByVal lpValueName As String) As Long
Declare Function RegQueryValueEx Lib "advapi32.dll" Alias "RegQueryValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal lpReserved As Long, lpType As Long, lpData As Any, lpcbData As Long) As Long
Declare Function RegSetValueEx Lib "advapi32.dll" Alias "RegSetValueExA" (ByVal hKey As Long, ByVal lpValueName As String, ByVal Reserved As Long, ByVal dwType As Long, lpData As Any, ByVal cbData As Long) As Long

Drawing functions Declare Function MoveToEx Lib "gdi32" Alias "MoveToEx" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long, lpPoint As POINTAPI) As Long
Declare Function LineTo Lib "gdi32" Alias "LineTo" (ByVal hdc As Long, ByVal x As Long, ByVal y As Long) As Long
Declare Function Ellipse Lib "gdi32" Alias "Ellipse" (ByVal hdc As Long, ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, ByVal Y2 As Long) As Long

Get icon Declare Function ExtractIcon Lib "shell32.dll" Alias "ExtractIconA" (ByVal hInst As Long, ByVal lpszExeFileName As String, ByVal nIconIndex As Long) As Long

Screen capture Declare Function SetCapture Lib "user32" Alias "SetCapture" (ByVal hwnd As Long) As Long
Declare Function CreateDC Lib "gdi32" Alias "CreateDCA" (ByVal lpDriverName As String, ByVal lpDeviceName As String, ByVal lpOutput As String, lpInitData As DEVMODE) As Long
Declare Function DeleteDC Lib "gdi32" Alias "DeleteDC" (ByVal hdc As Long) As Long
Declare Function BitBlt Lib "gdi32" Alias "BitBlt" (ByVal hDestDC As Long, ByVal x As Long, ByVal y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long
Declare Function ReleaseCapture Lib "user32" Alias "ReleaseCapture" () As Long
Declare Function ClientToScreen Lib "user32" Alias "ClientToScreen" (ByVal hwnd As Long, lpPoint As POINTAPI) As Long

Get user name Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As LongDeclare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As Long
Get computer name Declare Function GetComputerName Lib "kernel32" Alias "GetComputerNameA" (ByVal lpBuffer As String, nSize As Long) As LongDeclare Function GetComputerName Lib "kernel32" Alias "GetComputerNameA" (ByVal lpBuffer As String, nSize As Long) As Long
Get volume name/serial# Declare Function GetVolumeInformation Lib "kernel32" Alias "GetVolumeInformationA" (ByVal lpRootPathName As String, ByVal lpVolumeNameBuffer As String, ByVal nVolumeNameSize As Long, lpVolumeSerialNumber As Long, lpMaximumComponentLength As Long, lpFileSystemFlags As Long, ByVal lpFileSystemNameBuffer As String, ByVal nFileSystemNameSize As Long) As Long
Identify drive type Declare Function GetDriveType Lib "kernel32" Alias "GetDriveTypeA" (ByVal nDrive As String) As Long
Get free space Declare Function GetDiskFreeSpace Lib "kernel32" Alias "GetDiskFreeSpaceA" (ByVal lpRootPathName As String, lpSectorsPerCluster As Long, lpBytesPerSector As Long, lpNumberOfFreeClusters As Long, lpTotalNumberOfClusters As Long) As Long

INI editing Declare Function WritePrivateProfileSection Lib "kernel32" Alias "WritePrivateProfileSectionA" (ByVal lpAppName As String, ByVal lpString As String, ByVal lpFileName As String) As Long
Declare Function WritePrivateProfileString Lib "kernel32" Alias "WritePrivateProfileStringA" (ByVal lpApplicationName As String, ByVal lpKeyName As Any, ByVal lpString As Any, ByVal lpFileName As String) As Long
Declare Function GetPrivateProfileInt Lib "kernel32" Alias "GetPrivateProfileIntA" (ByVal lpApplicationName As String, ByVal lpKeyName As String, ByVal nDefault As Long, ByVal lpFileName As String) As Long
Declare Function GetPrivateProfileSection Lib "kernel32" Alias "GetPrivateProfileSectionA" (ByVal lpAppName As String, ByVal lpReturnedString As String, ByVal nSize As Long, ByVal lpFileName As String) As Long
Declare Function GetPrivateProfileString Lib "kernel32" Alias "GetPrivateProfileStringA" (ByVal lpApplicationName As String, ByVal lpKeyName As Any, ByVal lpDefault As String, ByVal lpReturnedString As String, ByVal nSize As Long, ByVal lpFileName As String) As Long

Put icon in system tray Declare Function CallWindowProc Lib "user32" Alias "CallWindowProcA" (ByVal lpPrevWndFunc As Long, ByVal hWnd As Long, ByVal Msg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long
Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long
Declare Function Shell_NotifyIcon Lib "shell32.dll" Alias " Shell_NotifyIconA" (ByVal dwMessage As Long, lpData As NOTIFYICONDATA) As Long
Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long)
Declare Function DrawEdge Lib "user32" Alias "DrawEdge" (ByVal hdc As Long, qrc As RECT, ByVal edge As Long, ByVal grfFlags As Long) As Long

Wait for program to stop Declare Function CreateProcess Lib "kernel32" Alias "CreateProcessA" (ByVal lpApplicationName As String, ByVal lpCommandLine As String, lpProcessAttributes As SECURITY_ATTRIBUTES, lpThreadAttributes As SECURITY_ATTRIBUTES, ByVal bInheritHandles As Long, ByVal dwCreationFlags As Long, lpEnvironment As Any, ByVal lpCurrentDriectory As String, lpStartupInfo As STARTUPINFO
Declare Function WaitForSingleObject Lib "kernel32" Alias "WaitForSingleObject" (ByVal hHandle As Long, ByVal dwMilliseconds As Long) As Long

Stop ctrl-alt-del Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, ByRef lpvParam As Any, ByVal fuWinIni As Long) As Long

Page 14
API

lpFileSystemNameBuffer As String, ByVal nFileSystemNameSize As Long) As Long

ng, lpEnvironment As Any, ByVal lpCurrentDriectory As String, lpStartupInfo As STARTUPINFO, lpProcessInformation As PROCESS_INFORMATION) As Long

Page 15
Internet

Clent = web browser


Server = web server
Most interations can be thought of as requests and responses

IIS applications - resides on the web server and is browser-independent. Must have IIS on the user PC
DHTML applications - requires MSIE 4.0 or greater AND VB run-time file (msvbvm50.dll) on the user PC

Controls: Internet Transfer Control, WinSock Control, and WebBrowser Control (from MSIE)

Page 16
Internet

n the user PC
on the user PC

Page 17

You might also like