Controls

Visual Basic 6.0 Control Summary - Properties / Methods / Events Instrinsic Controls
Horizontal Scroll Bar Vertical Scroll Bar n/a x x x x x x x x x x x x x x x x x x x x x x LargeChange Max Min SmallChange Value x x x CommandButton OLE Container OptionButton DriveListBox

FileListBox

ComboBox

DirListBox

CheckBox

ListBox

Picture

Shape

Frame

Image

File Name Property Name Alignment Appearance BackColor BackStyle BorderStyle Caption CausesValidation Container DataField DataFormat DataMember DataSource DragIcon DragMode Enabled Font ForeColor Height HelpContextID hWnd Index Left MaskColor MouseIcon MousePointer Object OLEDragMode OLEDropMode Parent RightToLeft Style TabIndex TabStop Tag Text ToolTipText Top Visible WhatsThisHelpID Width

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 DataChanged DisabledPicture DownPicture FontBold FontItalic FontName FontSize FontStrikeThru FontUnderline Picture UseMaskColor Value

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 DataChanged FontBold FontItalic FontName FontSize FontStrikeThru FontUnderline IntegralHeight ItemData List ListCount ListIndex Locked NewIndex SelLength SelStart SelText Sorted TopIndex

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 Cancel Default DisabledPicture DownPicture FontBold FontItalic FontName FontSize FontStrikeThru FontUnderline Picture UseMaskColor UseMnemonic Value

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

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

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 ActiveControl AutoRedraw ClipControls ControlBox Controls Count CurrentX CurrentY DrawMode DrawStyle DrawWidth FillColor FillStyle FontBold FontItalic FontName FontSize FontStrikeThru FontTransparent FontUnderline hDC Icon Image KeyPreview LinkMode LinkTopic MaxButton MDIChild MinButton Moveable NegotiateMenus Palette PaletteMode Picture ScaleHeight ScaleLeft ScaleMode ScaleTop ScaleWidth ShowInTaskBar StartupObject StartUpPosition WhatsThisButton WindowState

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 ClipControls FontBold FontItalic FontName FontSize FontStrikeThru FontUnderline

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 Columns DataChanged FontBold FontItalic FontName FontSize FontStrikeThru FontUnderline IntegralHeight IntegralHeight ItemData List ListCount ListIndex MultiSelect SelCount Selected Sorted TopIndex

n/a x x x x x x x x x x x x x x x x x x

n/a

n/a

n/a x x x x x x x x x x x x x x BorderColor BorderWidth DrawMode FillColor FillStyle Shape

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 Align FontBold BOFAction FontItalic Connect FontName DataBase FontSize DatabaseName FontStrikeThru DataBaseName FontUnderline DefaultCursorType List DefaultType ListCount EditMode ListIndex EOFAction Path Exclusive TopIndex FontBold FontItalic FontName FontSize FontStrikeThru FontUnderline Negotiate Options ReadOnly Recordset RecordsetType RecordSource

x x x x x x x x x x x x x x x x x x x x x x x x x x x x Drive Archive FontBold FileName FontItalic FontBold FontName FontItalic FontSize FontName FontStrikeThru FontSize FontUnderline FontStrikeThru List FontUnderline ListCount Hidden ListIndex List TopIndex ListCount ListIndex Locked MultiSelect Normal Path Pattern ReadOnly Selected System TopIndex

x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x LargeChange DataChanged AutoSize BorderColor Max Picture DataChanged BorderWidth Min Stretch FontBold DrawMode SmallChange FontItalic X1 Value FontName X2 FontSize Y1 FontStrikeThru Y2 FontUnderline LinkItem LinkMode LinkTimeout LinkTopic UseMnemonic WordWrap

x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x 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 DisabledPicture Align AppIsRunning DownPicture AutoRedraw AutoActivate FontBold AutoSize AutoVerbMenu FontItalic ClipControls Class FontName CurrentX Data FontSize CurrentY DataChanged FontStrikeThru DataChanged DataText FontUnderline DrawMode DisplayType Picture DrawStyle FileNumber UseMaskColor DrawWidth Format Value FillColor HostName FillStyle IpOLEObject FontBold MiscFlags FontItalic ObjectAcceptFormats FontName ObjectAcceptFormatsCount FontSize ObjectGetFormats FontStrikeThru ObjectGetFormatsCount FontTransparent ObjectVerbFlags FontUnderline ObjectVerbs hDC ObjectVerbsCount Image OLEDropAllowed LinkItem OLEType LinkMode OLETypeAllowed LinkTimeOut PasteOK LInkTopic Picture Negotiate SizeMode Picture SourceDoc ScaleHeight SourceItem ScaleLeft UpdateOptions ScaleMode Verb ScaleTop ScaleWidth

x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x DataChanged Interval FontBold FontItalic FontName FontSize FontStrikeThru FontUnderline HideSelection LinkItem LinkMode LinkTimeout LinkTopic Locked MaxLength MultiLine PasswordChar ScrollBars SelLength SelStart SelText

Methods Refresh Drag Move

x x x

x x x

x x x

x x x

x x x

x x x

x x x

x x

x x x

x x x

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 1

Timer -

Label

Form

Data

Text

Line

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

Events Change Click DblClick DragDrop DragOver GotFocus KeyDown KeyPress KeyUp LostFocus MouseDown MouseMove MouseUp OLECompleteDrag OLEDragDrop OLEDragOver OLEGiveFeedBack OLESetData OLEStartDrag Validate

x x x x x x x x x x x x x x x x x x

x x x x x x x x x x x x x x x x x DropDown Scroll

x x 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 Error Reposition Resize Scroll

x x x x x x x x x x x x x x x x x x x Scroll

x x x x x x x x x x x x x x x

x x x x x x x x x x x x x x x x x x x PathChange PatternChange Scroll

x x x x x x x x x x x x x x x x x x Activate DeActivate Initialize LinkClose LinkError LinkExecute LinkOpen Load Paint QueryUnload Resize Terminate Unload

x x x x x x x x x x x x x Scroll

x x x x x x x x x

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

x x x x x x x x x x x x x x LinkClose LinkError LinkNotify LinkOpen

-

x x x x x x x x x x x x x x x x x x x ItemCheck Scroll

x x x x x x x x x x x x x ObjectMove Resize Updated

x x x x x x x x x x x x x x x x x x x

x x x x x x x x x x x x x x x x x x x x LinkClose LinkError LinkNotify LinkOpen Paint Resize

-

x x x x x x x x x x x x x x x x x x x x LinkClose LinkError LinkNotify LinkOpen

Timer

x x x x x x x x x Scroll

Horizontal Scroll Bar

Page 2

Vertical Scroll Bar

CommandButton

OLE Container

OptionButton

DriveListBox

FileListBox

ComboBox

DirListBox

CheckBox

ListBox

Picture

Shape

Image

Timer

Form

Data

Line

Controls

DBGrid (not installed)

ADO Data Control

Internet Transfer

CommonDialog

msadodc 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 BOFAction CacheSize CommandTimeout COmmandType ConnectionString ConnectionTimeout CursorLocation CursorType EOFAction LockType MaxRecords Mode Negotiate Orientation Password Provider Recordset RecordSource UserName

mscomct2 x x x x x x x x x x x x x x x x x x x x x x x x AutoPlay Center

comdlg32 x x x x x x x Action CancelError Color Copies DefaultExt DialogTitle FileName FileTitle Filter FilterIndex Flags FontBold FontItalic FontName FontSize FontStrikeThru FontUnderLine FromPage hDC HelpCommand HelpContext HelpFile HelpKey InitDir Max MaxFileSize Min Orientation PrinterDefault ToPage

comct332 x x x x x x x x x x x x x x x x x x x x x x

msdatgrd

msdatlst x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x BoundColumn BoundText DataBindings DataChanged DataCombo IntegralHeight ListField locked MatchEntry MatchWithList RowMember RowSource SelectedItem SelLength SelStart SelText VisibleCount VisibleItems

msdatlst x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x BoundColumn BoundText DataBindings DataChanged DataList IntegralHeight ListField Locked MatchEntry MatchWithList RowMember RowSource SelectedItem VisibleCount VisibleItems

msdatrep x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x ActiveRow CaptionStyle CurrentRecord DataBindings DataFields DataRepeater IntegralHeight PropertyName RepeatedControl RepeatedControlName RepeaterBindings RowDividerStyle RowIndicator ScrollBars Visible Records Visible Rows

dblist32 x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x BoundColumn BoundText DataBindings DataChanged DBCombo IntegralHeight ListField Locked MatchEntry MatchWithList RowSource SelectedItem SelLength SelStart SelText VisibleCount VisibleItems

dblist32 x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x BoundColumn BoundText DataBindings DataChanged DBList IntegralHeight ListField Locked MatchEntry MatchWithList RowSource SelectedItem VisibleCount VisibleItems

dbgrid32 x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x AddNewMode Align AllowAddNew AllowArrows AllowDelete AllowRowSizing AllowUpdate ApproxCount Bookmark BoundText Col ColumnHeaders ColumnHeaders Columns CurrentCellModified CurrentCellVisible DataBindings DataChanged DataFormats DataGrid DefColWidth EditActive ErrorText FirstRow HeadFont

mscomct2

mscomct2

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 CaseSensitive ComboItems DataBindings ImageList Indentation Locked SelectedItem SelLength SelStart SelText UsePathSep

mscomctl x x x x x x x x x x x hImageList ImageHeight ImageWidth ListImages UseMaskColor

msinet x x x x x x x x -

mscomctl

msapi32 x x x x x x x Action AddressCaption AddressEditField AddressEditFieldCount AddressLabel AddressModifiable AddressResolveUI AttachmentCount AttachmentIndex AttachmentName AttachmentPathName AttachmentPosition AttachmentType FetchMsgType FetchSorted FetchUnreadOnly MsgConversationID MsgDateReceived MsgID MsgIndex MsgNoteText MsgOrigAddress MsgOrigDisplayName MsgRead MsgReceiptRequested MsgSent MsgSubject MsgType RecipAddress 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 Align AddNewMode HeadLines BandBorders Align hWndEditor Bands AllowAddNew LeftCol EmbossHighLight AllowArrows MarqueeStyle EmbossPicture AllowDelete Negotiate EmbossShadow AllowRowSizing RecordSelectors FixedOrder AllowUpdate Row ImageList ApproxCount RowDividerStyle Negotiate Bookmark RowHeight Orientation BoundText RowHeight Picture Col ScrollBars RowCount ColumnHeaders SelBookMarks VariantHeight ColumnHeaders SelEndCol Columns SelEndRow CurrentCellModified SelLength CurrentCellVisible SelStart DataBindings SelStartCol DataChanged SelStartRow DataFormats SelTest DataGrid Split DefColWidth Splits EditActive TabAcrossSplits ErrorText TabAction FirstRow VisibleCols HeadFont WrapCellPointer

HeadLines hWndEditor LeftCol MarqueeStyle Negotiate RecordSelectors Row RowDividerStyle RowHeight RowHeight ScrollBars SelBookMarks SelEndCol SelEndRow SelLength SelStart SelStartCol SelStartRow SelTest Split Splits TabAcrossSplits TabAction VisibleCols WrapCellPointer

x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x CalendarBackColor Arrows CalendarForeColor LargeChange CalendarTitleBackColor Max CalendarTitleForeColor Min CalendarTrailingForeColor Orientation CheckBox SmallChange CustomFormat Value DataBindings DataChanged DateOfWeek Day Format Hour MaxDate MinDate Minute Month Second UpDown Value Year

x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x AccessType AllowColumnReorder Document Arrange hInternet CheckBoxes Password ColumnHeaderIcons Protocol ColumnHeaders Proxy DropHighLight RemoteHost FlatScrollBar RemotePort FullRowSelect RequestTimeout GridLines ResponseCode HideColumnHeaders ResponseInfo HideSeleciton StillExecuting HotTracking URL HoverSelection UserName Icons LabelEdit LabelWrap ListItems MultiSelect Picture PictureAlignment SelectedItem SmallIcons Sorted SortKey SortOrder TextBackground View

x x x

x x

-

-

x x x

x x x

x x x

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

MAPIMessages -

DataRepeater

ImageCombo

FlatScrollBar

DataCombo

DBCombo

Animation

ImageList

DTPicker

DataGrid

ListView

DataList

Coolbar

DBList

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

x x x x x x x x EndofRecordset Error FetchComplete FetchProgress FieldChangeComplete MoveComplete RecordChangeComplete RecordSetChangeComplete WillChangeField WillChangeRecord WillChangeRecordSet WillMove

x x x x x x x x x x x x x x x x

-

-

x x x x x x x x x x x x x x AfterColEdit AfterColUpdate AfterDelete AfterInsert AfterUpdate BeforeColEdit BeforeColUpdate BeforeDelete BeforeInsert BeforeUpdate ButtonClick ColEdit ColResize Error HeadClick OnNewAdd RowColChange RowResize Scroll SelChange SplitChange

x x x x x x x x x x x x x x x x x x x x

x x x x x x x x x x x x x x x x x x x

x x x x x x x x x x x x x ActiveRowChanged CurrentRecordChange DataUpdate RepeatedControlLoaded RepeatedControlUnloaded VisibleRecordChanged

x x x x x x x x x x x x x x x x x x x x

x x x x x x x x x x x x x x x x x x x

x x x x x x x x x x x x x x AfterColEdit AfterColUpdate AfterDelete AfterInsert AfterUpdate BeforeColEdit BeforeColUpdate BeforeDelete BeforeInsert BeforeUpdate ButtonClick ColEdit ColResize Error HeadClick OnNewAdd RowColChange RowResize Scroll SelChange SplitChange

x x x x x x x x x x x x x x x x x x x x CallBackKeyDown CloseUp DropDown Format FormatSize

x x x Scroll

x x x x x x x x x x x x x x x x DropDown

-

StateChanged

-

-

Internet Transfer

CommonDialog

Page 4

MAPIMessages

ImageCombo

FlatScrollBar

DBCombo

Animation

ImageList

DTPicker

ListView

Coolbar

DBGrid

DBList

Controls

OCX Controls
Microsoft Tab (SSTAB) Microsoft Chart MultiMedia MCI MAPISession MSHFlexGrid ProgressBar mscomctl x x x x x x x x x x x x x x x x x x x x x x x Align Max Min Negotiate Orientation Scrolling Value x x

MaskedEdit

MSFlexGrid

MonthView

msapi32 x x x x x x Action DownLoadMail LogOnUI NewSession Password SessionID UserName

msmask32 x

mschart

tabctl32 x x x x x x x x x x x x x x x x x

mscomct2

mscomm32 x x x x x x x -

msflxgrd

mshflxgd x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x AllowBigSelection AllowUserResize BackColorBkg BackColorFixed BackColorHeader BackColorIndent BackColorSel BackColorUnpopulated BandColIndex BandData BandDisplay BandExpandable BandIndent BandLevel Bands CellAlignment CellBackColor CellFontBold CellFontItalic CellFontName CellFontSize CellFontStrikeThru CellFontUnderline CellFontWidth CellForeColor

mci32 x x x x x x x x x x x x x x x x x x x x x x x x x AutoEnable BackEnabled BackVisible ButtonEnabled ButtonVisible CanEject CanPlay CanRecord CanStep Command DataBindings DeviceID DeviceType EjectEnabled EjectVisible Error ErrorMessage FileName Frames From hWndDisplay Length Mode NextEnabled NextVisible Notify NotifyMessage NotifyValue

picclp x x x x x x x x x CellHeight CellWidth Clip ClipHeight ClipWidth ClipX ClipY Cols GraphicCell Picture Rows StretchX StretchY

x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x AllowPrompt ActiveSeriesCount AutoTab AllowDithering ClipMode AllowDynamicRotation ClipText AllowSelections DataBindings AllowSeriesSelection DataChanged AutoIncrement Format BackDrop FormattedText Chart3D HideSelection ChartType Mask Column MaxLength ColumnCount PromptChar ColumnLabel PromptInclude ColumnLabelCount SelLength ColumnLabelIndex SelStart Data SelText DataBindings DataGrid DoSetCursor Drag DrawMode FootNote FootnoteText Legend Plot RandomFill Repaint Row RowCount RowLabel RowLabelCount RowLabelIndex SeriesColumn 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 x x x x x x x x x x x x x x x x x x x x x x DataBindings Databindings Picture Day Rows DayBold ShowFocusRect DataChanged Tab DayOfWeek TabCaption MaxDate TabEnabled MaxSelCount TabHeight MinDate TabMaxWidth Month TabOrientation MonthBackColor TabPicture MonthColumns Tabs MonthRows TabsPerRow MultiSelect TabVisible ScrollRate WordWrap SetlEnd SelStart ShowToday ShowWeekNumbers StartOfWeek TitleBackColor TitleForeColor TrailingForeColor Value VisibleDays Year Week

x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x Break AllowBigSelection CDHolding AllowUserResize CommEvent BackColorBkg CommID BackColorFixed CommPort BackColorSel CTSHolding BandData DSRHolding CellAlignment DTREnable CellBackColor EOFEnable CellFontBold Handshaking CellFontItalic InBufferCount CellFontName InBufferSize CellFontSize Input CellFontStrikeThru InputLen CellFontUnderline InputMode CellFontWidth Nulldiscard CellForeColor OutBufferCountCellHeight OutBufferSize CellLeft Output CellPicture PortOpen CellPictureAlignment ParityReplace CellTextStyle RThreshold CellTop RTSEnable CellWidth Settings Clip SThreshold Col ColAlignment ColAlignmentBand ColAlignmentHeader ColData ColIsVisible Cols ColSel

ColWidth DataBindings FillStyle FixedCols FixedRows FocusRect FontWidth FontWidthBand FontWidthFixed FontWidthHeader ForeColorBand ForeColorFixed ForeColorHeader ForeColorSel FormatString GridColor GridColorBand GridColorFixed GridColorHeader GridColorIndent GridColorUnpopulated GridLines GridLines GridLinesBand GridLinesFixed GridLinesHeader GridLinesIndent GridLinesUnpopulated GridLineWidth GridLineWidthBand GridLineWidthIndent GridLineWidthUnpopulated

HighLight LeftCol MergeCells MergeCol MergeRow MouseCol MouseRow Picture PictureType ReDraw Row RowData RowHeight RowHeightMin RowIsVisible RowPos Rows RowSel ScrollBars ScrollTrack SelectionMode Sort TextArray TextMatrix TextStyle TextStyleBand TextStyleFixed TextStyleHeader TopRow Version WordWrap

CellHeight CellLeft CellPicture CellPictureAlignment CellTextStyle CellTop CellType CellWidth Clip Col ColAignmentFixed ColAlignment ColAlignmentBand ColAlignmentHeader ColData ColHeader ColHeaderCaption ColIsVisible ColPosition ColPosition Cols ColSel ColWidth DataBindings FillStyle

FixedCols FixedRows FocusRect FontBand FontFixed FontHeader FontWidth FontWidthBand FontWidthFixed FontWidthHeader ForeColorBand ForeColorFixed ForeColorHeader ForeColorSel FormatString GridColor GridColorBand GridColorFixed GridColorHeader GridColorIndent GridColorUnpopulated GridLines GridLines GridLinesBand GridLinesFixed

GridLinesHeader GridLinesIndent GridLinesUnpopulated GridLineWidth GridLineWidthBand GridLineWidthFixed GridLineWidthHeader GridLineWidthIndent GridLineWidthUnpopulated HighLight LeftCol MergeCells MergeCol MergeRow MouseCol MouseRow Picture PictureType RecordSet ReDraw Row RowData RowExpandable RowExpanded RowHeight

RowHeightMin RowIsVisible RowPos RowPos RowPosition Rows RowSel RowSizingMode ScrollBars ScrollTrack SelectionMode Sort TextArray TextMatrix TextStyle TextStyleBand TextStyleFixed TextStyleHeader TopRow Version WordWrap

Orientation PauseEnabled PauseVisible PlayEnabled PlayVisible Position PrevEnabled PrevVisible RecordEnabled RecordMode RecordVisible Shareable Silent Start StepEnabled StepVisible StopEnable StopVisible TimeFormat To Track TrackLength TrackPosition Tracks UpdateInterval UsesWindows Wait

-

x x x

x x x

x x

x x x

-

x x x

x x x

x x x

Page 5

PictureClip -

MSComm

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

-

x x x x x x x x x x 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 AxisLabelActivated AxisLabelSelected AxisLabelUpdated AxisSelected AxisTitleActivated AxisTitleSelected AxisTitleUpdated AxisUpdated ChartActivated ChartSelected ChartUpdated DataUpdated DonePainting FootNoteActivated FootNoteSelected FootNoteUpdated LegendActivated LegendSelected LegendUpdated PlotActivated PlotSelected PlotUpdated PointActivated PointLabelActivated PointLabelSelected PointLabelUdated PointSelected PointUpdated SeriesActivated SeriesSelected SeriesUpdated TitleActivated TitleSelected TitleUpdated

x x x x x x x x x x x x x x x x x x x

x x x x x x x x x x x x x x x x x x x DateClick DateDblClick GetDayBold SelChange

OnComm

x x x x x x x x x x x x x x x x x x Compare EnterCell LeaveCell RowColChange Scroll SelChange

x x x x x x x x x x x x x x x x x x x Collapse Compare EnterCell Expand LeaveCell RowColChange Scroll SelChange

x x x x x x x x x x x BackClick BackCompleted BackGotFocus BackLostFocus ButtonClick ButtonCompleted ButtonGotFocus ButtonLostFocus Done EjectClick EjectComplete EjectGotFocus EjectLostFocus NextClick NextCompleted NextGotFocus NextLostFocus PauseClick PauseCompleted PauseGotFocus PauseLostFocus PlayClick PlayCompleted PlayGotFocus PlayLostFocus PrevClick PrevComplete PrevGotFocus PrevLostFocus RecordClick RecordCompleted RecordGotFocus RecordLostFocus StatusUpdate StepClick StepComplete StepGotFocus StepLostFocus StopClick StopComplete StopGotFocus StopLostFocus

-

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

MultiMedia MCI

TabbedDialog

MAPISession

Page 6

ProgressBar

MaskedEdit

MSFlexGrid

MonthView

PictureClip

MSComm

Controls

System Objects
RichTextBox RemoteData

File System Objects
FileSystemObject

msrdc x x x x x x x x x x x x x x x x x x x x

richtx32

sysinfo x x x x x x ACStatus BatteryFullTime BatteryLifePercent BatteryLifeTime BatteryStatus OSBuild OSPlatform OSVersion ScrollBarSize WorkAreaHeight WorkAreaLeft WorkAreaTop WorkAreaWidth

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 LargeChange DataBindings Max Min Orientation SelectRange SelLength SelStart SmallChange TextPosition TickFrequency TickStyle Value

mscomctl x x x x x x x x x x x x x x x x x x x x x x Align Negotiate Panels ShowTIps SimpleText

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 ClientHeight ClientLeft ClientTop ClientWidth HotTracking MultiRow MultiSelect Placement SelectedItem Separators ShowTips TabFixedHeight TabFixedWidth TabMinWidth Tabs TabStyle TabWidthStyle

mscomctl x x x x x x x x x x x x x x x x x x x

mscomctl

mscomct2 x x x x x x x x x x x x x x x x x x x x x x x AutoBuddy BuddyControl BuddyProperty hWnd Increment Max Min Object Orientation SyncBuddy Value Wrap

mswinsck x x x x x x x BytesReceived LocalHostName LocalIP LocalPort Protocol RemoteHost RemotePort SocketHandle State

n/a x x x x ActiveControl ActiveForm FontCount Fonts TwipsPerPixelX TwipsPerPixelY

n/a x x x x ColorMode Copies Count CurrentX CurrentY DeviceName DrawMode DrawStyle DrawWidth DriverName Duplex FillColor FillStyle FontBold FontCount FontItalic FontName Fonts FontSize FontStrikeThru FontTransparent FontUnderline hDC Orientation Page PaperBin PaperSize Port PrintQuality ScaleHeight ScaleLeft ScaleMode ScaleTop ScaleWidth TrackDefault TwipsPerPixelX TwipsPerPixelY Zoom

n/a Comments CompanyName EXEName FileDescription HelpFile hInstance LegalCopyright LegalTrademark LogMode LogPath Major Minor NonModalAllowed OLERqPnMsgText OLERqPnMsgTitle OLERqPnTimeout OLESrvBsMsgText OLESrvBsMsgTitle OLESrvBsRaiseError OLESrvBsTimeout Path PrevInstance ProductName RetainedProject Revision StartMode TaskVisible ThreadID Title UnattendeApp

n/a -

n/a -

n/a x x Handle hPal Type

n/a Description HelpContext HelpFile LastDLLError Number Source

n/a AvailableSpace DriveLetter DriveType FileSystem FreeSpace IsReady Path RootFolder SerialNumber ShareName TotalSize VolumeName

n/a x Attributes DateCreated DateLastAccessed DateLastModified Drive Files IsRootFolder ParentFolder Path ShortName ShortPath Size SubFolders Type

n/a Count Item

n/a Drives

n/a AtEndOfLine AtEndOfStream Column Line

x x x x x x x x x x x 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 BatchCollisionCount BulletIndent BatchCollisionRows DataBindings BatchSize DataChanged BOFAction DisableNoScroll Connect FileName Connection HideSelection CursorDriver Locked DataSourceName MaxLength EditMode MultiLine Environment OLEObjects EOFAction RightMargin ErrorThreshold ScrollBars KeysetSize SelBullet LockType SelCharOffset LoginTimeOut SelFontName LogMessage SelFontSize MaxRows SelHangingIndent Negotiate SelIndent Options SelLength Password SelProtected Prompt SelRightIndent QueryTimeout SelRTF ReadOnly SelStart Resultset SelTabs ResultsetType SelText RowsetSize SetAlignment SQL SetBold UpdateCriteria SetColor UserName SetItalic Version SetStrikeThru SetUnderline TextRTF

x x x x x x x x x x x 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 CheckBoxes AllowCustomize DropHighLight ButtonHeight FullRowSelect ButtonWidth HideSelection ButtonMenus HotTracking Buttons ImageList Controls Indentation DataBindings LabelEdit DisabledImageList LineStyle HelpFile Nodes HotImageList PathSeparator ImageList Scroll Negotiate SelectedItem ShowTips SingleSel TextAlignment Sorted Wrappable

x x x

x x x

-

x x x

x x x

x x x

x x

x x x

x x

-

-

-

-

-

-

-

-

-

-

-

-

Page 7

TextStream -

Clipboard

Statusbar

TreeView

WinSock

UpDown

TabStrip

Toolbar

SysInfo

Picture

Screen

Printer

Debug

Folder

Slider

Drive

Files

App

Err

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

x x x x x x Error QueryCompleted Reposition

x x x x x x x x x x x x x x x x x x x x SelChange

ConfigChangeCancelled Scroll ConfigChanged DeviceArrival DeviceOtherEvent DeviceQueryRemove DeviceQueryRemoveFailed DeviceRemoveComplete DeviceRemovePending DevModeChanged DisplayChanged PowerQuerySuspend PowerResume PowerStatusChanged PowerSuspend QueryChangeConfig SettingChanged SysColorChanged TimeChanged

x x x x x x x x x x x x x x x x x x x

x x x x x x x x x x x x x PanelClick PanelDblClick

x x x x x x x x x x x x x x x x x x BeforeClick

x x x x x x x x x x x x x x ButtonClick ButtonDropDown ButonMenuClick

x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x AfterLabelEdit DownClick BeforeLabelEdit Upclick Collapse Expand NodeCheck NodeClick

Close Connect ConnectionRequest DataArrival Error SendComplete SendProgress

-

-

-

-

-

-

-

-

-

-

-

-

FileSystemObject

RichTextBox

RemoteData

Page 8

TextStream

Clipboard

Statusbar

TreeView

WinSock

UpDown

TabStrip

Toolbar

SysInfo

Picture

Screen

Printer

Debug

Folder

Slider

Drive

Files

App

Err

Menus

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

VB 6.0 IDE Pop-Up Menus
Toolbar Debug Edit Form Editor Standard Customize Toolbar TAB Add TAB Delete TAB Rename TAB Move Up Move Down Toolbox Compontents Add Tab Dockable Hide

Page 9

Menus

Page 10

Menus

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

Project View Object View Code Properties Add ... Save As ... Remove ... Print Dockable Hide Publish Component

Form View Code Menu Editor Lock Controls Paste Properties Update User Controls

Properties Description Dockable Hide

Code Cut Copy Paste List Properites/Methods List Constants Quick Info Parameter Info Complete Word Toggle Object Browser Add Watch Definition

Page 11

Menus Last Position HIde

Page 12

Menus

Query Run Clear Results Verify SQL Syntax Group By Change Type Add to Output Sort Ascending Sort Descending Remove Filter Select All Rows from <Table A> Select All Rows from <Table B>

Diagram New Text Annotation Set Text Font Add Related Tables Show Relationship Labels Modify Custom View View Page Breaks Recalculate Page Breaks Arrange Selection Arrange Tables AutoSize Selected Tables

Tools Add Procedure Procedure Attributes Menu Editor Options Publish

Add-Ins Visual Data Manager Add-In Manager

Title Bars Restore Move Size Minimize Maximize Close

Page 13

Menus

Page 14

Menus

Window Split Tile Horizontally Tile Vertically Cascade Arrange Icons

Help Content Index Search Technical Support Microsoft On the Web

Page 15

Menus

Page 16

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

C Declaration Conversions (to VB) ATOM BOOL BYTE CHAR COLORREF DWORD HWND, HDC HMENU INT, UINT LONG LPARAM LPDWORD LPINT, LPUINT LPRECT LPSTR, LPCSTR LPVOID LPWORD LPRESULT NULL SHORT VOID WORD WPARAM

ByVal variable as Integer ByVal variable as Long ByVal variable as Byte ByVal variable as Byte ByVal variable as Long ByVal variable as Long ByVal variable as Long ByVal variable as Long ByVal variable as Long ByVal variable as Long ByVal variable as Long variable as Long variable as Long variable as Type ByVal variable as String variable As Any variable as Integer ByVal variable as Long As Any or ByVal variable as Integer ByVal variable as Integer Sub Procecure ByVal variable as Integer ByVal variable as Long

any variable of that User Type use ByVal when passing a string

ByVal Nothing or ByVal 0& or vbNullString not applicable

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 callback function callback function callback function

- use AddressOf to pass a user-defined function that the DLL procedure can use - must have specific set of arguments, AS DEFINED by the API procedure - procedure MUST be in a .BAS module - 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) 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 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 Declare Function EnumWindows Lib "user32" (ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long Declare Function DrawFocusRect Lib "user32" Alias "DrawFocusRect" (ByVal hdc As Long, lpRect As RECT) As Long Declare Function InvertRect Lib "user32" Alias "InvertRect" (ByVal hdc As Long, lpRect As RECT) As Long

SubClassing

Run associated EXE List window handles Find prior instance of EXE Draw dotted rectangle Invert colors of rectangle

Get cursor position Always on top Send messages to a window Find directories

Declare Function GetCursorPos Lib "user32" Alias "GetCursorPos" (lpPoint As POINTAPI) As Long 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 Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long Declare Declare Declare Declare Function Function Function Function GetWindowsDirectory Lib "kernel32" Alias "GetWindowsDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long GetSystemDirectory Lib "kernel32" Alias "GetSystemDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long GetTempPath Lib "kernel32" Alias "GetTempPathA" (ByVal nBufferLength As Long, ByVal lpBuffer As String) As Long 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 Declare Function FlashWindow Lib "user32" Alias "FlashWindow" (ByVal hwnd As Long, ByVal bInvert As Long) As Long Declare Declare Declare Declare Declare Function Function Function Function 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 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 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 CreateCompatibleBitmap Lib "gdi32" Alias "CreateCompatibleBitmap" (ByVal hdc As Long, ByVal nWidth As Long, ByVal nHeight As Long) As Long CreateCompatibleDC Lib "gdi32" Alias "CreateCompatibleDC" (ByVal hdc As Long) As Long

Flash a title bar Manipulate bitmaps

Rotate text Timing

Declare Function CreateFontIndirect Lib "gdi32" Alias "CreateFontIndirectA" (lpLogFont As LOGFONT) As Long 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 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 Declare Function WindowFromPoint Lib "user32" Alias "WindowFromPoint" (ByVal xPoint As Long, ByVal yPoint As Long) As Long Declare Declare Declare Declare Declare Function Function Function Function Function RegCreateKey Lib "advapi32.dll" Alias "RegCreateKeyA" (ByVal hKey As Long, ByVal lpSubKey As String, phkResult As Long) As Long RegDeleteKey Lib "advapi32.dll" Alias "RegDeleteKeyA" (ByVal hKey As Long, ByVal lpSubKey As String) As Long RegDeleteValue Lib "advapi32.dll" Alias "RegDeleteValueA" (ByVal hKey As Long, ByVal lpValueName As String) As Long 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 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

Get window information

Identify window at cursor Registry editing

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 Declare Function ExtractIcon Lib "shell32.dll" Alias "ExtractIconA" (ByVal hInst As Long, ByVal lpszExeFileName As String, ByVal nIconIndex As Long) As Long Declare Declare Declare Declare Declare Declare Declare Declare Declare Declare Declare Declare Declare Declare Declare Declare Declare Declare Declare Declare Declare Declare Function Function Function Function Function Function Function Function Function Function Function Function Function Function Function Function SetCapture Lib "user32" Alias "SetCapture" (ByVal hwnd As Long) As Long CreateDC Lib "gdi32" Alias "CreateDCA" (ByVal lpDriverName As String, ByVal lpDeviceName As String, ByVal lpOutput As String, lpInitData As DEVMODE) As Long DeleteDC Lib "gdi32" Alias "DeleteDC" (ByVal hdc As Long) As Long 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 ReleaseCapture Lib "user32" Alias "ReleaseCapture" () As Long ClientToScreen Lib "user32" Alias "ClientToScreen" (ByVal hwnd As Long, lpPoint As POINTAPI) As Long 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 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 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 GetDriveType Lib "kernel32" Alias "GetDriveTypeA" (ByVal nDrive As String) As Long GetDiskFreeSpace Lib "kernel32" Alias "GetDiskFreeSpaceA" (ByVal lpRootPathName As String, lpSectorsPerCluster As Long, lpBytesPerSector As Long, lpNumberOfFreeClusters As Long, lpTotalNumberOfClusters As Long) As Long WritePrivateProfileSection Lib "kernel32" Alias "WritePrivateProfileSectionA" (ByVal lpAppName As String, ByVal lpString As String, ByVal lpFileName As String) As Long WritePrivateProfileString Lib "kernel32" Alias "WritePrivateProfileStringA" (ByVal lpApplicationName As String, ByVal lpKeyName As Any, ByVal lpString As Any, ByVal lpFileName As String) As Long GetPrivateProfileInt Lib "kernel32" Alias "GetPrivateProfileIntA" (ByVal lpApplicationName As String, ByVal lpKeyName As String, ByVal nDefault As Long, ByVal lpFileName As String) As Long GetPrivateProfileSection Lib "kernel32" Alias "GetPrivateProfileSectionA" (ByVal lpAppName As String, ByVal lpReturnedString As String, ByVal nSize As Long, ByVal lpFileName As String) As Long 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

Get icon Screen capture

Get user name Get computer name Get volume name/serial# Identify drive type Get free space INI editing

Put icon in system tray

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 Function GetWindowLong Lib "user32" Alias "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long Function Shell_NotifyIcon Lib "shell32.dll" Alias " Shell_NotifyIconA" (ByVal dwMessage As Long, lpData As NOTIFYICONDATA) As Long Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long) 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 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

Stop ctrl-alt-del

Page 17

API

lpFileSystemNameBuffer As String, ByVal nFileSystemNameSize As Long) As Long

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

Page 18

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 19

Internet

n the user PC on the user PC

Page 20

Sign up to vote on this title
UsefulNot useful