0% found this document useful (0 votes)
5 views2,906 pages

VB6 ADODC Control Reference Guide

Description about DotNet Framework

Uploaded by

Zin Min Tun
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views2,906 pages

VB6 ADODC Control Reference Guide

Description about DotNet Framework

Uploaded by

Zin Min Tun
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Contents

[Link].VB6
ADODC
addDataSourceListener
ADODC
BackColor
BOF
BOFAction
CacheSize
CommandTimeout
CommandType
ConnectionString
ConnectionTimeout
CursorLocation
CursorType
Dispose
EndOfRecordset
EOF
EOFAction
Error
FetchComplete
FetchProgress
FieldChangeComplete
getDataMember
getDataMemberCount
getDataMemberName
LockType
MaxRecords
Mode
MoveComplete
OnResize
Orientation
Password
RecordChangeComplete
Recordset
RecordsetChangeComplete
RecordSource
Refresh
removeDataSourceListener
Text
UserName
WillChangeField
WillChangeRecord
WillChangeRecordset
WillMove
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
[Link]
ADODCArray
ADODCArray
BackColorChanged
BackgroundImageChanged
BindingContextChanged
CanExtend
CausesValidationChanged
ChangeUICues
Click
ContextMenuChanged
CtlLoad
CursorChanged
DockChanged
DoubleClick
DragDrop
DragEnter
DragLeave
DragOver
EnabledChanged
EndOfRecordset
Enter
Error
FetchComplete
FetchProgress
FieldChangeComplete
FontChanged
ForeColorChanged
GetControlInstanceType
GetIndex
GiveFeedback
HelpRequested
HookUpControlEvents
ImeModeChanged
Item[Int16]
KeyDown
KeyPress
KeyUp
Layout
Leave
LocationChanged
MouseDown
MouseEnter
MouseHover
MouseLeave
MouseMove
MouseUp
Move
MoveComplete
Paint
ParentChanged
QueryAccessibilityHelp
QueryContinueDrag
RecordChangeComplete
RecordsetChangeComplete
ResetIndex
Resize
RightToLeftChanged
SetIndex
ShouldSerializeIndex
SizeChanged
StyleChanged
SystemColorsChanged
TabIndexChanged
TabStopChanged
Validated
Validating
VisibleChanged
WillChangeField
WillChangeRecord
WillChangeRecordset
WillMove
BaseControlArray
BaseCanExtend
BaseControlArray
BaseGetIndex
BaseGetItem
BaseResetIndex
BaseSetIndex
BaseShouldSerializeIndex
components
controlAddedAtDesignTime
controls
Count
Dispose
fIsEndInitCalled
GetControlInstanceType
GetEnumerator
HookUpControlEvents
indices
[Link]
[Link]
LBound
Load
UBound
Unload
BaseDataEnvironment
addDataSourceListener
BaseDataEnvironment
Commands[Object]
Connections[Object]
Dispose
Finalize
getDataMember
GetDataMemberCount
GetDataMemberName
m_Commands
m_Connections
m_NonRSReturningCommands
m_Recordsets
Object
Recordsets[Object]
removeDataSourceListener
BaseOcxArray
BaseOcxArray
CausesValidationChanged
ClientSizeChanged
ContextMenuChanged
ContextMenuStripChanged
ControlAdded
ControlRemoved
DockChanged
Enter
HookUpControlEvents
Leave
LocationChanged
MarginChanged
MouseCaptureChanged
Move
PaddingChanged
ParentChanged
RegionChanged
Resize
SizeChanged
SystemColorsChanged
Validated
Validating
VisibleChanged
BindingCollectionEnumerator
Current
MoveNext
Reset
ButtonArray
AutoSizeChanged
BackColorChanged
BackgroundImageChanged
BackgroundImageLayoutChanged
BindingContextChanged
ButtonArray
CanExtend
CausesValidationChanged
ChangeUICues
Click
ClientSizeChanged
ContextMenuChanged
ContextMenuStripChanged
ControlAdded
ControlRemoved
CursorChanged
DockChanged
DragDrop
DragEnter
DragLeave
DragOver
EnabledChanged
Enter
FontChanged
ForeColorChanged
GetControlInstanceType
GetIndex
GiveFeedback
HelpRequested
HookUpControlEvents
Item[Int16]
KeyDown
KeyPress
KeyUp
Layout
Leave
LocationChanged
MarginChanged
MouseCaptureChanged
MouseClick
MouseDown
MouseEnter
MouseHover
MouseLeave
MouseMove
MouseUp
Move
PaddingChanged
Paint
ParentChanged
QueryAccessibilityHelp
QueryContinueDrag
RegionChanged
ResetIndex
Resize
RightToLeftChanged
SetIndex
ShouldSerializeIndex
SizeChanged
StyleChanged
SystemColorsChanged
TabIndexChanged
TabStopChanged
TextChanged
Validated
Validating
VisibleChanged
CheckBoxArray
AppearanceChanged
AutoSizeChanged
BackColorChanged
BackgroundImageChanged
BackgroundImageLayoutChanged
BindingContextChanged
CanExtend
CausesValidationChanged
ChangeUICues
CheckBoxArray
CheckedChanged
CheckStateChanged
Click
ClientSizeChanged
ContextMenuChanged
ContextMenuStripChanged
ControlAdded
ControlRemoved
CursorChanged
DockChanged
DragDrop
DragEnter
DragLeave
DragOver
EnabledChanged
Enter
FontChanged
ForeColorChanged
GetControlInstanceType
GetIndex
GiveFeedback
HelpRequested
HookUpControlEvents
Item[Int16]
KeyDown
KeyPress
KeyUp
Layout
Leave
LocationChanged
MarginChanged
MouseCaptureChanged
MouseClick
MouseDown
MouseEnter
MouseHover
MouseLeave
MouseMove
MouseUp
Move
PaddingChanged
Paint
ParentChanged
QueryAccessibilityHelp
QueryContinueDrag
RegionChanged
ResetIndex
Resize
RightToLeftChanged
SetIndex
ShouldSerializeIndex
SizeChanged
StyleChanged
SystemColorsChanged
TabIndexChanged
TabStopChanged
TextChanged
Validated
Validating
VisibleChanged
CheckedListBoxArray
BackColorChanged
BindingContextChanged
CanExtend
CausesValidationChanged
ChangeUICues
CheckedListBoxArray
Click
ClientSizeChanged
ContextMenuChanged
ContextMenuStripChanged
ControlAdded
ControlRemoved
CursorChanged
DockChanged
DoubleClick
DragDrop
DragEnter
DragLeave
DragOver
EnabledChanged
Enter
FontChanged
ForeColorChanged
Format
FormatStringChanged
FormattingEnabledChanged
GetControlInstanceType
GetIndex
GiveFeedback
HelpRequested
HookUpControlEvents
ImeModeChanged
Item[Int16]
ItemCheck
KeyDown
KeyPress
KeyUp
Layout
Leave
LocationChanged
MarginChanged
MouseCaptureChanged
MouseClick
MouseDoubleClick
MouseDown
MouseEnter
MouseHover
MouseLeave
MouseMove
MouseUp
Move
PaddingChanged
ParentChanged
QueryAccessibilityHelp
QueryContinueDrag
RegionChanged
ResetIndex
Resize
RightToLeftChanged
SelectedIndexChanged
SelectedValueChanged
SetIndex
ShouldSerializeIndex
SizeChanged
StyleChanged
SystemColorsChanged
TabIndexChanged
TabStopChanged
Validated
Validating
VisibleChanged
ColorDialogArray
CanExtend
ColorDialogArray
GetControlInstanceType
GetIndex
HelpRequest
HookUpControlEvents
Item[Int16]
ResetIndex
SetIndex
ShouldSerializeIndex
ComboBoxArray
BackColorChanged
BindingContextChanged
CanExtend
CausesValidationChanged
ChangeUICues
Click
ClientSizeChanged
ComboBoxArray
ContextMenuChanged
ContextMenuStripChanged
ControlAdded
ControlRemoved
CursorChanged
DataSourceChanged
DisplayMemberChanged
DockChanged
DoubleClick
DragDrop
DragEnter
DragLeave
DragOver
DrawItem
DropDown
DropDownClosed
DropDownStyleChanged
EnabledChanged
Enter
FontChanged
ForeColorChanged
Format
FormatStringChanged
FormattingEnabledChanged
GetControlInstanceType
GetIndex
GiveFeedback
HelpRequested
HookUpControlEvents
ImeModeChanged
Item[Int16]
KeyDown
KeyPress
KeyUp
Layout
Leave
LocationChanged
MarginChanged
MeasureItem
MouseCaptureChanged
MouseClick
MouseDoubleClick
MouseDown
MouseEnter
MouseHover
MouseLeave
MouseMove
MouseUp
Move
PaddingChanged
ParentChanged
QueryAccessibilityHelp
QueryContinueDrag
RegionChanged
ResetIndex
Resize
RightToLeftChanged
SelectedIndexChanged
SelectedValueChanged
SelectionChangeCommitted
SetIndex
ShouldSerializeIndex
SizeChanged
StyleChanged
SystemColorsChanged
TabIndexChanged
TabStopChanged
TextChanged
TextUpdate
Validated
Validating
ValueMemberChanged
VisibleChanged
CONNECTDATA
cookie
pUnk
DBBINDING
bPrecision
bScale
cbMaxLen
dwFlags
eParamIO
iOrdinal
memOwner
obLength
obStatus
obValue
part
pBindExt
pObject
typeInfo
wType
DBCOLUMNINFO
columnFlags
columnId
columnOrdinal
columnSize
columnType
name
precision
scale
typeInfo
DBID
dbkind
uGuid
uName
DBinding
DataChanged
DataField
DataFormat
Key
Object
PropertyName
DBindingCollection
Add
Clear
Count
DataMember
DataSource
Item[Object]
Remove
UpdateControls
UpdateMode
DBKINDENUM
DBPROPIDSET
cPropertyIDs
guidPropertySet
rgPropertyIDs
DirListBox
Change
ColumnWidth
DataSource
DirList[Int32]
DirListBox
DirListCount
DirListIndex
Dispose
DrawMode
ItemHeight
Items
MultiColumn
OnBackColorChanged
OnChange
OnDoubleClick
OnDrawItem
OnFontChanged
OnHandleCreated
OnSelectedIndexChanged
Path
Refresh
SelectionMode
Sorted
ValueMember
DirListBoxArray
BackColorChanged
BindingContextChanged
CanExtend
CausesValidationChanged
Change
ChangeUICues
ContextMenuChanged
CursorChanged
DataSourceChanged
DirListBoxArray
DisplayMemberChanged
DockChanged
DoubleClick
DragDrop
DragEnter
DragLeave
DragOver
DrawItem
EnabledChanged
Enter
FontChanged
ForeColorChanged
GetControlInstanceType
GetIndex
GiveFeedback
HelpRequested
HookUpControlEvents
ImeModeChanged
Item[Int16]
KeyDown
KeyPress
KeyUp
Layout
Leave
LocationChanged
MeasureItem
MouseDown
MouseEnter
MouseHover
MouseLeave
MouseMove
MouseUp
Move
ParentChanged
QueryAccessibilityHelp
QueryContinueDrag
ResetIndex
Resize
RightToLeftChanged
SelectedIndexChanged
SelectedValueChanged
SetIndex
ShouldSerializeIndex
SizeChanged
StyleChanged
SystemColorsChanged
TabIndexChanged
TabStopChanged
Validated
Validating
ValueMemberChanged
VisibleChanged
DriveListBox
DataSource
DisplayMember
Dispose
DrawMode
Drive
DriveListBox
DropDownStyle
ItemHeight
Items[Int32]
MaxLength
OnBackColorChanged
OnDrawItem
OnFontChanged
OnHandleCreated
OnSelectedIndexChanged
Refresh
Sorted
Text
ValueMember
WndProc
DriveListBoxArray
BackColorChanged
BackColorChanged
BindingContextChanged
CanExtend
CausesValidationChanged
ChangeUICues
Click
ContextMenuChanged
CursorChanged
DataSourceChanged
DisplayMemberChanged
DockChanged
DoubleClick
DragDrop
DragEnter
DragLeave
DragOver
DrawItem
DriveListBoxArray
DropDown
DropDownStyleChanged
EnabledChanged
Enter
FontChanged
ForeColorChanged
GetControlInstanceType
GetIndex
GiveFeedback
HelpRequested
HookUpControlEvents
ImeModeChanged
Item[Int16]
KeyDown
KeyPress
KeyUp
Layout
Leave
LocationChanged
MeasureItem
MouseDown
MouseEnter
MouseHover
MouseLeave
MouseMove
MouseUp
Move
ParentChanged
QueryAccessibilityHelp
QueryContinueDrag
ResetIndex
Resize
RightToLeftChanged
SelectedIndexChanged
SelectedValueChanged
SelectionChangeCommitted
SetIndex
ShouldSerializeIndex
SizeChanged
StyleChanged
SystemColorsChanged
TabIndexChanged
TabStopChanged
TextChanged
Validated
Validating
ValueMemberChanged
VisibleChanged
FileListBox
Archive
DataSource
DisplayMember
FileListBox
FileName
Hidden
ItemHeight
Items[Int32]
Normal
OnDoubleClick
OnPathChange
OnPatternChange
OnSelectedIndexChanged
Path
PathChange
Pattern
PatternChange
ReadOnly
Refresh
Sorted
System
ValueMember
FileListBoxArray
BackColorChanged
BindingContextChanged
CanExtend
CausesValidationChanged
ChangeUICues
ContextMenuChanged
CursorChanged
DataSourceChanged
DisplayMemberChanged
DockChanged
DoubleClick
DragDrop
DragEnter
DragLeave
DragOver
DrawItem
EnabledChanged
Enter
FileListBoxArray
FontChanged
ForeColorChanged
GetControlInstanceType
GetIndex
GiveFeedback
HelpRequested
HookUpControlEvents
ImeModeChanged
Item[Int16]
KeyDown
KeyPress
KeyUp
Layout
Leave
LocationChanged
MeasureItem
MouseDown
MouseEnter
MouseHover
MouseLeave
MouseMove
MouseUp
Move
ParentChanged
PathChange
PatternChange
QueryAccessibilityHelp
QueryContinueDrag
ResetIndex
Resize
RightToLeftChanged
SelectedIndexChanged
SelectedValueChanged
SetIndex
ShouldSerializeIndex
SizeChanged
StyleChanged
SystemColorsChanged
TabIndexChanged
TabStopChanged
Validated
Validating
ValueMemberChanged
VisibleChanged
FixedLengthString
FixedLengthString
m_nMaxChars
m_strValue
ToString
Value
FontDialogArray
Apply
CanExtend
FontDialogArray
GetControlInstanceType
GetIndex
HelpRequest
HookUpControlEvents
Item[Int16]
ResetIndex
SetIndex
ShouldSerializeIndex
FormShowConstants
GroupBoxArray
AutoSizeChanged
BackColorChanged
BackgroundImageChanged
BackgroundImageLayoutChanged
BindingContextChanged
CanExtend
CausesValidationChanged
ChangeUICues
ClientSizeChanged
ContextMenuChanged
ContextMenuStripChanged
ControlAdded
ControlRemoved
CursorChanged
DockChanged
DragDrop
DragEnter
DragLeave
DragOver
EnabledChanged
Enter
FontChanged
ForeColorChanged
GetControlInstanceType
GetIndex
GiveFeedback
GroupBoxArray
HelpRequested
HookUpControlEvents
ImeModeChanged
Item[Int16]
Layout
Leave
LocationChanged
MarginChanged
MouseCaptureChanged
MouseHover
Move
PaddingChanged
Paint
ParentChanged
QueryAccessibilityHelp
QueryContinueDrag
RegionChanged
ResetIndex
Resize
RightToLeftChanged
SetIndex
ShouldSerializeIndex
SizeChanged
StyleChanged
SystemColorsChanged
TabIndexChanged
TextChanged
Validated
Validating
VisibleChanged
HScrollBarArray
BindingContextChanged
CanExtend
CausesValidationChanged
ChangeUICues
ClientSizeChanged
ContextMenuChanged
ContextMenuStripChanged
ControlAdded
ControlRemoved
CursorChanged
DockChanged
DragDrop
DragEnter
DragLeave
DragOver
EnabledChanged
Enter
GetControlInstanceType
GetIndex
GiveFeedback
HelpRequested
HookUpControlEvents
HScrollBarArray
Item[Int16]
KeyDown
KeyPress
KeyUp
Layout
Leave
LocationChanged
MarginChanged
MouseCaptureChanged
MouseEnter
MouseHover
MouseLeave
Move
PaddingChanged
ParentChanged
QueryAccessibilityHelp
QueryContinueDrag
RegionChanged
ResetIndex
Resize
RightToLeftChanged
Scroll
SetIndex
ShouldSerializeIndex
SizeChanged
StyleChanged
SystemColorsChanged
TabIndexChanged
TabStopChanged
Validated
Validating
ValueChanged
VisibleChanged
IAccessor
AddRefAccessor
CreateAccessor
GetBindings
ReleaseAccessor
IChapteredRowset
AddRefChapter
ReleaseChapter
IColumnsInfo
GetColumnInfo
MapColumnIDs
IConnectionPoint
Advise
EnumConnections
GetConnectionInterface
GetConnectionPointContainer
Unadvise
IConnectionPointContainer
EnumConnectionPoints
FindConnectionPoint
IDataFormat
Clone
Convert
Default
GetBinding
GetData
GetLcid
GetRawData
GetSubFormatType
ReleaseBinding
ReleaseData
SetData
SetLcid
SetRawData
SetSubFormatType
IDataFormatDisp
IEnumConnectionPoints
Clone
Next
Reset
Skip
IEnumConnections
Clone
Next
Reset
Skip
ImageListArray
CanExtend
GetControlInstanceType
GetIndex
HookUpControlEvents
ImageListArray
Item[Int16]
ResetIndex
SetIndex
ShouldSerializeIndex
IRowPosition
ClearRowPosition
GetRowPosition
GetRowset
Initialize
SetRowPosition
IRowPositionChange
OnRowPositionChange
IRowset
AddRefRows
GetData
GetNextRows
ReleaseRows
RestartPosition
IRowsetChange
DeleteRows
InsertRow
SetData
IRowsetIdentity
IsSameRow
IRowsetInfo
GetProperties
GetReferencedRowset
GetSpecification
IRowsetNotify
OnFieldChange
OnRowChange
OnRowsetChange
LabelArray
AutoSizeChanged
BackColorChanged
BindingContextChanged
CanExtend
CausesValidationChanged
ChangeUICues
Click
ClientSizeChanged
ContextMenuChanged
ContextMenuStripChanged
ControlAdded
ControlRemoved
CursorChanged
DockChanged
DoubleClick
DragDrop
DragEnter
DragLeave
DragOver
EnabledChanged
Enter
FontChanged
ForeColorChanged
GetControlInstanceType
GetIndex
GiveFeedback
HelpRequested
HookUpControlEvents
Item[Int16]
LabelArray
Layout
Leave
LocationChanged
MarginChanged
MouseCaptureChanged
MouseClick
MouseDoubleClick
MouseDown
MouseEnter
MouseHover
MouseLeave
MouseMove
MouseUp
Move
PaddingChanged
Paint
ParentChanged
QueryAccessibilityHelp
QueryContinueDrag
RegionChanged
ResetIndex
Resize
RightToLeftChanged
SetIndex
ShouldSerializeIndex
SizeChanged
StyleChanged
SystemColorsChanged
TabIndexChanged
TextAlignChanged
TextChanged
Validated
Validating
VisibleChanged
ListBoxArray
BackColorChanged
BindingContextChanged
CanExtend
CausesValidationChanged
ChangeUICues
Click
ClientSizeChanged
ContextMenuChanged
ContextMenuStripChanged
ControlAdded
ControlRemoved
CursorChanged
DataSourceChanged
DisplayMemberChanged
DockChanged
DoubleClick
DragDrop
DragEnter
DragLeave
DragOver
DrawItem
EnabledChanged
Enter
FontChanged
ForeColorChanged
Format
FormatStringChanged
FormattingEnabledChanged
GetControlInstanceType
GetIndex
GiveFeedback
HelpRequested
HookUpControlEvents
ImeModeChanged
Item[Int16]
KeyDown
KeyPress
KeyUp
Layout
Leave
ListBoxArray
LocationChanged
MarginChanged
MeasureItem
MouseCaptureChanged
MouseClick
MouseDoubleClick
MouseDown
MouseEnter
MouseHover
MouseLeave
MouseMove
MouseUp
Move
PaddingChanged
ParentChanged
QueryAccessibilityHelp
QueryContinueDrag
RegionChanged
ResetIndex
Resize
RightToLeftChanged
SelectedIndexChanged
SelectedValueChanged
SetIndex
ShouldSerializeIndex
SizeChanged
StyleChanged
SystemColorsChanged
TabIndexChanged
TabStopChanged
Validated
Validating
ValueMemberChanged
VisibleChanged
ListBoxItem
ItemData
ItemData
ItemString
ListBoxItem
ToString
ListViewArray
AfterLabelEdit
BackColorChanged
BackgroundImageChanged
BeforeLabelEdit
BindingContextChanged
CacheVirtualItems
CanExtend
CausesValidationChanged
ChangeUICues
Click
ClientSizeChanged
ColumnClick
ColumnReordered
ColumnWidthChanged
ColumnWidthChanging
ContextMenuChanged
ContextMenuStripChanged
ControlAdded
ControlRemoved
CursorChanged
DockChanged
DoubleClick
DragDrop
DragEnter
DragLeave
DragOver
DrawColumnHeader
DrawItem
DrawSubItem
EnabledChanged
Enter
FontChanged
ForeColorChanged
GetControlInstanceType
GetIndex
GiveFeedback
HelpRequested
HookUpControlEvents
ImeModeChanged
Item[Int16]
ItemActivate
ItemCheck
ItemChecked
ItemDrag
ItemMouseHover
ItemSelectionChanged
KeyDown
KeyPress
KeyUp
Layout
Leave
ListViewArray
LocationChanged
MarginChanged
MouseCaptureChanged
MouseClick
MouseDoubleClick
MouseDown
MouseEnter
MouseHover
MouseLeave
MouseMove
MouseUp
Move
PaddingChanged
ParentChanged
QueryAccessibilityHelp
QueryContinueDrag
RegionChanged
ResetIndex
Resize
RetrieveVirtualItem
RightToLeftChanged
RightToLeftLayoutChanged
SearchForVirtualItem
SelectedIndexChanged
SetIndex
ShouldSerializeIndex
SizeChanged
StyleChanged
SystemColorsChanged
TabIndexChanged
TabStopChanged
Validated
Validating
VirtualItemsSelectionRangeChanged
VisibleChanged
LoadResConstants
MaskedTextBoxArray
BackColorChanged
BindingContextChanged
BorderStyleChanged
CanExtend
CausesValidationChanged
ChangeUICues
Click
ClientSizeChanged
ContextMenuChanged
ContextMenuStripChanged
ControlAdded
ControlRemoved
CursorChanged
DockChanged
DoubleClick
DragDrop
DragEnter
DragLeave
DragOver
EnabledChanged
Enter
FontChanged
ForeColorChanged
GetControlInstanceType
GetIndex
GiveFeedback
HelpRequested
HideSelectionChanged
HookUpControlEvents
ImeModeChanged
IsOverwriteModeChanged
Item[Int16]
KeyDown
KeyPress
KeyUp
Layout
Leave
LocationChanged
MarginChanged
MaskChanged
MaskedTextBoxArray
MaskInputRejected
ModifiedChanged
MouseCaptureChanged
MouseClick
MouseDoubleClick
MouseDown
MouseEnter
MouseHover
MouseLeave
MouseMove
MouseUp
Move
ParentChanged
QueryAccessibilityHelp
QueryContinueDrag
ReadOnlyChanged
RegionChanged
ResetIndex
Resize
RightToLeftChanged
SetIndex
ShouldSerializeIndex
SizeChanged
StyleChanged
SystemColorsChanged
TabIndexChanged
TabStopChanged
TextAlignChanged
TextChanged
TypeValidationCompleted
Validated
Validating
VisibleChanged
MBinding
DataChanged
DataField
DataFormat
Dispose
Key
Object
PropertyName
MBindingCollection
Add
Clear
Count
DataMember
DataSource
Dispose
GetEnumerator
Item[Object]
MBindingCollection
Remove
SavePendingChanges
UpdateControls
UpdateMode
MenuItemArray
CanExtend
Click
DrawItem
GetControlInstanceType
GetIndex
HookUpControlEvents
Item[Int16]
MeasureItem
MenuItemArray
Popup
ResetIndex
Select
SetIndex
ShouldSerializeIndex
MouseButtonConstants
OpenFileDialogArray
CanExtend
FileOk
GetControlInstanceType
GetIndex
HelpRequest
HookUpControlEvents
Item[Int16]
OpenFileDialogArray
ResetIndex
SetIndex
ShouldSerializeIndex
PanelArray
AutoSizeChanged
BackColorChanged
BackgroundImageChanged
BackgroundImageLayoutChanged
BindingContextChanged
CanExtend
CausesValidationChanged
ChangeUICues
Click
ClientSizeChanged
ContextMenuChanged
ContextMenuStripChanged
ControlAdded
ControlRemoved
CursorChanged
DockChanged
DoubleClick
DragDrop
DragEnter
DragLeave
DragOver
EnabledChanged
Enter
FontChanged
ForeColorChanged
GetControlInstanceType
GetIndex
GiveFeedback
HelpRequested
HookUpControlEvents
ImeModeChanged
Item[Int16]
Layout
Leave
LocationChanged
MarginChanged
MouseCaptureChanged
MouseClick
MouseDoubleClick
MouseDown
MouseEnter
MouseHover
MouseLeave
MouseMove
MouseUp
Move
PaddingChanged
Paint
PanelArray
ParentChanged
QueryAccessibilityHelp
QueryContinueDrag
RegionChanged
ResetIndex
Resize
RightToLeftChanged
Scroll
SetIndex
ShouldSerializeIndex
SizeChanged
StyleChanged
SystemColorsChanged
TabIndexChanged
TabStopChanged
Validated
Validating
VisibleChanged
PictureBoxArray
BackColorChanged
BackgroundImageChanged
BackgroundImageLayoutChanged
BindingContextChanged
CanExtend
ChangeUICues
Click
ClientSizeChanged
ContextMenuChanged
ContextMenuStripChanged
ControlAdded
ControlRemoved
CursorChanged
DockChanged
DoubleClick
DragDrop
DragEnter
DragLeave
DragOver
EnabledChanged
GetControlInstanceType
GetIndex
GiveFeedback
HelpRequested
HookUpControlEvents
Item[Int16]
Layout
LoadCompleted
LoadProgressChanged
LocationChanged
MarginChanged
MouseCaptureChanged
MouseClick
MouseDoubleClick
MouseDown
MouseEnter
MouseHover
MouseLeave
MouseMove
MouseUp
Move
PaddingChanged
Paint
ParentChanged
PictureBoxArray
QueryAccessibilityHelp
QueryContinueDrag
RegionChanged
ResetIndex
Resize
SetIndex
ShouldSerializeIndex
SizeChanged
SizeModeChanged
StyleChanged
SystemColorsChanged
Validated
Validating
VisibleChanged
PrintDialogArray
CanExtend
GetControlInstanceType
GetIndex
HelpRequest
HookUpControlEvents
Item[Int16]
PrintDialogArray
ResetIndex
SetIndex
ShouldSerializeIndex
ProgressBarArray
BackColorChanged
BindingContextChanged
CanExtend
ChangeUICues
Click
ClientSizeChanged
ContextMenuChanged
ContextMenuStripChanged
ControlAdded
ControlRemoved
CursorChanged
DockChanged
DragDrop
DragEnter
DragLeave
DragOver
EnabledChanged
ForeColorChanged
GetControlInstanceType
GetIndex
GiveFeedback
HelpRequested
HookUpControlEvents
Item[Int16]
Layout
LocationChanged
MarginChanged
MouseCaptureChanged
MouseClick
MouseDown
MouseEnter
MouseHover
MouseLeave
MouseMove
MouseUp
Move
PaddingChanged
ParentChanged
ProgressBarArray
QueryAccessibilityHelp
QueryContinueDrag
RegionChanged
ResetIndex
Resize
RightToLeftChanged
RightToLeftLayoutChanged
SetIndex
ShouldSerializeIndex
SizeChanged
StyleChanged
SystemColorsChanged
TabIndexChanged
Validated
Validating
VisibleChanged
RadioButtonArray
AppearanceChanged
AutoSizeChanged
BackColorChanged
BackgroundImageChanged
BackgroundImageLayoutChanged
BindingContextChanged
CanExtend
CausesValidationChanged
ChangeUICues
CheckedChanged
Click
ClientSizeChanged
ContextMenuChanged
ContextMenuStripChanged
ControlAdded
ControlRemoved
CursorChanged
DockChanged
DragDrop
DragEnter
DragLeave
DragOver
EnabledChanged
Enter
FontChanged
ForeColorChanged
GetControlInstanceType
GetIndex
GiveFeedback
HelpRequested
HookUpControlEvents
Item[Int16]
KeyDown
KeyPress
KeyUp
Layout
Leave
LocationChanged
MarginChanged
MouseCaptureChanged
MouseClick
MouseDown
MouseEnter
MouseHover
MouseLeave
MouseMove
MouseUp
Move
PaddingChanged
Paint
ParentChanged
QueryAccessibilityHelp
QueryContinueDrag
RadioButtonArray
RegionChanged
ResetIndex
Resize
RightToLeftChanged
SetIndex
ShouldSerializeIndex
SizeChanged
StyleChanged
SystemColorsChanged
TabIndexChanged
TabStopChanged
TextChanged
Validated
Validating
VisibleChanged
RichTextBoxArray
AcceptsTabChanged
BackColorChanged
BindingContextChanged
BorderStyleChanged
CanExtend
CausesValidationChanged
ChangeUICues
Click
ClientSizeChanged
ContentsResized
ContextMenuChanged
ContextMenuStripChanged
ControlAdded
ControlRemoved
CursorChanged
DockChanged
DoubleClick
EnabledChanged
Enter
FontChanged
ForeColorChanged
GetControlInstanceType
GetIndex
HelpRequested
HideSelectionChanged
HookUpControlEvents
HScroll
ImeChange
ImeModeChanged
Item[Int16]
KeyDown
KeyPress
KeyUp
Layout
Leave
LinkClicked
LocationChanged
MarginChanged
ModifiedChanged
MouseCaptureChanged
MouseClick
MouseDoubleClick
MouseDown
MouseEnter
MouseHover
MouseLeave
MouseMove
MouseUp
Move
MultilineChanged
ParentChanged
Protected
QueryAccessibilityHelp
ReadOnlyChanged
RegionChanged
ResetIndex
Resize
RichTextBoxArray
RightToLeftChanged
SelectionChanged
SetIndex
ShouldSerializeIndex
SizeChanged
StyleChanged
SystemColorsChanged
TabIndexChanged
TabStopChanged
TextChanged
Validated
Validating
VisibleChanged
VScroll
SaveFileDialogArray
CanExtend
FileOk
GetControlInstanceType
GetIndex
HelpRequest
HookUpControlEvents
Item[Int16]
ResetIndex
SaveFileDialogArray
SetIndex
ShouldSerializeIndex
ScaleMode
ShiftConstants
SRDescriptionAttribute
Description
SRDescriptionAttribute
StatusBarArray
BindingContextChanged
CanExtend
CausesValidationChanged
ChangeUICues
Click
ClientSizeChanged
ContextMenuChanged
ContextMenuStripChanged
ControlAdded
ControlRemoved
CursorChanged
DockChanged
DoubleClick
DragDrop
DragEnter
DragLeave
DragOver
DrawItem
EnabledChanged
Enter
FontChanged
GetControlInstanceType
GetIndex
GiveFeedback
HelpRequested
HookUpControlEvents
Item[Int16]
KeyDown
KeyPress
KeyUp
Layout
Leave
LocationChanged
MarginChanged
MouseCaptureChanged
MouseClick
MouseDoubleClick
MouseDown
MouseEnter
MouseHover
MouseLeave
MouseMove
MouseUp
Move
PaddingChanged
PanelClick
ParentChanged
QueryAccessibilityHelp
QueryContinueDrag
RegionChanged
ResetIndex
Resize
RightToLeftChanged
SetIndex
ShouldSerializeIndex
SizeChanged
StatusBarArray
StyleChanged
SystemColorsChanged
TabIndexChanged
TabStopChanged
TextChanged
Validated
Validating
VisibleChanged
StatusStripArray
AutoSizeChanged
BackColorChanged
BackgroundImageChanged
BackgroundImageLayoutChanged
BeginDrag
BindingContextChanged
CanExtend
ChangeUICues
Click
ClientSizeChanged
ContextMenuChanged
ContextMenuStripChanged
DockChanged
DoubleClick
DragDrop
DragEnter
DragLeave
DragOver
EnabledChanged
EndDrag
Enter
FontChanged
GetControlInstanceType
GetIndex
GiveFeedback
HelpRequested
HookUpControlEvents
ImeModeChanged
Item[Int16]
ItemAdded
ItemClicked
ItemRemoved
KeyDown
KeyPress
KeyUp
Layout
LayoutCompleted
LayoutStyleChanged
Leave
LocationChanged
MarginChanged
MouseCaptureChanged
MouseClick
MouseDoubleClick
MouseDown
MouseEnter
MouseHover
MouseLeave
MouseMove
MouseUp
Move
Paint
PaintGrip
ParentChanged
QueryAccessibilityHelp
QueryContinueDrag
RegionChanged
ResetIndex
Resize
RightToLeftChanged
Scroll
SetIndex
ShouldSerializeIndex
SizeChanged
StatusStripArray
StyleChanged
SystemColorsChanged
TabIndexChanged
TabStopChanged
TextChanged
Validated
Validating
VisibleChanged
Support
CopyArray
CursorToIPicture
Eqv
FontChangeBold
FontChangeGdiCharSet
FontChangeItalic
FontChangeName
FontChangeSize
FontChangeStrikeout
FontChangeUnderline
FontToIFont
Format
FromPixelsUserHeight
FromPixelsUserWidth
FromPixelsUserX
FromPixelsUserY
FromPixelsX
FromPixelsY
GetActiveControl
GetCancel
GetDefault
GetEXEName
GetHInstance
GetItemData
GetItemString
GetPath
IconToIPicture
IFontToFont
ImageToIPicture
ImageToIPictureDisp
Imp
IPictureDispToImage
IPictureToImage
LoadResData
LoadResPicture
LoadResString
PixelsToTwipsX
PixelsToTwipsY
SendKeys
SetCancel
SetDefault
SetItemData
SetItemString
SetResourceBaseName
ShowForm
TabLayout
ToPixelsUserHeight
ToPixelsUserWidth
ToPixelsUserX
ToPixelsUserY
ToPixelsX
ToPixelsY
TwipsPerPixelX
TwipsPerPixelY
TwipsToPixelsX
TwipsToPixelsY
ValidateControls
WhatsThisMode
ZOrder
TabControlArray
BindingContextChanged
CanExtend
CausesValidationChanged
ChangeUICues
Click
ClientSizeChanged
ContextMenuChanged
ContextMenuStripChanged
ControlAdded
ControlRemoved
CursorChanged
Deselected
Deselecting
DockChanged
DoubleClick
DragDrop
DragEnter
DragLeave
DragOver
DrawItem
EnabledChanged
Enter
FontChanged
GetControlInstanceType
GetIndex
GiveFeedback
HelpRequested
HookUpControlEvents
ImeModeChanged
Item[Int16]
KeyDown
KeyPress
KeyUp
Layout
Leave
LocationChanged
MarginChanged
MouseCaptureChanged
MouseClick
MouseDoubleClick
MouseDown
MouseEnter
MouseHover
MouseLeave
MouseMove
MouseUp
Move
PaddingChanged
ParentChanged
QueryAccessibilityHelp
QueryContinueDrag
RegionChanged
ResetIndex
Resize
RightToLeftChanged
RightToLeftLayoutChanged
Selected
SelectedIndexChanged
Selecting
SetIndex
ShouldSerializeIndex
SizeChanged
StyleChanged
SystemColorsChanged
TabControlArray
TabIndexChanged
TabStopChanged
Validated
Validating
VisibleChanged
TextBoxArray
AcceptsTabChanged
AutoSizeChanged
BackColorChanged
BindingContextChanged
BorderStyleChanged
CanExtend
CausesValidationChanged
ChangeUICues
Click
ClientSizeChanged
ContextMenuChanged
ContextMenuStripChanged
ControlAdded
ControlRemoved
CursorChanged
DockChanged
DoubleClick
DragDrop
DragEnter
DragLeave
DragOver
EnabledChanged
Enter
FontChanged
ForeColorChanged
GetControlInstanceType
GetIndex
GiveFeedback
HelpRequested
HideSelectionChanged
HookUpControlEvents
ImeModeChanged
Item[Int16]
KeyDown
KeyPress
KeyUp
Layout
Leave
LocationChanged
MarginChanged
ModifiedChanged
MouseCaptureChanged
MouseClick
MouseDoubleClick
MouseDown
MouseEnter
MouseHover
MouseLeave
MouseMove
MouseUp
Move
MultilineChanged
ParentChanged
QueryAccessibilityHelp
QueryContinueDrag
ReadOnlyChanged
RegionChanged
ResetIndex
Resize
RightToLeftChanged
SetIndex
ShouldSerializeIndex
SizeChanged
StyleChanged
SystemColorsChanged
TabIndexChanged
TabStopChanged
TextAlignChanged
TextBoxArray
TextChanged
Validated
Validating
VisibleChanged
TimerArray
CanExtend
GetControlInstanceType
GetIndex
HookUpControlEvents
Item[Int16]
ResetIndex
SetIndex
ShouldSerializeIndex
Tick
TimerArray
ToolBarArray
AutoSizeChanged
BindingContextChanged
ButtonClick
ButtonDropDown
CanExtend
CausesValidationChanged
ChangeUICues
Click
ClientSizeChanged
ContextMenuChanged
ContextMenuStripChanged
ControlAdded
ControlRemoved
CursorChanged
DockChanged
DoubleClick
DragDrop
DragEnter
DragLeave
DragOver
EnabledChanged
Enter
FontChanged
GetControlInstanceType
GetIndex
GiveFeedback
HelpRequested
HookUpControlEvents
Item[Int16]
KeyDown
KeyPress
KeyUp
Layout
Leave
LocationChanged
MarginChanged
MouseCaptureChanged
MouseClick
MouseDoubleClick
MouseDown
MouseEnter
MouseHover
MouseLeave
MouseMove
MouseUp
Move
PaddingChanged
ParentChanged
QueryAccessibilityHelp
QueryContinueDrag
RegionChanged
ResetIndex
Resize
SetIndex
ShouldSerializeIndex
SizeChanged
StyleChanged
SystemColorsChanged
TabIndexChanged
TabStopChanged
ToolBarArray
Validated
Validating
VisibleChanged
ToolStripArray
AutoSizeChanged
BackColorChanged
BackgroundImageChanged
BackgroundImageLayoutChanged
BeginDrag
BindingContextChanged
CanExtend
ChangeUICues
Click
ClientSizeChanged
ContextMenuChanged
ContextMenuStripChanged
DockChanged
DoubleClick
DragDrop
DragEnter
DragLeave
DragOver
EnabledChanged
EndDrag
Enter
FontChanged
GetControlInstanceType
GetIndex
GiveFeedback
HelpRequested
HookUpControlEvents
ImeModeChanged
Item[Int16]
ItemAdded
ItemClicked
ItemRemoved
KeyDown
KeyPress
KeyUp
Layout
LayoutCompleted
LayoutStyleChanged
Leave
LocationChanged
MarginChanged
MouseCaptureChanged
MouseClick
MouseDoubleClick
MouseDown
MouseEnter
MouseHover
MouseLeave
MouseMove
MouseUp
Move
PaddingChanged
Paint
PaintGrip
ParentChanged
QueryAccessibilityHelp
QueryContinueDrag
RegionChanged
ResetIndex
Resize
RightToLeftChanged
Scroll
SetIndex
ShouldSerializeIndex
SizeChanged
StyleChanged
SystemColorsChanged
TabIndexChanged
TabStopChanged
TextChanged
ToolStripArray
Validated
Validating
VisibleChanged
ToolStripMenuItemArray
BackColorChanged
CanExtend
CheckedChanged
CheckStateChanged
Click
DisplayStyleChanged
DoubleClick
DropDownClosed
DropDownItemClicked
DropDownOpened
DropDownOpening
EnabledChanged
ForeColorChanged
GetControlInstanceType
GetIndex
HookUpControlEvents
Item[Int16]
LocationChanged
MouseDown
MouseEnter
MouseHover
MouseLeave
MouseMove
MouseUp
OwnerChanged
Paint
QueryAccessibilityHelp
ResetIndex
RightToLeftChanged
SetIndex
ShouldSerializeIndex
TextChanged
ToolStripMenuItemArray
VisibleChanged
TreeViewArray
AfterCheck
AfterCollapse
AfterExpand
AfterLabelEdit
AfterSelect
BackColorChanged
BeforeCheck
BeforeCollapse
BeforeExpand
BeforeLabelEdit
BeforeSelect
BindingContextChanged
CanExtend
CausesValidationChanged
ChangeUICues
Click
ClientSizeChanged
ContextMenuChanged
ContextMenuStripChanged
ControlAdded
ControlRemoved
CursorChanged
DockChanged
DoubleClick
DragDrop
DragEnter
DragLeave
DragOver
DrawNode
EnabledChanged
Enter
FontChanged
ForeColorChanged
GetControlInstanceType
GetIndex
GiveFeedback
HelpRequested
HookUpControlEvents
ImeModeChanged
Item[Int16]
ItemDrag
KeyDown
KeyPress
KeyUp
Layout
Leave
LocationChanged
MarginChanged
MouseCaptureChanged
MouseClick
MouseDoubleClick
MouseDown
MouseEnter
MouseHover
MouseLeave
MouseMove
MouseUp
Move
NodeMouseClick
NodeMouseDoubleClick
NodeMouseHover
PaddingChanged
ParentChanged
QueryAccessibilityHelp
QueryContinueDrag
RegionChanged
ResetIndex
Resize
RightToLeftChanged
RightToLeftLayoutChanged
SetIndex
ShouldSerializeIndex
SizeChanged
StyleChanged
SystemColorsChanged
TabIndexChanged
TabStopChanged
TreeViewArray
Validated
Validating
VisibleChanged
UGUID
guid
UNAME
name
UpdateMode
VScrollBarArray
BindingContextChanged
CanExtend
CausesValidationChanged
ChangeUICues
ClientSizeChanged
ContextMenuChanged
ContextMenuStripChanged
ControlAdded
ControlRemoved
CursorChanged
DockChanged
DragDrop
DragEnter
DragLeave
DragOver
EnabledChanged
Enter
GetControlInstanceType
GetIndex
GiveFeedback
HelpRequested
HookUpControlEvents
Item[Int16]
KeyDown
KeyPress
KeyUp
Layout
Leave
LocationChanged
MarginChanged
MouseCaptureChanged
MouseEnter
MouseHover
MouseLeave
Move
PaddingChanged
ParentChanged
QueryAccessibilityHelp
QueryContinueDrag
RegionChanged
ResetIndex
Resize
Scroll
SetIndex
ShouldSerializeIndex
SizeChanged
StyleChanged
SystemColorsChanged
TabIndexChanged
TabStopChanged
Validated
Validating
ValueChanged
VisibleChanged
VScrollBarArray
WebBrowserArray
CanExtend
CausesValidationChanged
ClientSizeChanged
ContextMenuChanged
ContextMenuStripChanged
ControlAdded
ControlRemoved
DockChanged
DocumentCompleted
FileDownload
GetControlInstanceType
GetIndex
HookUpControlEvents
Item[Int16]
LocationChanged
MarginChanged
Move
Navigated
Navigating
NewWindow
ParentChanged
ProgressChanged
RegionChanged
ResetIndex
Resize
SetIndex
ShouldSerializeIndex
SizeChanged
SystemColorsChanged
Validated
Validating
VisibleChanged
WebBrowserArray
WebClass
Name
NextItem
ProcessEvents
UrlData
URLFor
WebClass
WebClassContainingClassNotOptional
WebClassContainingClassNotOptional
WebClassCouldNotFindEvent
WebClassCouldNotFindEvent
WebClassNextItemCannotBeCurrentWebItem
WebClassNextItemCannotBeCurrentWebItem
WebClassNextItemRespondNotFound
WebClassNextItemRespondNotFound
WebClassUserWebClassNameNotOptional
WebClassUserWebClassNameNotOptional
WebClassWebClassFileNameNotOptional
WebClassWebClassFileNameNotOptional
WebClassWebItemNotValid
WebClassWebItemNotValid
WebItem
Name
ReScanReplacements
TagPrefix
WebItem
WriteTemplate
WebItemAssociatedWebClassNotOptional
WebItemAssociatedWebClassNotOptional
WebItemClosingTagNotFound
WebItemClosingTagNotFound
WebItemCouldNotLoadEmbeddedResource
WebItemCouldNotLoadEmbeddedResource
WebItemCouldNotLoadEmbeddedResource
WebItemCouldNotLoadTemplateFile
WebItemCouldNotLoadTemplateFile
WebItemNameNotOptional
WebItemNameNotOptional
WebItemNoTemplateSpecified
WebItemNoTemplateSpecified
WebItemTooManyNestedTags
WebItemTooManyNestedTags
WebItemUnexpectedErrorReadingTemplateFile
WebItemUnexpectedErrorReadingTemplateFile
ZOrderConstants
[Link].VB6 Namespace
The [Link].VB6 namespace contains functions and objects provided use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008.

Introduction
Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Classes
ADODC
Provides compatibility with the Visual Basic 6.0
ADO Data Control , which enabled you to create a
connection to a database using Microsoft ActiveX Data
Objects ( ADO ).

ADODCArray
Provides a control array of ADODC controls.

BaseControlArray
Implements the basic functionality common to control arrays
in applications upgraded from Visual Basic 6.0.

BaseDataEnvironment
Emulates a Visual Basic 6.0 Data Environment in
applications that have been upgraded from Visual Basic 6.0.

BaseOcxArray
Provides a control array of ActiveX controls.

BindingCollectionEnumerator
Supports a simple iteration over a binding collection in an
application upgraded from Visual Basic 6.0.

ButtonArray
Provides a control array of Button controls.

CheckBoxArray
Provides a control array of CheckBox controls.

CheckedListBoxArray
Provides a control array of CheckedListBox controls.

ColorDialogArray
Provides a control array of ColorDialog controls.
ComboBoxArray
Provides a control array of ComboBox controls

DirListBox
Displays directories and paths at run time.

DirListBoxArray
Provides a control array of DirListBox controls.

DriveListBox
Enables a user to select a valid disk drive at run time.

DriveListBoxArray
Provides a control array of DriveListBox controls.

FileListBox
Locates and lists files in the directory specified by the Path
property at run time.

FileListBoxArray
Provides a control array of FileListBox controls.

FixedLengthString
Emulates the behavior of a Visual Basic 6.0 fixed-length string.

FontDialogArray
Provides a control array of FontDialog controls.

GroupBoxArray
Provides a control array of GroupBox controls.

HScrollBarArray
Provides a control array of HScrollBar controls.

ImageListArray
Provides a control array of ImageList controls.

LabelArray
Provides a control array of Label controls.

ListBoxArray
Provides a control array of ListBox controls.

ListBoxItem
Represents an item in a ListBox or ComboBox control in an
application that was upgraded from Visual Basic 6.0.

ListViewArray
Provides a control array of ListView controls.
MaskedTextBoxArray
Provides a control array of MaskedTextBox controls.

MBinding
Enables Windows Forms controls to be bound to ADO
recordsets. This type is a managed equivalent of the Visual
Basic 6.0 msbind library.

MBindingCollection
Provides an interface to replace COM-based data binding in
an application upgraded from Visual Basic 6.0.

MenuItemArray
Provides a control array of MenuItem controls.

OpenFileDialogArray
Provides a control array of OpenFileDialog controls.

PanelArray
Provides a control array of Panel controls.

PictureBoxArray
Provides a control array of PictureBox controls.

PrintDialogArray
Provides a control array of PrintDialog controls.

ProgressBarArray
Provides a control array of ProgressBar controls.

RadioButtonArray
Provides a control array of RadioButton controls.

RichTextBoxArray
Provides a control array of RichTextBox controls

SaveFileDialogArray
Provides a control array of SaveFileDialog controls.

SRDescriptionAttribute
Provides an attribute for use in upgrading Visual Basic 6.0
applications to Visual Basic.

StatusBarArray
Provides a control array of StatusBar controls

StatusStripArray
Provides a control array of StatusStrip controls
Support
Contains various utility functions for backward compatibility
with Visual Basic 6.0.

TabControlArray
Provides a control array of TabControl controls

TextBoxArray
Provides a control array of TextBox controls

TimerArray
Provides a control array of Timer controls

ToolBarArray
Provides a control array of ToolBar controls

ToolStripArray
Provides a control array of ToolStrip controls

ToolStripMenuItemArray
Provides a control array of ToolStripMenuItem controls

TreeViewArray
Provides a control array of TreeView controls

VScrollBarArray
Provides a control array of VScrollBar controls.

WebBrowserArray
Provides a control array of WebBrowser controls

WebClass
Enables upgraded Visual Basic 6.0 WebClass projects to run
in [Link].

WebClassContainingClassNotOptional
Raises an Exception if the ContainingClass value is
missing.

WebClassCouldNotFindEvent
Raises an Exception for a missing event parameter in a
WebClass.

WebClassNextItemCannotBeCurrentWebItem
Raises an Exception in a WebClass.

WebClassNextItemRespondNotFound
Raises an Exception in a WebClass.
WebClassUserWebClassNameNotOptional
Raises an Exception if the UserWebClassName value is
missing.

WebClassWebClassFileNameNotOptional
Raises an Exception if the WebClassFileName value is
missing.

WebClassWebItemNotValid
Raises an Exception if the WebItem value is not valid.

WebItem
Enables upgraded Visual Basic 6.0 WebClass projects to run
in [Link].

WebItemAssociatedWebClassNotOptional
Raises an Exception if the AssociatedWebClass value for a
WebItem is missing.

WebItemClosingTagNotFound
Raises an Exception if the closing tag for a template associated
with a WebItem is missing.

WebItemCouldNotLoadEmbeddedResource
Raises an Exception when an embedded resource specified in a
WebItem is missing.

WebItemCouldNotLoadTemplateFile
Raises an Exception if a template file for a WebItem is missing.

WebItemNameNotOptional
Raises an Exception if the Name value for a WebItem is
missing.

WebItemNoTemplateSpecified
Raises an Exception if the Template value for a WebItem is
missing.

WebItemTooManyNestedTags
Raises an Exception if the template for a WebItem contains too
many nested tags.

WebItemUnexpectedErrorReadingTemplateFile
Raises an Exception if the template for a WebItem cannot be
opened or read.

Structs
CONNECTDATA
A Structure that contains data that is used internally by an
application that has been upgraded from Visual Basic 6.0.

DBBINDING
Provides a Structure that represents an ADO binding in an
application that has been upgraded from Visual Basic 6.0.

DBCOLUMNINFO
A Structure that contains data that is used internally by an
application that has been upgraded from Visual Basic 6.0.

DBID
Provides a Structure that is used internally in an
application that has been upgraded from Visual Basic 6.0.

DBPROPIDSET
Provides a Structure for use in an application that has been
upgraded from Visual Basic 6.0.

UGUID
Provides a Structure that represents a Guid in an
application that has been upgraded from Visual Basic 6.0.

UNAME
Provides a Structure that represents a pointer to a Name
property in an application that has been upgraded from Visual
Basic 6.0.

Interfaces
DBinding
Provides a managed equivalent of the DBinding interface
from the Microsoft Data Binding Collection library (msbind) for
use in applications upgraded from Visual Basic 6.0.

DBindingCollection
Provides an interface to replace COM-based data binding in
an application upgraded from Visual Basic 6.0.

IAccessor
Provides an implementation of the OLE DB IAccessor
interface for use by applications upgraded from Visual Basic
6.0.

IChapteredRowset
Provides an implementation of the OLE DB IAccessor
interface for use by applications upgraded from Visual Basic
6.0.
IColumnsInfo
Provides an implementation of the OLE DB IColumnInfo
interface for use by applications upgraded from Visual Basic
6.0.

IConnectionPoint
Provides an implementation of the OLE DB
IConnectionPoint interface for use by applications
upgraded from Visual Basic 6.0.

IConnectionPointContainer
Provides an implementation of the OLE DB
IConnectionPointContainer interface for use by
applications upgraded from Visual Basic 6.0.

IDataFormat
Provides support for the DataFormat property of the
DBinding interface.

IDataFormatDisp
Provides support for the DataFormat property of the
DBinding interface.

IEnumConnectionPoints
Manages the definition of the IEnumConnectionPoints
interface.

IEnumConnections
Manages the definition of the IEnumConnections interface.

IRowPosition
Provides an implementation of the OLE DB IRowPosition
interface for use by applications upgraded from Visual Basic
6.0.

IRowPositionChange
Provides an implementation of the OLE DB
IRowPositionChange interface for use by applications
upgraded from Visual Basic 6.0.

IRowset
Provides an implementation of the OLE DB IRowset
interface for use by applications upgraded from Visual Basic
6.0.

IRowsetChange
Provides an implementation of the OLE DB IRowsetChange
interface for use by applications upgraded from Visual Basic
6.0.
IRowsetIdentity
Provides an implementation of the OLE DB
IRowsetIdentity interface for use by applications
upgraded from Visual Basic 6.0.

IRowsetInfo
Provides an implementation of the OLE DB IRowsetInfo
interface for use by applications upgraded from Visual Basic
6.0.

IRowsetNotify
Provides an implementation of the OLE DB IRowsetNotify
interface for use by applications upgraded from Visual Basic
6.0.

Enums
[Link]
Provides constants for compatibility with the Visual Basic 6.0
BOFAction property.

[Link]
Provides constants for compatibility with the Visual Basic 6.0
EOFAction property.

[Link]
Provides constants for compatibility with the Visual Basic 6.0
Orientation property.

DBKINDENUM
Provides an enumeration for use by the tools for upgrading
Visual Basic 6.0 applications to Visual Basic.

FormShowConstants
Provides constants for compatibility with the Visual Basic 6.0
Show method.

LoadResConstants
Provides constants for compatibility with the Visual Basic 6.0
LoadResPicture function.

MouseButtonConstants
Provides constants for compatibility with the shift parameter
mask constants in Visual Basic 6.0.

ScaleMode
Provides constants for compatibility with the ScaleMode
constants in Visual Basic 6.0.
ShiftConstants
Provides constants for compatibility with the shift parameter
mask constants in Visual Basic 6.0.

UpdateMode
Provides constants for compatibility with the Visual Basic 6.0
UpdateMode method.

ZOrderConstants
Provides constants for compatibility with the Visual Basic 6.0
ZOrder method.

Delegates
[Link]
Represents the method that will handle an event.

[Link]
Represents the method that will handle an Error event.

[Link]
Represents the method that will handle a FetchComplete
event.

[Link]
Represents the method that will handle a FetchProgress
event.

[Link]
Represents the method that will handle a FieldChange
event.

[Link]
Represents the method that will handle a MoveComplete
event.

[Link]
Represents the method that will handle a
RecordChangeComplete event.

[Link]
Represents the method that will handle a
RecordsetChangeComplete event.

[Link]
Represents the method that will handle a WillChangeField
event.
[Link]
Represents the method that will handle a
WillChangeRecord event.

[Link]
Represents the method that will handle a
WillChangeRecordset event.

[Link]
Represents the method that will handle a WillMove event.
ADODC ADODC Class
Provides compatibility with the Visual Basic 6.0 ADO Data Control , which enabled you to create a connection to a
database using Microsoft ActiveX Data Objects ( ADO ).

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class ADODC : [Link], [Link]
type ADODC = class
inherit UserControl
interface DataSource

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component
Control Control
ScrollableControl ScrollableControl
ContainerControl ContainerControl
UserControl UserControl

Remarks
Use this control in applications upgraded from Visual Basic 6.0 to continue to use an ADO data connection. For new
development, you should consider using [Link] instead of ADO . For more information, see Comparison of [Link]
and ADO.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
ADODC()
ADODC()

Initializes a new instance of the ADODC class.

Properties
BackColor
BackColor

Gets or sets the background color for a ADODC.

BOF
BOF

Gets a value that indicates whether the current row position is before the first row in a Recordset.

BOFAction
BOFAction

Gets or sets a value that indicates what action the ADODC takes when the BOF property is true .

CacheSize
CacheSize

Gets or sets the number of records that are cached in local memory for the current Recordset.

CommandTimeout
CommandTimeout

Gets or sets the duration, in seconds, that the ADODC waits for a command to return from the server.

CommandType
CommandType

Gets or sets a value that informs the ADODC what type of command to pass when opening a Recordset.

ConnectionString
ConnectionString

Gets of sets the information that is used to establish a connection to a data source.

ConnectionTimeout
ConnectionTimeout

Gets or sets the duration of time, in seconds, for which the provider attempts to connect to the server specified in
the ConnectionString property.

CursorLocation
CursorLocation

Gets or sets the location of the cursor library for the ADODC object.

CursorType
CursorType

Gets or sets a value that specifies the default type of cursor to use when opening a result set from the specified
query.
EOF
EOF

Gets a value that indicates whether the current row position is after the last row in a Recordset.

EOFAction
EOFAction

Gets or sets a value that indicates what action the ADODC takes when the EOF property is true .

LockType
LockType

Gets or sets a value that indicates the type of concurrency handling.

MaxRecords
MaxRecords

Gets or sets the maximum number of records that can be retrieved from the data source.

Mode
Mode

Gets or sets a value that specifies the available permissions for modifying data in a Connection or opening a
Record in a ADODC.

Orientation
Orientation

Gets or sets a value that specifies whether a ADODC will be oriented horizontally (the default) or vertically.

Password
Password

Sets the password that is used during the creation of an ADO Recordset object.

Recordset
Recordset

Gets or sets a reference to the underlying ADO Recordset object.

RecordSource
RecordSource

Gets or sets the statement or query that returns a Recordset.


Text
Text

Gets or sets the text that is contained in the display area of a ADODC.

UserName
UserName

Gets or sets a value that represents a user of an ADO Recordset object.

Methods
addDataSourceListener(DataSourceListener)
addDataSourceListener(DataSourceListener)

Adds an interface to monitor changes in a data set.

Dispose(Boolean)
Dispose(Boolean)

Releases the unmanaged resources used by a ADODC and optionally releases the managed resources.

getDataMember(String, Guid)
getDataMember(String, Guid)

Returns a Recordset for a ADODC.

getDataMemberCount()
getDataMemberCount()

Implements the OLE DB [Link] method.

getDataMemberName(Int32)
getDataMemberName(Int32)

Implements the OLE DB [Link] method.

OnResize(EventArgs)
OnResize(EventArgs)

Raises the Resize event.

Refresh()
Refresh()

Forces a control to invalidate its client area and immediately redraw itself and any child controls.
removeDataSourceListener(DataSourceListener)
removeDataSourceListener(DataSourceListener)

Removes a DataSourceListener .

Events
EndOfRecordset
EndOfRecordset

The EndOfRecordset event is called when there is an attempt to move to a row past the end of the Recordset.

Error
Error

Occurs when an exception is raised in a ADODC.

FetchComplete
FetchComplete

Occurs when a ADODC control completes a fetch from a database.

FetchProgress
FetchProgress

Occurs while a ADODC control is fetching data from a database.

FieldChangeComplete
FieldChangeComplete

Occurs when an update to a Field in a Recordset for a ADODC control is complete.

MoveComplete
MoveComplete

Occurs when a MoveFirst , MoveNext , or MoveLast method has occurred in a Recordset for a ADODC control.

RecordChangeComplete
RecordChangeComplete

Occurs when the current record has changed in the Recordset of a ADODC control.

RecordsetChangeComplete
RecordsetChangeComplete
Occurs when the Recordset for a ADODC control changes.

WillChangeField
WillChangeField

Occurs before the current field in a Recordset of a ADODC control changes.

WillChangeRecord
WillChangeRecord

Occurs before the current record in a Recordset of a ADODC control changes.

WillChangeRecordset
WillChangeRecordset

Occurs before the Recordset of a ADODC control changes.

WillMove
WillMove

Occurs before the MoveFirst , MoveNext , or MoveLast method of a Recordset of a ADODC control executes.
[Link] [Link]
Listener
I n this Article
Adds an interface to monitor changes in a data set.

[[Link](false)]
public void addDataSourceListener ([Link] dsl);
abstract member addDataSourceListener : [Link] -> unit
override [Link] : [Link] -> unit

Parameters
dsl [Link] [Link]
A [Link] .
Attributes CLSCompliantAttribute

Remarks
The DataSourceListener monitors a data set for data members that are added, removed, or changed when the
ADODC is connected to a data source.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
ADODC
I n this Article
Initializes a new instance of the ADODC class.
public ADODC ();

Remarks
Provides compatibility with the Visual Basic 6.0 ADO Data Control .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets or sets the background color for a ADODC.
[[Link]("ADODC_DESCBackColor")]
public override [Link] BackColor { get; set; }
member [Link] : [Link] with get, set

Returns
Color Color
A Color that represents the background color of the ADODC.
Attributes SRDescriptionAttribute

Remarks
Setting the BackColor property affects only the part of the control where text is displayed.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets a value that indicates whether the current row position is before the first row in a Recordset.
[[Link](false)]
public bool BOF { get; }
member [Link] : bool

Returns
Boolean Boolean
true if the current row position is before the first row; otherwise, false .
Attributes BrowsableAttribute

Remarks
The BOF and EOF return values are determined by the location of the current row pointer if this pointer is valid. If
either BOF or EOF is true , there is no current row, and any attempt to reference Recordset data causes an exception.
You can use the BOF and EOF properties to determine whether an Recordset object contains rows or whether you have
gone beyond the limits of an Recordset as you move from row to row.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets or sets a value that indicates what action the ADODC takes when the BOF property is true .

[[Link]("ADODC_DESCBOFAction")]
public [Link] BOFAction { get; set; }
member [Link] : [Link] with get, set

Returns
[Link] [Link]
A [Link] enumeration that specifies the action to take.
Attributes SRDescriptionAttribute

Remarks
Use this property to specify the behavior when the MovePrevious button is pressed and the first row of a Recordset is
the current row.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets or sets the number of records that are cached in local memory for the current Recordset.
[[Link]("ADODC_DESCCacheSize")]
public int CacheSize { get; set; }
member [Link] : int with get, set

Returns
Int32 Int32
An Integer that specifies the number of records that are cached in local memory for the current Recordset object. The
default is 50 records.
Attributes SRDescriptionAttribute

Remarks
The CacheSize value tells the provider how many records to keep in its buffer and how many records to fetch at one
time to local memory. For example, when set to 10, after opening the first Recordset, the provider fetches the first 10
records into local memory. Therefore, as you move forward from the current record, the provider returns the data
values from the local memory buffer. As soon as you move past the last record, the next 10 records are fetched from
the data source into the cache.
While you can change value during the life of the cursor, the change only affects the number of records in the cache
after the next fetch from the data source.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets or sets the duration, in seconds, that the ADODC waits for a command to return from the server.
[[Link]("ADODC_DESCCommandTimeout")]
public int CommandTimeout { get; set; }
member [Link] : int with get, set

Returns
Int32 Int32
An Integer that specifies the number of seconds to wait when a connection is being established. The default is 15
seconds.
Attributes SRDescriptionAttribute

Remarks
After this period of time has elapsed without completing the command, the provider raises an exception to the calling
application and cancels the command.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets or sets a value that informs the ADODC what type of command to pass when opening a Recordset.
[[Link]("ADODC_DESCCommandType")]
[[Link](false)]
public [Link] CommandType { get; set; }
member [Link] : [Link] with get, set

Returns
[Link] [Link]
A [Link] enumeration that specifies the command type.
Attributes SRDescriptionAttribute CLSCompliantAttribute

Remarks
Setting this property optimizes the execution of the command.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets of sets the information that is used to establish a connection to a data source.
[[Link]("ADODC_DESCConectionString")]
public string ConnectionString { get; set; }
member [Link] : string with get, set

Returns
String String
A String that contains the connection information.
Attributes SRDescriptionAttribute

Remarks
Use the ConnectionString property to specify a data source by passing a detailed connection string that contains a
series of argument = value statements separated by semicolons.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Timeout
I n this Article
Gets or sets the duration of time, in seconds, for which the provider attempts to connect to the server specified in the
ConnectionString property.
[[Link]("ADODC_DESCConnectionTimeout")]
public int ConnectionTimeout { get; set; }
member [Link] : int with get, set

Returns
Int32 Int32
An Integer that specifies the number of seconds to wait when a connection is being established. The default is 15
seconds.
Attributes SRDescriptionAttribute

Remarks
This property corresponds to the ADO ConnectionTimeout property.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets or sets the location of the cursor library for the ADODC object.
[[Link]("ADODC_DESCCursorLocation")]
[[Link](false)]
public [Link] CursorLocation { get; set; }
member [Link] : [Link] with get, set

Returns
[Link] [Link]
A [Link] enumeration that specifies s the location. The default is
[Link] .

Attributes SRDescriptionAttribute CLSCompliantAttribute

Remarks
This property corresponds to the ADO Command and Connection CursorLocation property.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets or sets a value that specifies the default type of cursor to use when opening a result set from the specified query.
[[Link]("ADODC_DESCCursorType")]
[[Link](false)]
public [Link] CursorType { get; set; }
member [Link] : [Link] with get, set

Returns
[Link] [Link]
A [Link] enumeration that specifies the type of cursor to use.
Attributes SRDescriptionAttribute CLSCompliantAttribute

Remarks
Determines the cursor type to use when opening a Recordset.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Releases the unmanaged resources used by a ADODC and optionally releases the managed resources.
protected override void Dispose (bool disposing);
override [Link] : bool -> unit

Parameters
disposing Boolean Boolean
true to release both managed and unmanaged resources; false to release only unmanaged resources.

Remarks
This method is called by the public Dispose() method and the Finalize method. Dispose() invokes the protected
Dispose(Boolean) method with the disposing parameter set to true . Finalize invokes Dispose with the disposing
parameter set to false .
When the disposing parameter is true , this method releases all resources held by any managed objects that this
control references. This method invokes the Dispose() method of each referenced object.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
The EndOfRecordset event is called when there is an attempt to move to a row past the end of the Recordset.

[[Link](false)]
public event [Link] EndOfRecordset;
member [Link] : [Link]

Attributes CLSCompliantAttribute

Remarks
An EndOfRecordset event may occur if the MoveNext operation fails.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets a value that indicates whether the current row position is after the last row in a Recordset.
[[Link](false)]
public bool EOF { get; }
member [Link] : bool

Returns
Boolean Boolean
true if the current row position is after the last row; otherwise, false .
Attributes BrowsableAttribute

Remarks
The BOF and EOF return values are determined by the location of the current row pointer if this pointer is valid. If
either BOF or EOF is true , there is no current row, and any attempt to reference Recordset data causes an exception.
You can use the BOF and EOF properties to determine whether an Recordset object contains rows or whether you
have gone beyond the limits of an Recordset as you move from row to row.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets or sets a value that indicates what action the ADODC takes when the EOF property is true .

[[Link]("ADODC_DESCEOFAction")]
public [Link] EOFAction { get; set; }
member [Link] : [Link] with get, set

Returns
[Link] [Link]
A [Link] enumeration that specifies the action to take.
Attributes SRDescriptionAttribute

Remarks
Use this property to specify the behavior when the MoveNext button is pressed when the first row of a Recordset is the
current row.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an exception is raised in a ADODC.
public event [Link] Error;
member [Link] : [Link]

Remarks
Use this event to handle exceptions that derive from the underlying OLE DB DataSource .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a ADODC control completes a fetch from a database.
[[Link](false)]
public event [Link] FetchComplete;
member [Link] : [Link]

Attributes CLSCompliantAttribute

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs while a ADODC control is fetching data from a database.
[[Link](false)]
public event [Link] FetchProgress;
member [Link] : [Link]

Attributes CLSCompliantAttribute

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Complete
I n this Article
Occurs when an update to a Field in a Recordset for a ADODC control is complete.

[[Link](false)]
public event [Link]
FieldChangeComplete;
member [Link] :
[Link]

Attributes CLSCompliantAttribute

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Returns a Recordset for a ADODC.
public object getDataMember (string dataMember, ref Guid riid);
abstract member getDataMember : string * -> obj
override [Link] : string * -> obj

Parameters
dataMember String String
A String that describes the data member that represents one or more sets of data supported by the data source.
riid Guid Guid
The interface identifier of the specified data access object.
Returns
Object Object
A data access object (such as a row position) for a given data member.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Count
I n this Article
Implements the OLE DB [Link] method.

public int getDataMemberCount ();


abstract member getDataMemberCount : unit -> int
override [Link] : unit -> int

Returns
Int32 Int32
An Integer that represents the count.

Remarks
Used internally to return a count of data members for the ADODC.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Name
I n this Article
Implements the OLE DB [Link] method.

public string getDataMemberName (int index);


abstract member getDataMemberName : int -> string
override [Link] : int -> string

Parameters
index Int32 Int32
An index into the list of data member names.
Returns
String String
A String that describes the data member name.

Remarks
Used internally to return the name of a data member for a ADODC.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets or sets a value that indicates the type of concurrency handling.
[[Link]("ADODC_DESCLockType")]
[[Link](false)]
public [Link] LockType { get; set; }
member [Link] : [Link] with get, set

Returns
LockTypeEnum LockTypeEnum
A [Link] enumeration that specifies the type of concurrency handling.
Attributes SRDescriptionAttribute CLSCompliantAttribute

Remarks
In order to maintain sufficient control over the data being updated, ADO provides a number of concurrency options that
control how other users are granted, or refused access to the data being updated.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets or sets the maximum number of records that can be retrieved from the data source.
[[Link]("ADODC_DESCMaxRecords")]
public int MaxRecords { get; set; }
member [Link] : int with get, set

Returns
Int32 Int32
An Integer that specifies the number of records that can be retrieved from the data source.
Attributes SRDescriptionAttribute

Remarks
This property corresponds to the ADO [Link] property.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets or sets a value that specifies the available permissions for modifying data in a Connection or opening a Record
in a ADODC.
[[Link]("ADODC_DESCMode")]
[[Link](false)]
public [Link] Mode { get; set; }
member [Link] : [Link] with get, set

Returns
[Link] [Link]
A [Link] that specifies the mode.

Attributes SRDescriptionAttribute CLSCompliantAttribute

Remarks
This property corresponds to the ADO Mode property.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a MoveFirst , MoveNext , or MoveLast method has occurred in a Recordset for a ADODC control.

[[Link](false)]
public event [Link] MoveComplete;
member [Link] : [Link]

Attributes CLSCompliantAttribute

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Raises the Resize event.
protected override void OnResize (EventArgs e);
override [Link] : EventArgs -> unit

Parameters
e EventArgs EventArgs
An EventArgs that contains the event data.

Remarks
Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising
Events.
The OnResize method also enables derived classes to handle the event without attaching a delegate. This is the
preferred technique for handling the event in a derived class.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets or sets a value that specifies whether a ADODC will be oriented horizontally (the default) or vertically.
[[Link]("ADODC_DESCOrientation")]
public [Link] Orientation { get; set; }
member [Link] : [Link] with get,
set

Returns
[Link] [Link]
A [Link] enumeration that specifies the orientation.
Attributes SRDescriptionAttribute

Remarks
This property corresponds to the ADO [Link] property.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Sets the password that is used during the creation of an ADO Recordset object.

[[Link]("ADODC_DESCPassword")]
public string Password { set; }
member [Link] : string

Returns
String String
A String that contains the password.
Attributes SRDescriptionAttribute

Remarks
This property setting is write-only. It may only be provided in code, it cannot be read back from the Password property.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ChangeComplete
I n this Article
Occurs when the current record has changed in the Recordset of a ADODC control.

[[Link](false)]
public event [Link]
RecordChangeComplete;
member [Link] :
[Link]

Attributes CLSCompliantAttribute

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets or sets a reference to the underlying ADO Recordset object.

[[Link](false)]
[[Link](false)]
public [Link] Recordset { get; set; }
member [Link] : [Link] with get, set

Returns
Recordset Recordset
An ADO Recordset object.

Attributes CLSCompliantAttribute BrowsableAttribute

Remarks
By using the Recordset property, you can use the methods, properties, and events of the ADO [Link]
Object.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ChangeComplete
I n this Article
Occurs when the Recordset for a ADODC control changes.

[[Link](false)]
public event [Link]
RecordsetChangeComplete;
member [Link] :
[Link]

Attributes CLSCompliantAttribute

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets or sets the statement or query that returns a Recordset.
[[Link]("ADODC_DESCRecordSource")]
public string RecordSource { get; set; }
member [Link] : string with get, set

Returns
String String
A String that contains the statement or query.
Attributes SRDescriptionAttribute

Remarks
The RecordSource contains both the name of a database table and a valid SQL string using syntax appropriate for the
data source.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Forces a control to invalidate its client area and immediately redraw itself and any child controls.
public override void Refresh ();
override [Link] : unit -> unit

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
DataSourceListener
I n this Article
Removes a DataSourceListener .

[[Link](false)]
public void removeDataSourceListener ([Link] dsl);
abstract member removeDataSourceListener : [Link] -> unit
override [Link] : [Link] -> unit

Parameters
dsl [Link] [Link]
A [Link] .
Attributes CLSCompliantAttribute

Remarks
The DataSourceListener monitors a data set for data members that are added, removed, or changed when the
ADODC is connected to a data source.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets or sets the text that is contained in the display area of a ADODC.
[[Link]("ADODC_DESCControlCaption")]
[[Link](true)]
public override string Text { get; set; }
member [Link] : string with get, set

Returns
String String
A String that specifies the text.
Attributes SRDescriptionAttribute BrowsableAttribute

Remarks
Use this property to communicate information such as the number of the current record to the user.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets or sets a value that represents a user of an ADO Recordset object.

[[Link]("ADODC_DESCUserName")]
public string UserName { get; set; }
member [Link] : string with get, set

Returns
String String
A String that contains a user name.
Attributes SRDescriptionAttribute

Remarks
The user-name syntax depends on the data source. When a UserName and Password are supplied, the control uses the
values to create a connection string (ConnectionString property).
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs before the current field in a Recordset of a ADODC control changes.

[[Link](false)]
public event [Link] WillChangeField;
member [Link] : [Link]

Attributes CLSCompliantAttribute

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs before the current record in a Recordset of a ADODC control changes.

[[Link](false)]
public event [Link]
WillChangeRecord;
member [Link] :
[Link]

Attributes CLSCompliantAttribute

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Recordset
I n this Article
Occurs before the Recordset of a ADODC control changes.

[[Link](false)]
public event [Link]
WillChangeRecordset;
member [Link] :
[Link]

Attributes CLSCompliantAttribute

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs before the MoveFirst , MoveNext , or MoveLast method of a Recordset of a ADODC control executes.

[[Link](false)]
public event [Link] WillMove;
member [Link] : [Link]

Attributes CLSCompliantAttribute

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link] Enum
Provides constants for compatibility with the Visual Basic 6.0 BOFAction property.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public enum [Link]
type [Link] =

I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum

Remarks
In Visual Basic 6.0, the BOFAction property was used to determine what action the ADODC takes when the BOF
property is true.
These constants enable code that has been upgraded from Visual Basic 6.0 to continue to run without additional
modification.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Fields
adDoMoveFirst Keeps the first record as the current record.
adDoMoveFirst

adStayBOF Moving past the start of a Recordset triggers the Validate event on the first record, followed by a
adStayBOF Reposition event on the invalid (BOF) record. At this point, the Move Previous button on the ADODC is
disabled.
[Link] [Link]
RecordsetDelegate Delegate
Represents the method that will handle an event.

D eclaration
[[Link](false)]
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public delegate void [Link](ref bool fMoreData, ref EventStatusEnum
adStatus, Recordset pRecordset);
type [Link] = delegate of * * Recordset -> unit

I nheritance H ierarchy
Object Object
Delegate Delegate

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link] Enum
Provides constants for compatibility with the Visual Basic 6.0 EOFAction property.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public enum [Link]
type [Link] =

I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum

Remarks
In Visual Basic 6.0, the EOFAction property was used to determine what action the ADODC takes when the EOF
property is true.
These constants enable code that has been upgraded from Visual Basic 6.0 to continue to run without additional
modification.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Fields
adDoAddNew Moving past the last record triggers the ADODC 's Validation event to occur on the current record,
adDoAddNew followed by an automatic AddNew , followed by a Reposition event on the new record.

adDoMoveLast Keeps the last record as the current record.


adDoMoveLast

adStayEOF Moving past the end of a Recordset triggers the ADODC 's Validation event on the last record,
adStayEOF followed by a Reposition event on the invalid ( EOF ) record. At this point, the MoveNext button on the
ADODC is disabled.
[Link] [Link] Delegate
Represents the method that will handle an Error event.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public delegate void [Link](int errorNumber, ref string description, int scode,
string source, string helpFile, int helpContext, ref bool cancelDisplay);
type [Link] = delegate of int * * int * string * string * int * -> unit

I nheritance H ierarchy
Object Object
Delegate Delegate

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
CompleteDelegate Delegate
Represents the method that will handle a FetchComplete event.

D eclaration
[[Link](false)]
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public delegate void [Link](Error pError, ref EventStatusEnum adStatus,
Recordset pRecordset);
type [Link] = delegate of Error * * Recordset -> unit

I nheritance H ierarchy
Object Object
Delegate Delegate

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Delegate Delegate
Represents the method that will handle a FetchProgress event.

D eclaration
[[Link](false)]
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public delegate void [Link](int progress, int maxProgress, ref
EventStatusEnum adStatus, Recordset pRecordset);
type [Link] = delegate of int * int * * Recordset -> unit

I nheritance H ierarchy
Object Object
Delegate Delegate

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ChangeCompleteDelegate Delegate
Represents the method that will handle a FieldChange event.

D eclaration
[[Link](false)]
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public delegate void [Link](int cFields, ref object fields, Error
pError, ref EventStatusEnum adStatus, Recordset pRecordset);
type [Link] = delegate of int * * Error * * Recordset -> unit

I nheritance H ierarchy
Object Object
Delegate Delegate

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
CompleteDelegate Delegate
Represents the method that will handle a MoveComplete event.

D eclaration
[[Link](false)]
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public delegate void [Link](EventReasonEnum adReason, Error pError, ref
EventStatusEnum adStatus, Recordset pRecordset);
type [Link] = delegate of EventReasonEnum * Error * * Recordset -> unit

I nheritance H ierarchy
Object Object
Delegate Delegate

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Enum
Provides constants for compatibility with the Visual Basic 6.0 Orientation property.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public enum [Link]
type [Link] =

I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum

Remarks
In Visual Basic 6.0, the Orientation property was used to specify whether a ADODataControl was displayed with a
horizontal or vertical orientation.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Fields
adHorizontal adHorizontal The ADODC will be displayed horizontally.

adVertical adVertical The ADODC will be displayed vertically.


[Link] ADODC.
RecordChangeCompleteDelegate Delegate
Represents the method that will handle a RecordChangeComplete event.

D eclaration
[[Link](false)]
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public delegate void [Link](EventReasonEnum adReason, int cRecords,
Error pError, ref EventStatusEnum adStatus, Recordset pRecordset);
type [Link] = delegate of EventReasonEnum * int * Error * *
Recordset -> unit

I nheritance H ierarchy
Object Object
Delegate Delegate

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ADODC.
RecordsetChangeCompleteDelegate Delegate
Represents the method that will handle a RecordsetChangeComplete event.

D eclaration
[[Link](false)]
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public delegate void [Link](EventReasonEnum adReason, Error
pError, ref EventStatusEnum adStatus, Recordset pRecordset);
type [Link] = delegate of EventReasonEnum * Error * * Recordset
-> unit

I nheritance H ierarchy
Object Object
Delegate Delegate

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
FieldDelegate Delegate
Represents the method that will handle a WillChangeField event.

D eclaration
[[Link](false)]
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public delegate void [Link](int cFields, ref object fields, ref
EventStatusEnum adStatus, Recordset pRecordset);
type [Link] = delegate of int * * * Recordset -> unit

I nheritance H ierarchy
Object Object
Delegate Delegate

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ChangeRecordDelegate Delegate
Represents the method that will handle a WillChangeRecord event.

D eclaration
[[Link](false)]
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public delegate void [Link](EventReasonEnum adReason, int cRecords, ref
EventStatusEnum adStatus, Recordset pRecordset);
type [Link] = delegate of EventReasonEnum * int * * Recordset -> unit

I nheritance H ierarchy
Object Object
Delegate Delegate

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ChangeRecordsetDelegate Delegate
Represents the method that will handle a WillChangeRecordset event.

D eclaration
[[Link](false)]
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public delegate void [Link](EventReasonEnum adReason, ref
EventStatusEnum adStatus, Recordset pRecordset);
type [Link] = delegate of EventReasonEnum * * Recordset -> unit

I nheritance H ierarchy
Object Object
Delegate Delegate

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Delegate
Represents the method that will handle a WillMove event.

D eclaration
[[Link](false)]
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public delegate void [Link](EventReasonEnum adReason, ref EventStatusEnum
adStatus, Recordset pRecordset);
type [Link] = delegate of EventReasonEnum * * Recordset -> unit

I nheritance H ierarchy
Object Object
Delegate Delegate

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
ADODCArray ADODCArray Class
Provides a control array of ADODC controls.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
[[Link](false)]
public class ADODCArray : [Link],
[Link]
type ADODCArray = class
inherit BaseControlArray
interface IExtenderProvider

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component
BaseControlArray BaseControlArray

Remarks
The ADODCArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0 ADODC control array. It
does not provide the design-time features of a Visual Basic 6.0 control array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
ADODCArray()
ADODCArray()

Initializes a new instance of the ADODCArray class.

ADODCArray(IContainer)
ADODCArray(IContainer)

Initializes a new instance of the ADODCArray class, specifying its container.

Properties
Item[Int16]
Item[Int16]

Gets a specific element of an ADODCArray by index. Read-only.


Methods
CanExtend(Object)
CanExtend(Object)

Gets a value that determines whether a control is a member of an ADODCArray.

GetControlInstanceType()
GetControlInstanceType()

Overrides GetControlInstanceType().

GetIndex(ADODC)
GetIndex(ADODC)

Gets the index of an ADODC in a ADODCArray.

HookUpControlEvents(Object)
HookUpControlEvents(Object)

Overrides HookUpControlEvents(Object).

ResetIndex(ADODC)
ResetIndex(ADODC)

The ResetIndex method is not supported in the ADODCArray class

SetIndex(ADODC, Int16)
SetIndex(ADODC, Int16)

Sets the index of the initial ADODC in a ADODCArray.

ShouldSerializeIndex(ADODC)
ShouldSerializeIndex(ADODC)

Returns a value that indicates whether an ADODC control is a member of this ADODCArray.

Events
BackColorChanged
BackColorChanged

Occurs when the value of the BackColor property changes.

BackgroundImageChanged
BackgroundImageChanged

Occurs when the value of the BackgroundImage property changes.

BindingContextChanged
BindingContextChanged

Occurs when the value of the BackgroundImageLayout property changes.

CausesValidationChanged
CausesValidationChanged

Occurs when the value of the CausesValidation property changes.

ChangeUICues
ChangeUICues

Occurs when the focus or keyboard user interface (UI) cues change.

Click
Click

Occurs when an ADODC in an ADODCArray is clicked.

ContextMenuChanged
ContextMenuChanged

Occurs when the value of the ContextMenu property changes.

CtlLoad
CtlLoad

Occurs when an ADODC control is loaded.

CursorChanged
CursorChanged

Occurs when the value of the Cursor property changes.

DockChanged
DockChanged

Occurs when the value of the Dock property changes.


DoubleClick
DoubleClick

Occurs when an ADODC control in an ADODCArray is double-clicked.

DragDrop
DragDrop

Occurs when a drag-and-drop operation is completed.

DragEnter
DragEnter

Occurs when an object is dragged into the control's bounds.

DragLeave
DragLeave

Occurs when an object is dragged out of the control's bounds.

DragOver
DragOver

Occurs when an object is dragged over the control's bounds.

EnabledChanged
EnabledChanged

Occurs when the value of the Enabled property changes.

EndOfRecordset
EndOfRecordset

Occurs when the EOF property of an ADODC control changes.

Enter
Enter

Occurs when the control is entered.

Error
Error

Occurs when an exception is raised for an ADODC control.


FetchComplete
FetchComplete

Occurs when an ADODC control completes a fetch from a database.

FetchProgress
FetchProgress

Occurs while an ADODC control is fetching data from a database.

FieldChangeComplete
FieldChangeComplete

Occurs when an update to a Field in a Recordset for an ADODC control is complete.

FontChanged
FontChanged

Occurs when the value of the Font property changes.

ForeColorChanged
ForeColorChanged

Occurs when the value of the ForeColor property changes.

GiveFeedback
GiveFeedback

Occurs during a drag operation.

HelpRequested
HelpRequested

Occurs when the user requests Help for a control.

ImeModeChanged
ImeModeChanged

Occurs when value of the ImeMode property changes.

KeyDown
KeyDown

Occurs when a key is pressed and the control has focus.


KeyPress
KeyPress

Occurs when a key is pressed and the control has focus.

KeyUp
KeyUp

Occurs when a key is released and the control has focus.

Layout
Layout

Occurs when a control should reposition its child controls.

Leave
Leave

Occurs when the input focus leaves the control.

LocationChanged
LocationChanged

Occurs when the value of the Location property changes.

MouseDown
MouseDown

Occurs when the mouse pointer is over the control and a mouse button is pressed.

MouseEnter
MouseEnter

Occurs when the mouse pointer enters the control.

MouseHover
MouseHover

Occurs when the mouse pointer rests on the control.

MouseLeave
MouseLeave

Occurs when the mouse pointer leaves the control.


MouseMove
MouseMove

Occurs when the mouse pointer is moved over the control.

MouseUp
MouseUp

Occurs when the mouse pointer is over the control and a mouse button is released.

Move
Move

Occurs when the control is moved.

MoveComplete
MoveComplete

Occurs when a MoveFirst , MoveNext , or MoveLast method has occurred in a Recordset for an ADODC control.

Paint
Paint

Occurs when the control is redrawn.

ParentChanged
ParentChanged

Occurs when the control's Parent property changes.

QueryAccessibilityHelp
QueryAccessibilityHelp

Occurs when an AccessibleObject is providing Help to accessibility applications.

QueryContinueDrag
QueryContinueDrag

Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.

RecordChangeComplete
RecordChangeComplete

Occurs when the current record has changed in the Recordset of an ADODC control.
RecordsetChangeComplete
RecordsetChangeComplete

Occurs when the Recordset for an ADODC control changes.

Resize
Resize

Occurs when the control is resized.

RightToLeftChanged
RightToLeftChanged

Occurs when the RightToLeftChanged property value changes.

SizeChanged
SizeChanged

Occurs when the Size property value changes.

StyleChanged
StyleChanged

Occurs when the control style changes.

SystemColorsChanged
SystemColorsChanged

Occurs when the system colors change.

TabIndexChanged
TabIndexChanged

Occurs when the TabIndex property value changes.

TabStopChanged
TabStopChanged

Occurs when the TabStop property value changes.

Validated
Validated

Occurs when the control is finished validating.


Validating
Validating

Occurs when the control is validating.

VisibleChanged
VisibleChanged

Occurs when the Visible property value changes.

WillChangeField
WillChangeField

Occurs before a Field in the Recordset of an ADODC control changes.

WillChangeRecord
WillChangeRecord

Occurs before the current record in a Recordset of an ADODC control changes.

WillChangeRecordset
WillChangeRecordset

Occurs before the Recordset of an ADODC control changes.

WillMove
WillMove

Occurs before the MoveFirst , MoveNext , or MoveLast method of a Recordset of an ADODC control executes.
ADODCArray ADODCArray
I n this Article

Overloads
ADODCArray()
Initializes a new instance of the ADODCArray class.

ADODCArray(IContainer) ADODCArray(IContainer)
Initializes a new instance of the ADODCArray class, specifying
its container.

ADODCArray()
Initializes a new instance of the ADODCArray class.
public ADODCArray ();

Remarks
When you instantiate an ADODCArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

ADODCArray(IContainer) ADODCArray(IContainer)
Initializes a new instance of the ADODCArray class, specifying its container.

public ADODCArray ([Link] Container);


new [Link] : [Link] ->
[Link]

Parameters
Container IContainer IContainer
The IContainer where the control array will be hosted.
Remarks
When you instantiate an ADODCArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ColorChanged
I n this Article
Occurs when the value of the BackColor property changes.

public event EventHandler BackColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BackColor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ADODCArray.
BackgroundImageChanged
I n this Article
Occurs when the value of the BackgroundImage property changes.

public event EventHandler BackgroundImageChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BackgroundImage property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ADODCArray.
BindingContextChanged
I n this Article
Occurs when the value of the BackgroundImageLayout property changes.

public event EventHandler BindingContextChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BackgroundImageLayout property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets a value that determines whether a control is a member of an ADODCArray.
public bool CanExtend (object target);
abstract member CanExtend : obj -> bool
override [Link] : obj -> bool

Parameters
target Object Object
An ADODC control.
Returns
Boolean Boolean
true if target is a member of the control array; otherwise false .

Remarks
The CanExtend method can be used to determine whether a specific ADODC control is the base element of the control
array from which the other elements were cloned.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ADODCArray.
CausesValidationChanged
I n this Article
Occurs when the value of the CausesValidation property changes.

public event EventHandler CausesValidationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the CausesValidation property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Cues
I n this Article
Occurs when the focus or keyboard user interface (UI) cues change.

public event [Link] ChangeUICues;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an ADODC in an ADODCArray is clicked.
public event EventHandler Click;
member [Link] : EventHandler

Remarks
The Click event passes an EventArgs to its event handler. Therefore it only indicates that a click has occurred. If you
need more specific mouse information (button, number of clicks, wheel rotation, or location), use the MouseClick event.
However, the MouseClick event will not be raised if the click is caused by action other than that of the mouse, such as
pressing the ENTER key.
A double-click is determined by the mouse settings of the user's operating system. The user can set the time between
clicks of a mouse button that should be considered a double-click instead of two clicks. The Click event is raised every
time that a control is double-clicked. For example, if you have event handlers for the Click and DoubleClick events of
a control, the Click and DoubleClick events are raised when the control is double-clicked and both methods are
called. If a control is double-clicked and that control does not support the DoubleClick event, the Click event might be
raised two times.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ADODCArray.
ContextMenuChanged
I n this Article
Occurs when the value of the ContextMenu property changes.

public event EventHandler ContextMenuChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ContextMenu property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an ADODC control is loaded.
public event EventHandler CtlLoad;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Cursor property changes.

public event EventHandler CursorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Cursor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the value of the Dock property changes.
public event EventHandler DockChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Dock property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an ADODC control in an ADODCArray is double-clicked.
public event EventHandler DoubleClick;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a drag-and-drop operation is completed.
public event [Link] DragDrop;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged into the control's bounds.
public event [Link] DragEnter;
member [Link] : [Link]

Remarks
The DragEnter event is raised when the user first drags the mouse pointer over the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged out of the control's bounds.
public event EventHandler DragLeave;
member [Link] : EventHandler

Remarks
The DragLeave event is raised when the user drags the mouse pointer out of the control or the user cancels the current
drag-and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged over the control's bounds.
public event [Link] DragOver;
member [Link] : [Link]

Remarks
The DragOver event is raised when the mouse pointer moves within the bounds of the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Enabled property changes.

public event EventHandler EnabledChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Enabled property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Recordset
I n this Article
Occurs when the EOF property of an ADODC control changes.

[[Link](false)]
public event [Link] EndOfRecordset;
member [Link] : [Link]

Attributes CLSCompliantAttribute

Remarks
This event is raised if the EOF property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is entered.
public event EventHandler Enter;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), or by calling the Select or
SelectNextControl method, focus events occur in the following order:
Enter

GotFocus
Leave
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter

GotFocus
LostFocus
Leave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an exception is raised for an ADODC control.
public event [Link] Error;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Complete
I n this Article
Occurs when an ADODC control completes a fetch from a database.

[[Link](false)]
public event [Link] FetchComplete;
member [Link] : [Link]

Attributes CLSCompliantAttribute

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs while an ADODC control is fetching data from a database.
[[Link](false)]
public event [Link] FetchProgress;
member [Link] : [Link]

Attributes CLSCompliantAttribute

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ChangeComplete
I n this Article
Occurs when an update to a Field in a Recordset for an ADODC control is complete.

[[Link](false)]
public event [Link]
FieldChangeComplete;
member [Link] :
[Link]

Attributes CLSCompliantAttribute

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the value of the Font property changes.
public event EventHandler FontChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Font property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ColorChanged
I n this Article
Occurs when the value of the ForeColor property changes.

public event EventHandler ForeColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ForeColor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ControlInstanceType
I n this Article
Overrides GetControlInstanceType().

protected override Type GetControlInstanceType ();


override [Link] : unit -> Type

Returns
Type Type
The ADODCArray class is the base class for all control arrays that are used in applications upgraded from Visual Basic
6.0. Because this class is not typically used to create an instance of the class, this Protected method is usually not
called directly but is instead called by a derived class.

Remarks
This method cannot be called from your application's code. Use the GetType method instead.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the index of an ADODC in a ADODCArray.
public short GetIndex ([Link] o);
member [Link] : [Link] -> int16

Parameters
o ADODC ADODC
An ADODC in the control array.
Returns
Int16 Int16
A Short that represents the index of the specified ADODC.

Remarks
This method can be used to retrieve the index for the specified ADODC
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs during a drag operation.
public event [Link] GiveFeedback;
member [Link] : [Link]

Remarks
The GiveFeedback event is raised when a drag-and-drop operation is started. By using the GiveFeedback event, you
can configure the source of a drag event to modify the appearance of the mouse pointer in order to give the user visual
feedback during a drag-and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Requested
I n this Article
Occurs when the user requests Help for a control.

public event [Link] HelpRequested;


member [Link] : [Link]

Remarks
The HelpRequested event is typically raised when the user presses the F1 key or an associated context-sensitive Help
button is clicked.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
UpControlEvents
I n this Article
Overrides HookUpControlEvents(Object).

protected override void HookUpControlEvents (object o);


override [Link] : obj -> unit

Parameters
o Object Object
An Object.

Remarks
This method cannot be called from your application's code. Use AddHandler to hook up events for any controls that
are added by using the Load method.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when value of the ImeMode property changes.

public event EventHandler ImeModeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ImeMode property is changed by either a programmatic modification or user interaction. For
more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link][Int16] [Link][Int16]
I n this Article
Gets a specific element of an ADODCArray by index. Read-only.
public [Link] this[short Index] { get; }
member [Link](int16) : [Link]

Parameters
Index Int16 Int16
A Short that specifies the position of an element of the control array.
Returns
ADODC ADODC
An ADODC at the specified Index in the control array.

Remarks
The Item property is the default property for a control array. Therefore, the following lines of code are equivalent.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is pressed and the control has focus.
public event [Link] KeyDown;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown

KeyPress
KeyUp
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is pressed and the control has focus.
public event [Link] KeyPress;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress

KeyUp
The KeyPress event is not raised by noncharacter keys; however, the noncharacter keys do raise the KeyDown and
KeyUp events.
Use the KeyChar property to sample keystrokes at run time and to consume or modify a subset of common keystrokes.
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is released and the control has focus.
public event [Link] KeyUp;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress
KeyUp

To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a control should reposition its child controls.
public event [Link] Layout;
member [Link] : [Link]

Remarks
The Layout event occurs when child controls are added or removed, when the bounds of the control changes, and
when other changes occur that can affect the layout of the control. The layout event can be suppressed by using the
SuspendLayout and ResumeLayout methods. Suspending layout enables you to perform multiple actions on a control
without having to perform a layout for each change. For example, if you resize and move a control, each operation
would raise a Layout event.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the input focus leaves the control.
public event EventHandler Leave;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), or by calling the Select or
SelectNextControl method, focus events occur in the following order:
Enter
GotFocus
Leave

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Location property changes.

public event EventHandler LocationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Location property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is pressed.
public event [Link] MouseDown;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover
MouseDown

MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer enters the control.
public event EventHandler MouseEnter;
member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter

MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer rests on the control.
public event EventHandler MouseHover;
member [Link] : EventHandler

Remarks
A typical use of MouseHover is to display a tool tip when the mouse pauses on a control within a specified area around
the control (the "hover rectangle"). The pause required for this event to be raised is specified in milliseconds by the
MouseHoverTime property.
The MouseHover event is defined and detected in connection with the MouseHoverSize and MouseHoverTime
properties.
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover

MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer leaves the control.
public event EventHandler MouseLeave;
member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is moved over the control.
public event [Link] MouseMove;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove

MouseHover / MouseDown / MouseWheel


MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is released.
public event [Link] MouseUp;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp

MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is moved.
public event EventHandler Move;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Complete
I n this Article
Occurs when a MoveFirst , MoveNext , or MoveLast method has occurred in a Recordset for an ADODC control.

[[Link](false)]
public event [Link] MoveComplete;
member [Link] : [Link]

Attributes CLSCompliantAttribute

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is redrawn.
public event [Link] Paint;
member [Link] : [Link]

Remarks
The Paint event handler is typically used to perform custom drawing when a control is redrawn.

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control's Parent property changes.

public event EventHandler ParentChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Parent property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ADODCArray.
QueryAccessibilityHelp
I n this Article
Occurs when an AccessibleObject is providing Help to accessibility applications.

public event [Link] QueryAccessibilityHelp;


member [Link] : [Link]

Remarks
You should use the HelpProvider class to enable users to invoke Help on your accessible object by pressing the F1 key.
The HelpProvider gives you complete information in the QueryAccessibilityHelpEventArgs.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ContinueDrag
I n this Article
Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.
public event [Link] QueryContinueDrag;
member [Link] : [Link]

Remarks
The QueryContinueDrag event is raised when there is a change in the keyboard or mouse button state during a drag-
and-drop operation. The QueryContinueDrag event enables the drag source to determine whether the drag-and-drop
operation should be canceled.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ADODCArray.
RecordChangeComplete
I n this Article
Occurs when the current record has changed in the Recordset of an ADODC control.

[[Link](false)]
public event [Link]
RecordChangeComplete;
member [Link] :
[Link]

Attributes CLSCompliantAttribute

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ADODCArray.
RecordsetChangeComplete
I n this Article
Occurs when the Recordset for an ADODC control changes.

[[Link](false)]
public event [Link]
RecordsetChangeComplete;
member [Link] :
[Link]

Attributes CLSCompliantAttribute

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
The ResetIndex method is not supported in the ADODCArray class

public void ResetIndex ([Link] o);


member [Link] : [Link] -> unit

Parameters
o ADODC ADODC
A Control.

Remarks
This method is not supported, and calling it does not raise an exception.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is resized.
public event EventHandler Resize;
member [Link] : EventHandler

Remarks
To determine the Size of the resized control, you can cast the sender parameter of the EventArgs data to a Control and
get its Size property (or Height and Width properties individually).
To handle custom layouts, use the Layout event instead of the Resize event. The Layout event is raised in response to
a Resize event, but also in response to other changes that affect the layout of the control.

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
LeftChanged
I n this Article
Occurs when the RightToLeftChanged property value changes.

public event EventHandler RightToLeftChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Region property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Sets the index of the initial ADODC in a ADODCArray.
public void SetIndex ([Link] o, short Index);
member [Link] : [Link] * int16 -> unit

Parameters
o ADODC ADODC
An ADODC in the control array.
Index Int16 Int16
A Short that represents the index of the specified ADODC.

Remarks
The SetIndex method should be called only when you are creating the initial element in the control array. To add
subsequent elements, call the Load method and specify the Index .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
SerializeIndex
I n this Article
Returns a value that indicates whether an ADODC control is a member of this ADODCArray.

public bool ShouldSerializeIndex ([Link] o);


member [Link] : [Link] -> bool

Parameters
o ADODC ADODC
An ADODC control.
Returns
Boolean Boolean
If the specified ADODC is a member of a different ADODCArray, ShouldSerializeIndex returns false .

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the Size property value changes.
public event EventHandler SizeChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Size property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control style changes.
public event EventHandler StyleChanged;
member [Link] : EventHandler

Remarks
The StyleChanged event occurs when ControlStyles flags have been added or changed.

This event is raised if the control style is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ADODCArray.
SystemColorsChanged
I n this Article
Occurs when the system colors change.

public event EventHandler SystemColorsChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SystemColors is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the TabIndex property value changes.

public event EventHandler TabIndexChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabIndex property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the TabStop property value changes.

public event EventHandler TabStopChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabStop property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is finished validating.
public event EventHandler Validated;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated

If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is validating.
public event [Link] Validating;
member [Link] : [Link]

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated
If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Visible property value changes.

public event EventHandler VisibleChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Visible property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Field
I n this Article
Occurs before a Field in the Recordset of an ADODC control changes.

[[Link](false)]
public event [Link] WillChangeField;
member [Link] : [Link]

Attributes CLSCompliantAttribute

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ChangeRecord
I n this Article
Occurs before the current record in a Recordset of an ADODC control changes.

[[Link](false)]
public event [Link]
WillChangeRecord;
member [Link] :
[Link]

Attributes CLSCompliantAttribute

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ChangeRecordset
I n this Article
Occurs before the Recordset of an ADODC control changes.

[[Link](false)]
public event [Link]
WillChangeRecordset;
member [Link] :
[Link]

Attributes CLSCompliantAttribute

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs before the MoveFirst , MoveNext , or MoveLast method of a Recordset of an ADODC control executes.

[[Link](false)]
public event [Link] WillMove;
member [Link] : [Link]

Attributes CLSCompliantAttribute

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
BaseControlArray BaseControlArray Class
Implements the basic functionality common to control arrays in applications upgraded from Visual Basic 6.0.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public abstract class BaseControlArray : [Link],
[Link]
type BaseControlArray = class
inherit Component
interface ISupportInitialize

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component

Remarks
You do not typically inherit from BaseControlArray . To create your own control array, inherit from one of the control
array classes in the [Link].VB6 namespace.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
BaseControlArray()
BaseControlArray()

Initializes a new instance of the BaseControlArray class.

BaseControlArray(IContainer)
BaseControlArray(IContainer)

Initializes a new instance of the BaseControlArray class, optionally specifying a container.

Fields
components
components

Stores the container for a control array.

controlAddedAtDesignTime
controlAddedAtDesignTime

Stores values to track whether a control in a control array was created at design time or at run time.

controls
controls

Stores values that represent the controls in a control array.

fIsEndInitCalled
fIsEndInitCalled

Stores a value indicating whether the initialization code for a control array's container has finished executing.

indices
indices

Stores the indices for a control array.

Methods
BaseCanExtend(Object)
BaseCanExtend(Object)

Gets a value that indicates whether a control is a member of a control array.

BaseGetIndex(Object)
BaseGetIndex(Object)

Gets the index of a control in a control array.

BaseGetItem(Int16)
BaseGetItem(Int16)

Gets the control for a specified index in a control array.

BaseResetIndex(Object)
BaseResetIndex(Object)

Not supported in the BaseControlArray class.

BaseSetIndex(Object, Int16, Boolean)


BaseSetIndex(Object, Int16, Boolean)

Sets the index for a control in a control array.


BaseShouldSerializeIndex(Object)
BaseShouldSerializeIndex(Object)

Returns a value that indicates whether a control is a member of a control array.

Count()
Count()

Returns the number of controls in a control array.

Dispose(Boolean)
Dispose(Boolean)

Releases the unmanaged resources that are used by a control in a control array and optionally releases the
managed resources.

GetControlInstanceType()
GetControlInstanceType()

Returns the type of a control in a control array.

GetEnumerator()
GetEnumerator()

Returns a reference to an enumerator object, which is used to iterate over a control array.

HookUpControlEvents(Object)
HookUpControlEvents(Object)

Adds event handlers for a control in a control array.

LBound()
LBound()

Returns a Short that contains the smallest available subscript for a control array.

Load(Int16)
Load(Int16)

Creates a new element in a control array.

UBound()
UBound()

Returns a Short that contains the largest available subscript for a control array.
Unload(Int16)
Unload(Int16)

Removes a control from a control array.

[Link]()
[Link]()

Begins the initialization of the control.

[Link]()
[Link]()

Ends the initialization of a control.


[Link] [Link]
CanExtend
I n this Article
Gets a value that indicates whether a control is a member of a control array.

protected bool BaseCanExtend (object target);


member [Link] : obj -> bool

Parameters
target Object Object
The Control to test.
Returns
Boolean Boolean
true if the control is a member of the control array; otherwise, false .

Remarks
The BaseControlArray class is the base class for all control arrays that are used in applications upgraded from Visual
Basic 6.0. Because this class is not typically used to create an instance of the class, this Protected method is usually
not called directly but is instead called by a derived class.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
BaseControlArray BaseControlArray
I n this Article

Overloads
BaseControlArray()
Initializes a new instance of the BaseControlArray class.

BaseControlArray(IContainer) BaseControlArray(IContainer)
Initializes a new instance of the BaseControlArray class,
optionally specifying a container.

BaseControlArray()
Initializes a new instance of the BaseControlArray class.
protected BaseControlArray ();

Remarks
The BaseControlArray class is the base class for all control arrays used in applications upgraded from Visual Basic 6.0.
Because this class is not typically used to create an instance of the class, this constructor is typically not called directly
but is instead called by a derived class.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

BaseControlArray(IContainer) BaseControlArray(IContainer)
Initializes a new instance of the BaseControlArray class, optionally specifying a container.
protected BaseControlArray ([Link] Container);
new [Link] : [Link] ->
[Link]

Parameters
Container IContainer IContainer
The IContainer where the control array will be hosted.
Remarks
The BaseControlArray class is the base class for all control arrays that are used in applications upgraded from Visual
Basic 6.0. Because this class is not typically used to create an instance of the class, this constructor is usually not called
directly but is instead called by a derived class.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
GetIndex
I n this Article
Gets the index of a control in a control array.

protected short BaseGetIndex (object ctl);


member [Link] : obj -> int16

Parameters
ctl Object Object
The Control for which you want to retrieve the index.
Returns
Int16 Int16
A Short integer representing the index of the control in the control array.

Remarks
The BaseControlArray class is the base class for all control arrays that are used in applications upgraded from Visual
Basic 6.0. Because this class is not typically used to create an instance of the class, this Protected method is usually
not called directly but is instead called by a derived class.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Item
I n this Article
Gets the control for a specified index in a control array.

protected object BaseGetItem (short Index);


member [Link] : int16 -> obj

Parameters
Index Int16 Int16
An integer that represents the index of the control in the control array.
Returns
Object Object
The Control at the specified Index .

Remarks
The BaseControlArray class is the base class for all control arrays that are used in applications upgraded from Visual
Basic 6.0. Because this class is not typically used to create an instance of the class, this Protected method is usually
not called directly but is instead called by a derived class.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ResetIndex
I n this Article
Not supported in the BaseControlArray class.

protected void BaseResetIndex (object o);


member [Link] : obj -> unit

Parameters
o Object Object
A Control.

Remarks
This method is not supported.
The BaseControlArray class is the base class for all control arrays that are used in applications upgraded from Visual
Basic 6.0. -
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
SetIndex
I n this Article
Sets the index for a control in a control array.

protected void BaseSetIndex (object ctl, short Index, bool fIsDynamic = false);
member [Link] : obj * int16 * bool -> unit

Parameters
ctl Object Object
The Control for which you want to set the index.
Index Int16 Int16
A Short integer that represents the index for the control.

fIsDynamic Boolean Boolean


Optional. A Boolean specifying whether the control was created at design time ( false ) or at run time ( true ).

Remarks
The BaseControlArray class is the base class for all control arrays that are used in applications upgraded from Visual
Basic 6.0. Because this class is not typically used to create an instance of the class, this Protected method is usually
not called directly but is instead called by a derived class.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] BaseControl
[Link]
I n this Article
Returns a value that indicates whether a control is a member of a control array.

protected bool BaseShouldSerializeIndex (object o);


member [Link] : obj -> bool

Parameters
o Object Object
A Control.
Returns
Boolean Boolean
true if the control is a member of the control array; otherwise, false .

Remarks
The BaseControlArray class is the base class for all control arrays that are used in applications upgraded from Visual
Basic 6.0. Because this class is not typically used to create an instance of the class, this Protected method is usually
not called directly but is instead called by a derived class.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] BaseControl
[Link]
I n this Article
Stores the container for a control array.

protected [Link] components;


val mutable components : [Link]

Returns
IContainer IContainer

Remarks
The BaseControlArray class is the base class for all control arrays that are used in applications upgraded from Visual
Basic 6.0.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] Base
[Link]
I n this Article
Stores values to track whether a control in a control array was created at design time or at run time.

protected [Link] controlAddedAtDesignTime;


val mutable controlAddedAtDesignTime : [Link]

Returns
Hashtable Hashtable

Remarks
The BaseControlArray class is the base class for all control arrays that are used in applications upgraded from Visual
Basic 6.0.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Stores values that represent the controls in a control array.
protected [Link] controls;
val mutable controls : [Link]

Returns
Hashtable Hashtable

Remarks
The BaseControlArray class is the base class for all control arrays that are used in applications upgraded from Visual
Basic 6.0.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Returns the number of controls in a control array.
public short Count ();
member [Link] : unit -> int16

Returns
Int16 Int16
A Short that contains the number of controls.

Remarks
You can use this property in a For...Next Statement to perform an operation on the controls in a control array.
The BaseControlArray class is the base class for all control arrays used in applications upgraded from Visual Basic 6.0.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Releases the unmanaged resources that are used by a control in a control array and optionally releases the managed
resources.

protected override void Dispose (bool disposing);


override [Link] : bool -> unit

Parameters
disposing Boolean Boolean
true to release both managed and unmanaged resources; false to release only unmanaged resources.

Remarks
This method is called by the public Dispose() method and the Finalize method. Dispose() invokes the protected
Dispose(Boolean) method with the disposing parameter set to true . Finalize invokes Dispose with the disposing
parameter set to false .
When the disposing parameter is true , this method releases all resources held by any managed objects that this
control references. This method invokes the Dispose() method of each referenced object.
[Link] [Link]
EndInitCalled
I n this Article
Stores a value indicating whether the initialization code for a control array's container has finished executing.

protected bool fIsEndInitCalled;


val mutable fIsEndInitCalled : bool

Returns
Boolean Boolean

Remarks
The BaseControlArray class is the base class for all control arrays used in applications upgraded from Visual Basic 6.0.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] BaseControl
[Link]
I n this Article
Returns the type of a control in a control array.

protected abstract Type GetControlInstanceType ();


abstract member GetControlInstanceType : unit -> Type

Returns
Type Type
This method must be overridden.
The BaseControlArray class is the base class for all control arrays that are used in applications upgraded from Visual
Basic 6.0. Because this class is not typically used to create an instance of the class, this Protected method is usually
not called directly but is instead called by a derived class.
Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the [!INCLUDE [dnprdnshort](~/includes/[Link])]. They are
necessary only when the Visual Basic 6.0 code model differs significantly from the [!INCLUDE [dnprdnshort]
(~/includes/[Link])] implementation.
[Link] [Link]
Enumerator
I n this Article
Returns a reference to an enumerator object, which is used to iterate over a control array.

public [Link] GetEnumerator ();


member [Link] : unit -> [Link]

Returns
IEnumerator IEnumerator
A IEnumerator object.

Remarks
The BaseControlArray class is the base class for all control arrays used in applications upgraded from Visual Basic 6.0.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] BaseControl
[Link]
I n this Article
Adds event handlers for a control in a control array.

protected abstract void HookUpControlEvents (object o);


abstract member HookUpControlEvents : obj -> unit

Parameters
o Object Object
A Control.

Remarks
This method must be overridden.
The BaseControlArray class is the base class for all control arrays that are used in applications upgraded from Visual
Basic 6.0.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Stores the indices for a control array.
protected [Link] indices;
val mutable indices : [Link]

Returns
Hashtable Hashtable

Remarks
The BaseControlArray class is the base class for all control arrays used in applications upgraded from Visual Basic 6.0.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link]
I n this Article
Begins the initialization of the control.
void [Link] ();

Remarks
Design environments typically use this method to start the initialization of a component that is used on a form or used
by another component. The [Link]() method ends the initialization. Using the BeginInit and
[Link]() methods prevents the control from being used before it is fully initialized. The initialization
occurs at run time.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link]
I n this Article
Ends the initialization of a control.
void [Link] ();

Remarks
Design environments typically use this method to finish the initialization of a component that is used on a form or used
by another component. The EndInit method ends the initialization. Using the [Link] and
EndInit methods prevents the control from being used before it is fully initialized. The initialization occurs at run time.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Returns a Short that contains the smallest available subscript for a control array.

public short LBound ();


member [Link] : unit -> int16

Returns
Int16 Int16
A Short that contains the lower bounds of a control array.

Remarks
The LBound function is used with the UBound function to determine the size of a control array.
The BaseControlArray class is the base class for all control arrays used in applications upgraded from Visual Basic 6.0.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Creates a new element in a control array.
public void Load (short Index);
member [Link] : int16 -> unit

Parameters
Index Int16 Int16
A Short that represents the index of the new control.

Remarks
This method is the equivalent of the Visual Basic 6.0 Load function for dynamically creating a new control array
element.
The BaseControlArray class is the base class for all control arrays used in applications upgraded from Visual Basic 6.0.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Returns a Short that contains the largest available subscript for a control array.

public short UBound ();


member [Link] : unit -> int16

Returns
Int16 Int16
A Short that contains the upper bounds of a control array.

Remarks
The UBound function is used with the LBound function to determine the size of a control array.
The BaseControlArray class is the base class for all control arrays used in applications upgraded from Visual Basic 6.0.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Removes a control from a control array.
public void Unload (short Index);
member [Link] : int16 -> unit

Parameters
Index Int16 Int16
A Short that represents the index of the control to remove.

Remarks
This method is the equivalent of the Visual Basic 6.0 Unload function for dynamically removing a control array
element.
Note

Only controls that were added dynamically by using the Load method can be removed from the control array.
The BaseControlArray class is the base class for all control arrays that are used in applications upgraded from Visual
Basic 6.0.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
BaseDataEnvironment BaseDataEnvironment Class
Emulates a Visual Basic 6.0 Data Environment in applications that have been upgraded from Visual Basic 6.0.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public abstract class BaseDataEnvironment : IDisposable, [Link]
type BaseDataEnvironment = class
interface DataSource
interface IDisposable

I nheritance H ierarchy
Object Object

Remarks
In Visual Basic 6.0, data-bound forms were automatically created when you dragged database elements from a
Data Environment onto a form. The Data Environment handled all the mapping between Visual Basic 6.0 and the
ADO data layer. When an application is upgraded to Visual Basic, a BaseDataEnvironment is created to enable the
ADO -related code.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
BaseDataEnvironment()
BaseDataEnvironment()

Initializes a new instance of the BaseDataEnvironment class.

Fields
m_Commands
m_Commands

Contains the Commands[Object] collection.

m_Connections
m_Connections

Contains the Connections[Object] collection.

m_NonRSReturningCommands
m_NonRSReturningCommands

Contains a collection.

m_Recordsets
m_Recordsets

Contains the Recordsets[Object] collection.

Properties
Commands
Commands

Gets a collection of [Link] objects for use in an application upgraded from Visual Basic 6.0.

Commands[Object]
Commands[Object]

Gets a collection of [Link] objects for use in an application upgraded from Visual Basic 6.0.

Connections
Connections

Gets a collection of [Link] objects for use in an application upgraded from Visual Basic 6.0.

Connections[Object]
Connections[Object]

Gets a collection of [Link] objects for use in an application upgraded from Visual Basic 6.0.

Object
Object

Gets the BaseDataEnvironment object.

Recordsets
Recordsets

Gets a collection of [Link] objects for use in an application upgraded from Visual Basic 6.0.

Recordsets[Object]
Recordsets[Object]

Gets a collection of [Link] objects for use in an application upgraded from Visual Basic 6.0.
Methods
addDataSourceListener(DataSourceListener)
addDataSourceListener(DataSourceListener)

This method is not implemented in the BaseDataEnvironment class.

Dispose()
Dispose()

Releases the unmanaged resources that are used by a BaseDataEnvironment.

Dispose(Boolean)
Dispose(Boolean)

Releases the unmanaged resources that are used by a BaseDataEnvironment, and optionally releases the managed
resources.

Finalize()
Finalize()

Overrides the Finalize() method.

getDataMember(String, Guid)
getDataMember(String, Guid)

Invokes a method based on an [Link] object.

GetDataMemberCount()
GetDataMemberCount()

Gets a count of [Link] objects.

GetDataMemberName(Int32)
GetDataMemberName(Int32)

This method is not implemented in the BaseDataEnvironment class.

removeDataSourceListener(DataSourceListener)
removeDataSourceListener(DataSourceListener)

This method is not implemented in the BaseDataEnvironment class.


[Link] BaseData
[Link]
I n this Article
This method is not implemented in the BaseDataEnvironment class.

[[Link](false)]
public virtual void addDataSourceListener ([Link] ds);
abstract member addDataSourceListener : [Link] -> unit
override [Link] : [Link] -> unit

Parameters
ds [Link] [Link]
None.
Attributes CLSCompliantAttribute

Remarks
This method is not implemented in the BaseDataEnvironment class.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
BaseDataEnvironment
I n this Article
Initializes a new instance of the BaseDataEnvironment class.
protected BaseDataEnvironment ();

Remarks
When an application is upgraded to Visual Basic, a BaseDataEnvironment is created to enable the ADO -related code.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link][Object] BaseData
[Link][Object]
I n this Article

Overloads
Commands Commands
Gets a collection of [Link] objects for use in an
application upgraded from Visual Basic 6.0.

Commands[Object] Commands[Object]
Gets a collection of [Link] objects for use in an
application upgraded from Visual Basic 6.0.

Commands Commands
Gets a collection of [Link] objects for use in an application upgraded from Visual Basic 6.0.

public [Link] Commands { get; }


member [Link] : [Link]

Returns
Collection Collection
A collection of [Link] objects.
Remarks
When an application is upgraded to Visual Basic, a BaseDataEnvironment is created to enable the ADO -related code.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Commands[Object] Commands[Object]
Gets a collection of [Link] objects for use in an application upgraded from Visual Basic 6.0.

[[Link](false)]
public [Link] Commands[object lpVar] { get; }
member [Link](obj) : [Link]

Parameters
lpVar Object Object
A Visual Basic 6.0 Variant that contains the [Link] objects.
Returns
[Link] [Link]
A collection of [Link] objects.
Attributes CLSCompliantAttribute
Remarks
When an application is upgraded to Visual Basic, a BaseDataEnvironment is created to enable the ADO -related code.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link][Object] BaseData
[Link][Object]
I n this Article

Overloads
Connections Connections
Gets a collection of [Link] objects for use in an
application upgraded from Visual Basic 6.0.

Connections[Object] Connections[Object]
Gets a collection of [Link] objects for use in an
application upgraded from Visual Basic 6.0.

Connections Connections
Gets a collection of [Link] objects for use in an application upgraded from Visual Basic 6.0.

public [Link] Connections { get; }


member [Link] : [Link]

Returns
Collection Collection
A collection of [Link] objects.
Remarks
When an application is upgraded to Visual Basic, a BaseDataEnvironment is created to enable the ADO -related code.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Connections[Object] Connections[Object]
Gets a collection of [Link] objects for use in an application upgraded from Visual Basic 6.0.

[[Link](false)]
public [Link] Connections[object lpVar] { get; }
member [Link](obj) : [Link]

Parameters
lpVar Object Object
A Visual Basic 6.0 Variant that contains the [Link] objects.
Returns
[Link] [Link]
A collection of [Link] objects.
Attributes CLSCompliantAttribute
Remarks
When an application is upgraded to Visual Basic, a BaseDataEnvironment is created to enable the ADO -related code.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] BaseDataEnvironment.
Dispose
I n this Article

Overloads
Dispose() Dispose()
Releases the unmanaged resources that are used by a
BaseDataEnvironment.

Dispose(Boolean) Dispose(Boolean)
Releases the unmanaged resources that are used by a
BaseDataEnvironment, and optionally releases the managed
resources.

Dispose() Dispose()
Releases the unmanaged resources that are used by a BaseDataEnvironment.
public virtual void Dispose ();
abstract member Dispose : unit -> unit
override [Link] : unit -> unit

Remarks
This method is called by the public Dispose() method and the Finalize method.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Dispose(Boolean) Dispose(Boolean)
Releases the unmanaged resources that are used by a BaseDataEnvironment, and optionally releases the managed
resources.
protected virtual void Dispose (bool disposing);
abstract member Dispose : bool -> unit
override [Link] : bool -> unit

Parameters
disposing Boolean Boolean
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Remarks
This method is called by the public Dispose() method and the Finalize method. Dispose() invokes the protected
Dispose(Boolean) method with the disposing parameter set to true . Finalize invokes Dispose with the disposing
parameter set to false .
When the disposing parameter is true , this method releases all resources held by any managed objects that this
control references. This method invokes the Dispose() method of each referenced object.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] BaseDataEnvironment.
Finalize
I n this Article
Overrides the Finalize() method.

~BaseDataEnvironment ();
override [Link] : unit -> unit

Remarks
When an application is upgraded to Visual Basic, a BaseDataEnvironment is created to enable the ADO -related code.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] BaseData
[Link]
I n this Article
Invokes a method based on an [Link] object.

public virtual object getDataMember (string strDataMember, ref Guid Id);


abstract member getDataMember : string * -> obj
override [Link] : string * -> obj

Parameters
strDataMember String String
A String that contains an [Link] object.
Id Guid Guid
A GUID representing an [Link] object.
Returns
Object Object
An Object that contains the [Link] object.

Remarks
When an application is upgraded to Visual Basic, a BaseDataEnvironment is created to enable the ADO -related code.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] BaseData
[Link]
I n this Article
Gets a count of [Link] objects.

public virtual int GetDataMemberCount ();


abstract member GetDataMemberCount : unit -> int
override [Link] : unit -> int

Returns
Int32 Int32
An Integer that contains the count.

Remarks
Only [Link] objects that do not return an [Link] are counted.
When an application is upgraded to Visual Basic, a BaseDataEnvironment is created to enable the ADO -related code.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] BaseData
[Link]
I n this Article
This method is not implemented in the BaseDataEnvironment class.

public virtual string GetDataMemberName (int Index);


abstract member GetDataMemberName : int -> string
override [Link] : int -> string

Parameters
Index Int32 Int32
Not applicable.
Returns
String String
Nothing .

Remarks
This method is not implemented in the BaseDataEnvironment class.
When an application is upgraded to Visual Basic, a BaseDataEnvironment is created to enable the ADO -related code.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
BaseDataEnvironment.m_Commands BaseData
Environment.m_Commands
I n this Article
Contains the Commands[Object] collection.

protected [Link] m_Commands;


val mutable m_Commands : [Link]

Returns
Collection Collection

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
BaseDataEnvironment.m_Connections BaseData
Environment.m_Connections
I n this Article
Contains the Connections[Object] collection.

protected [Link] m_Connections;


val mutable m_Connections : [Link]

Returns
Collection Collection

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
BaseDataEnvironment.m_NonRSReturningCommands
BaseDataEnvironment.m_NonRSReturningCommands
I n this Article
Contains a collection.

protected [Link] m_NonRSReturningCommands;


val mutable m_NonRSReturningCommands : [Link]

Returns
Collection Collection

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
BaseDataEnvironment.m_Recordsets BaseData
Environment.m_Recordsets
I n this Article
Contains the Recordsets[Object] collection.

protected [Link] m_Recordsets;


val mutable m_Recordsets : [Link]

Returns
Collection Collection

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] BaseDataEnvironment.
Object
I n this Article
Gets the BaseDataEnvironment object.

public object Object { get; }


member [Link] : obj

Returns
Object Object
A BaseDataEnvironment object.

Remarks
When an application is upgraded to Visual Basic, a BaseDataEnvironment is created to enable the ADO -related code.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link][Object] BaseData
[Link][Object]
I n this Article

Overloads
Recordsets Recordsets
Gets a collection of [Link] objects for use in an
application upgraded from Visual Basic 6.0.

Recordsets[Object] Recordsets[Object]
Gets a collection of [Link] objects for use in an
application upgraded from Visual Basic 6.0.

Recordsets Recordsets
Gets a collection of [Link] objects for use in an application upgraded from Visual Basic 6.0.

public [Link] Recordsets { get; }


member [Link] : [Link]

Returns
Collection Collection
A collection of [Link] objects.
Remarks
When an application is upgraded to Visual Basic, a BaseDataEnvironment is created to enable the ADO -related code.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Recordsets[Object] Recordsets[Object]
Gets a collection of [Link] objects for use in an application upgraded from Visual Basic 6.0.

[[Link](false)]
public [Link] Recordsets[object lpVar] { get; }
member [Link](obj) : [Link]

Parameters
lpVar Object Object
A Visual Basic 6.0 Variant that contains the [Link] objects.
Returns
Recordset Recordset
A collection of [Link] objects.
Attributes CLSCompliantAttribute
Remarks
When an application is upgraded to Visual Basic, a BaseDataEnvironment is created to enable the ADO -related code.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] Base
[Link]
I n this Article
This method is not implemented in the BaseDataEnvironment class.

[[Link](false)]
public virtual void removeDataSourceListener ([Link] ds);
abstract member removeDataSourceListener : [Link] -> unit
override [Link] : [Link] -> unit

Parameters
ds [Link] [Link]
Not applicable.
Attributes CLSCompliantAttribute

Remarks
This method is not implemented in the BaseDataEnvironment class.
When an application is upgraded to Visual Basic, a BaseDataEnvironment is created to enable the ADO -related code.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
BaseOcxArray BaseOcxArray Class
Provides a control array of ActiveX controls.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public abstract class BaseOcxArray : [Link]
type BaseOcxArray = class
inherit BaseControlArray

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component
BaseControlArray BaseControlArray

Remarks
The BaseOcxArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0 ActiveX control
array. It does not provide the design-time features of a Visual Basic 6.0 control array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
BaseOcxArray()
BaseOcxArray()

Initializes a new instance of the BaseOcxArray class.

BaseOcxArray(IContainer)
BaseOcxArray(IContainer)

Initializes a new instance of the BaseOcxArray class, specifying its container.

Methods
HookUpControlEvents(Object)
HookUpControlEvents(Object)

Overrides HookUpControlEvents(Object).

Events
CausesValidationChanged
CausesValidationChanged

Occurs when the value of the CausesValidation property changes.

ClientSizeChanged
ClientSizeChanged

Occurs when the value of the ClientSize property changes.

ContextMenuChanged
ContextMenuChanged

Occurs when the value of the ContextMenu property changes.

ContextMenuStripChanged
ContextMenuStripChanged

Occurs when the value of the ContextMenuStrip property changes.

ControlAdded
ControlAdded

Occurs when a new control is added to the BaseOcxArray.

ControlRemoved
ControlRemoved

Occurs when a control is removed from the BaseOcxArray.

DockChanged
DockChanged

Occurs when the value of the Dock property changes.

Enter
Enter

Occurs when the control is entered.

Leave
Leave

Occurs when the input focus leaves the control.


LocationChanged
LocationChanged

Occurs when the value of the Location property changes.

MarginChanged
MarginChanged

Occurs when the value of the Margin property changes.

MouseCaptureChanged
MouseCaptureChanged

Occurs when the control loses or gains mouse capture.

Move
Move

Occurs when the control is moved.

PaddingChanged
PaddingChanged

Occurs when the control's Padding property changes.

ParentChanged
ParentChanged

Occurs when the control's Parent property changes.

RegionChanged
RegionChanged

Occurs when the value of the Region property changes.

Resize
Resize

Occurs when the control is resized.

SizeChanged
SizeChanged

Occurs when the Size property value changes.


SystemColorsChanged
SystemColorsChanged

Occurs when the system colors change.

Validated
Validated

Occurs when the control is finished validating.

Validating
Validating

Occurs when the control is validating.

VisibleChanged
VisibleChanged

Occurs when the Visible property value changes.


BaseOcxArray BaseOcxArray
I n this Article

Overloads
BaseOcxArray()
Initializes a new instance of the BaseOcxArray class.

BaseOcxArray(IContainer) BaseOcxArray(IContainer)
Initializes a new instance of the BaseOcxArray class,
specifying its container.

BaseOcxArray()
Initializes a new instance of the BaseOcxArray class.

protected BaseOcxArray ();

Remarks
When you instantiate a BaseOcxArray , you must also call the BaseSetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

BaseOcxArray(IContainer) BaseOcxArray(IContainer)
Initializes a new instance of the BaseOcxArray class, specifying its container.

protected BaseOcxArray ([Link] Container);


new [Link] : [Link] ->
[Link]

Parameters
Container IContainer IContainer
The IContainer where the control array will be hosted.
Remarks
When you instantiate a BaseOcxArray , you must also call the BaseSetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] BaseOcxArray.
CausesValidationChanged
I n this Article
Occurs when the value of the CausesValidation property changes.

public event EventHandler CausesValidationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the CausesValidation property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
SizeChanged
I n this Article
Occurs when the value of the ClientSize property changes.

public event EventHandler ClientSizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ClientSize property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] BaseOcxArray.
ContextMenuChanged
I n this Article
Occurs when the value of the ContextMenu property changes.

[[Link](false)]
public event EventHandler ContextMenuChanged;
member [Link] : EventHandler

Attributes BrowsableAttribute

Remarks
This event is raised if the ContextMenu property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] BaseOcxArray.
ContextMenuStripChanged
I n this Article
Occurs when the value of the ContextMenuStrip property changes.

public event EventHandler ContextMenuStripChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ContextMenuStrip property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Added
I n this Article
Occurs when a new control is added to the BaseOcxArray.

public event [Link] ControlAdded;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Removed
I n this Article
Occurs when a control is removed from the BaseOcxArray.

public event [Link] ControlRemoved;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Dock property changes.

public event EventHandler DockChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Dock property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is entered.
public event EventHandler Enter;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
UpControlEvents
I n this Article
Overrides HookUpControlEvents(Object).

protected override void HookUpControlEvents (object o);


override [Link] : obj -> unit

Parameters
o Object Object
An Object.

Remarks
This method cannot be called from your application's code. Use AddHandler to hook up events for any controls that
are added by using the Load method.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the input focus leaves the control.
public event EventHandler Leave;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), or by calling the Select or
SelectNextControl method, focus events occur in the following order:
Enter
GotFocus
Leave

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Location property changes.

public event EventHandler LocationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Location property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Margin property changes.

public event EventHandler MarginChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Margin property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] BaseOcxArray.
MouseCaptureChanged
I n this Article
Occurs when the control loses or gains mouse capture.

public event EventHandler MouseCaptureChanged;


member [Link] : EventHandler

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown

Click

MouseClick

MouseUp

Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate an MouseDoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a control. They are often raised by other actions, such as pressing the
ENTER key when the control has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is moved.
public event EventHandler Move;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control's Padding property changes.

public event EventHandler PaddingChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Padding property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control's Parent property changes.

public event EventHandler ParentChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Parent property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Region property changes.

public event EventHandler RegionChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Region property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is resized.
public event EventHandler Resize;
member [Link] : EventHandler

Remarks
To determine the Size of the resized control, you can cast the sender parameter of the EventArgs data to a Control and
get its Size property (or Height and Width properties individually).
To handle custom layouts, use the Layout event instead of the Resize event. The Layout event is raised in response to
a Resize event, but also in response to other changes that affect the layout of the control.

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the Size property value changes.
public event EventHandler SizeChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Size property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] BaseOcxArray.
SystemColorsChanged
I n this Article
Occurs when the system colors change.

public event EventHandler SystemColorsChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SystemColors is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is finished validating.
public event EventHandler Validated;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated

If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is validating.
public event [Link] Validating;
member [Link] : [Link]

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating

Validated
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating

Validated

If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Visible property value changes.

public event EventHandler VisibleChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Visible property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
BindingCollectionEnumerator BindingCollection
Enumerator Class
Supports a simple iteration over a binding collection in an application upgraded from Visual Basic 6.0.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
[[Link](false)]
public class BindingCollectionEnumerator : [Link]
type BindingCollectionEnumerator = class
interface IEnumerator

I nheritance H ierarchy
Object Object

Remarks
When an application is upgraded to Visual Basic, a BindingCollectionEnumerator is created to enable the ADO -
related code.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Properties
Current
Current

Gets the current element in the binding collection.

Methods
MoveNext()
MoveNext()

Advances the enumerator to the next element of the collection.

Reset()
Reset()

Sets the enumerator to its initial position, which is before the first element in the collection.

See Also
IEnumerator IEnumerator
[Link] BindingCollection
[Link]
I n this Article
Gets the current element in the binding collection.

public object Current { get; }


member [Link] : obj

Returns
Object Object
The current element in the collection.

Remarks
When an application is upgraded to Visual Basic, a BindingCollectionEnumerator is created to enable the ADO -
related code.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See IEnumeratorIEnumerator
Also
[Link] Binding
[Link]
I n this Article
Advances the enumerator to the next element of the collection.

public bool MoveNext ();


abstract member MoveNext : unit -> bool
override [Link] : unit -> bool

Returns
Boolean Boolean
true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of
the collection.

Remarks
When an application is upgraded to Visual Basic, a BindingCollectionEnumerator is created to enable the ADO -
related code.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See IEnumeratorIEnumerator
Also
[Link] BindingCollection
[Link]
I n this Article
Sets the enumerator to its initial position, which is before the first element in the collection.

public void Reset ();


abstract member Reset : unit -> unit
override [Link] : unit -> unit

Remarks
When an application is upgraded to Visual Basic, a BindingCollectionEnumerator is created to enable the ADO -
related code.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See IEnumeratorIEnumerator
Also
ButtonArray ButtonArray Class
Provides a control array of Button controls.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class ButtonArray : [Link],
[Link]
type ButtonArray = class
inherit BaseControlArray
interface IExtenderProvider

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component
BaseControlArray BaseControlArray

Remarks
The ButtonArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0 CommandButton
array. It does not provide the design-time features of a Visual Basic 6.0 control array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
ButtonArray()
ButtonArray()

Initializes a new instance of the ButtonArray class.

ButtonArray(IContainer)
ButtonArray(IContainer)

Initializes a new instance of the ButtonArray class, specifying its container.

Properties
Item[Int16]
Item[Int16]

Gets a specific element of a ButtonArray by index. Read-only.


Methods
CanExtend(Object)
CanExtend(Object)

Gets a value that determines whether a control is a member of a ButtonArray.

GetControlInstanceType()
GetControlInstanceType()

Overrides GetControlInstanceType().

GetIndex(Button)
GetIndex(Button)

Gets the index of a Button in a ButtonArray.

HookUpControlEvents(Object)
HookUpControlEvents(Object)

Overrides HookUpControlEvents(Object).

ResetIndex(Button)
ResetIndex(Button)

The ResetIndex method is not supported in the ButtonArray class.

SetIndex(Button, Int16)
SetIndex(Button, Int16)

Sets the index of the initial Button in a ButtonArray.

ShouldSerializeIndex(Button)
ShouldSerializeIndex(Button)

Returns a value that indicates whether a Button is a member of this ButtonArray.

Events
AutoSizeChanged
AutoSizeChanged

Occurs when the value of the AutoSize property changes.

BackColorChanged
BackColorChanged

Occurs when the value of the BackColor property changes.

BackgroundImageChanged
BackgroundImageChanged

Occurs when the value of the BackgroundImage property changes.

BackgroundImageLayoutChanged
BackgroundImageLayoutChanged

Occurs when the value of the BackgroundImageLayout property changes.

BindingContextChanged
BindingContextChanged

Occurs when the value of the BindingContext property changes.

CausesValidationChanged
CausesValidationChanged

Occurs when the value of the CausesValidation property changes.

ChangeUICues
ChangeUICues

Occurs when the focus or keyboard user interface (UI) cues change.

Click
Click

Occurs when a Button in a ButtonArray is clicked.

ClientSizeChanged
ClientSizeChanged

Occurs when the value of the ClientSize property changes.

ContextMenuChanged
ContextMenuChanged

Occurs when the value of the ContextMenu property changes.


ContextMenuStripChanged
ContextMenuStripChanged

Occurs when the value of the ContextMenuStrip property changes.

ControlAdded
ControlAdded

Occurs when a new control is added to the ButtonArray.

ControlRemoved
ControlRemoved

Occurs when a control is removed from the ButtonArray.

CursorChanged
CursorChanged

Occurs when the value of the Cursor property changes.

DockChanged
DockChanged

Occurs when the value of the Dock property changes.

DragDrop
DragDrop

Occurs when a drag-and-drop operation is completed.

DragEnter
DragEnter

Occurs when an object is dragged into the control's bounds.

DragLeave
DragLeave

Occurs when an object is dragged out of the control's bounds.

DragOver
DragOver

Occurs when an object is dragged over the control's bounds.


EnabledChanged
EnabledChanged

Occurs when the value of the Enabled property changes.

Enter
Enter

Occurs when the control is entered.

FontChanged
FontChanged

Occurs when the value of the Font property changes.

ForeColorChanged
ForeColorChanged

Occurs when the value of the ForeColor property changes.

GiveFeedback
GiveFeedback

Occurs during a drag operation.

HelpRequested
HelpRequested

Occurs when the user requests help for a control.

KeyDown
KeyDown

Occurs when a key is pressed and the control has focus.

KeyPress
KeyPress

Occurs when a key is pressed and the control has focus.

KeyUp
KeyUp

Occurs when a key is released and the control has focus.


Layout
Layout

Occurs when a control should reposition its child controls.

Leave
Leave

Occurs when the input focus leaves the control.

LocationChanged
LocationChanged

Occurs when the value of the Location property changes.

MarginChanged
MarginChanged

Occurs when the value of the Margin property changes.

MouseCaptureChanged
MouseCaptureChanged

Occurs when the control loses or gains mouse capture.

MouseClick
MouseClick

Occurs when the control is clicked by the mouse.

MouseDown
MouseDown

Occurs when the mouse pointer is over the control and a mouse button is pressed.

MouseEnter
MouseEnter

Occurs when the mouse pointer enters the control.

MouseHover
MouseHover

Occurs when the mouse pointer rests on the control.


MouseLeave
MouseLeave

Occurs when the mouse pointer leaves the control.

MouseMove
MouseMove

Occurs when the mouse pointer is moved over the control.

MouseUp
MouseUp

Occurs when the mouse pointer is over the control and a mouse button is released.

Move
Move

Occurs when the control is moved.

PaddingChanged
PaddingChanged

Occurs when the control's Padding property changes.

Paint
Paint

Occurs when the control is redrawn.

ParentChanged
ParentChanged

Occurs when the control's Parent property changes.

QueryAccessibilityHelp
QueryAccessibilityHelp

Occurs when an AccessibleObject is providing Help to accessibility applications.

QueryContinueDrag
QueryContinueDrag

Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.
RegionChanged
RegionChanged

Occurs when the value of the Region property changes.

Resize
Resize

Occurs when the control is resized.

RightToLeftChanged
RightToLeftChanged

Occurs when the RightToLeftChanged property value changes.

SizeChanged
SizeChanged

Occurs when the Size property value changes.

StyleChanged
StyleChanged

Occurs when the control style changes.

SystemColorsChanged
SystemColorsChanged

Occurs when the system colors change.

TabIndexChanged
TabIndexChanged

Occurs when the TabIndex property value changes.

TabStopChanged
TabStopChanged

Occurs when the TabStop property value changes.

TextChanged
TextChanged

Occurs when the Text property value changes.


Validated
Validated

Occurs when the control is finished validating.

Validating
Validating

Occurs when the control is validating.

VisibleChanged
VisibleChanged

Occurs when the Visible property value changes.


[Link] [Link]
Changed
I n this Article
Occurs when the value of the AutoSize property changes.

public event EventHandler AutoSizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the AutoSize property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the BackColor property changes.

public event EventHandler BackColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BackColor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ButtonArray.
BackgroundImageChanged
I n this Article
Occurs when the value of the BackgroundImage property changes.

public event EventHandler BackgroundImageChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BackgroundImage property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] Button
[Link]
I n this Article
Occurs when the value of the BackgroundImageLayout property changes.

public event EventHandler BackgroundImageLayoutChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BackgroundImageLayout property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ButtonArray.
BindingContextChanged
I n this Article
Occurs when the value of the BindingContext property changes.

public event EventHandler BindingContextChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BindingContext property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
ButtonArray ButtonArray
I n this Article

Overloads
ButtonArray()
Initializes a new instance of the ButtonArray class.

ButtonArray(IContainer) ButtonArray(IContainer)
Initializes a new instance of the ButtonArray class, specifying
its container.

ButtonArray()
Initializes a new instance of the ButtonArray class.
public ButtonArray ();

Remarks
When you instantiate a ButtonArray, you must also call the SetIndex method to create the initial element in the array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

ButtonArray(IContainer) ButtonArray(IContainer)
Initializes a new instance of the ButtonArray class, specifying its container.
public ButtonArray ([Link] Container);
new [Link] : [Link] ->
[Link]

Parameters
Container IContainer IContainer
The IContainer where the control array will be hosted.
Remarks
When you instantiate a ButtonArray, you must also call the SetIndex method to create the initial element in the array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets a value that determines whether a control is a member of a ButtonArray.
public bool CanExtend (object target);
abstract member CanExtend : obj -> bool
override [Link] : obj -> bool

Parameters
target Object Object
A Button control.
Returns
Boolean Boolean
true if target is a member of the control array; otherwise, false .

Remarks
The CanExtend method can be used to determine whether a specific Button control is the base element of the control
array from which the other elements were cloned.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ButtonArray.
CausesValidationChanged
I n this Article
Occurs when the value of the CausesValidation property changes.

public event EventHandler CausesValidationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the CausesValidation property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the focus or keyboard user interface (UI) cues change.
public event [Link] ChangeUICues;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a Button in a ButtonArray is clicked.
public event EventHandler Click;
member [Link] : EventHandler

Remarks
The Click event passes an EventArgs to its event handler. Therefore it only indicates that a click has occurred. If you
need more specific mouse information (button, number of clicks, wheel rotation, or location), use the MouseClick event.
However, the MouseClick event will not be raised if the click is caused by action other than that of the mouse, such as
pressing the ENTER key.
A double-click is determined by the mouse settings of the user's operating system. The user can set the time between
clicks of a mouse button that should be considered a double-click instead of two clicks. The Click event is raised every
time that a control is double-clicked. For example, if you have event handlers for the Click and DoubleClick events of
a control, the Click and DoubleClick events are raised when the control is double-clicked and both methods are
called. If a control is double-clicked and that control does not support the DoubleClick event, the Click event might be
raised two times.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the ClientSize property changes.

public event EventHandler ClientSizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ClientSize property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
MenuChanged
I n this Article
Occurs when the value of the ContextMenu property changes.

[[Link](false)]
public event EventHandler ContextMenuChanged;
member [Link] : EventHandler

Attributes BrowsableAttribute

Remarks
This event is raised if the ContextMenu property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ButtonArray.
ContextMenuStripChanged
I n this Article
Occurs when the value of the ContextMenuStrip property changes.

public event EventHandler ContextMenuStripChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ContextMenuStrip property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a new control is added to the ButtonArray.
public event [Link] ControlAdded;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Removed
I n this Article
Occurs when a control is removed from the ButtonArray.

public event [Link] ControlRemoved;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the value of the Cursor property changes.
public event EventHandler CursorChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Cursor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the value of the Dock property changes.
public event EventHandler DockChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Dock property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a drag-and-drop operation is completed.
public event [Link] DragDrop;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged into the control's bounds.
public event [Link] DragEnter;
member [Link] : [Link]

Remarks
The DragEnter event is raised when the user first drags the mouse cursor over the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged out of the control's bounds.
public event EventHandler DragLeave;
member [Link] : EventHandler

Remarks
The DragLeave event is raised when the user drags the cursor out of the control or the user cancels the current drag-
and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged over the control's bounds.
public event [Link] DragOver;
member [Link] : [Link]

Remarks
The DragOver event is raised when the mouse cursor moves within the bounds of the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Enabled property changes.

public event EventHandler EnabledChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Enabled property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is entered.
public event EventHandler Enter;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), or by calling the Select or
SelectNextControl method, focus events occur in the following order:
Enter

GotFocus
Leave
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter

GotFocus
LostFocus
Leave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the value of the Font property changes.
public event EventHandler FontChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Font property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the ForeColor property changes.

public event EventHandler ForeColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ForeColor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ControlInstanceType
I n this Article
Overrides GetControlInstanceType().

protected override Type GetControlInstanceType ();


override [Link] : unit -> Type

Returns
Type Type
The type of control in a control array.

Remarks
This method cannot be called from your application's code. Use the GetType method instead.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the index of a Button in a ButtonArray.
public short GetIndex ([Link] o);
member [Link] : [Link] -> int16

Parameters
o Button Button
A Button in the control array.
Returns
Int16 Int16
A Short that represents the index of the specified Button.

Remarks
This method can be used to retrieve the index for the AcceptButton or CancelButton.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs during a drag operation.
public event [Link] GiveFeedback;
member [Link] : [Link]

Remarks
The GiveFeedback event is raised when a drag-and-drop operation is started. By using the GiveFeedback event, the
source of a drag event can modify the appearance of the mouse pointer in order to give the user visual feedback during
a drag-and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the user requests help for a control.
public event [Link] HelpRequested;
member [Link] : [Link]

Remarks
The HelpRequested event is typically raised when the user presses the F1 key or an associated context-sensitive Help
button is clicked.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ControlEvents
I n this Article
Overrides HookUpControlEvents(Object).

protected override void HookUpControlEvents (object o);


override [Link] : obj -> unit

Parameters
o Object Object
An Object.

Remarks
This method cannot be called from your application's code. Use AddHandler to hook up events for any controls that
are added by using the Load method.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link][Int16] [Link][Int16]
I n this Article
Gets a specific element of a ButtonArray by index. Read-only.
public [Link] this[short Index] { get; }
member [Link](int16) : [Link]

Parameters
Index Int16 Int16
A Short that specifies the position of an element of the control array.
Returns
Button Button
A Button at the specified Index in the control array.

Remarks
The Item property is the default property for a control array. Therefore, the following lines of code are equivalent.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is pressed and the control has focus.
public event [Link] KeyDown;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown

KeyPress
KeyUp
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is pressed and the control has focus.
public event [Link] KeyPress;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress

KeyUp
The KeyPress event is not raised by noncharacter keys; however, the noncharacter keys do raise the KeyDown and
KeyUp events.
Use the KeyChar property to sample keystrokes at run time and to consume or modify a subset of common keystrokes.
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is released and the control has focus.
public event [Link] KeyUp;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress
KeyUp

To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a control should reposition its child controls.
public event [Link] Layout;
member [Link] : [Link]

Remarks
The Layout event occurs when child controls are added or removed, when the bounds of the control changes, and
when other changes occur that can affect the layout of the control. The layout event can be suppressed by using the
SuspendLayout and ResumeLayout methods. Suspending layout enables you to perform multiple actions on a control
without having to perform a layout for each change. For example, if you resize and move a control, each operation
would raise a Layout event.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the input focus leaves the control.
public event EventHandler Leave;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), or by calling the Select or
SelectNextControl method, focus events occur in the following order:
Enter
GotFocus
Leave

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Location property changes.

public event EventHandler LocationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Location property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Margin property changes.

public event EventHandler MarginChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Margin property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
CaptureChanged
I n this Article
Occurs when the control loses or gains mouse capture.

public event EventHandler MouseCaptureChanged;


member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is clicked by the mouse.
public event [Link] MouseClick;
member [Link] : [Link]

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown
Click MouseClick
MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate an MouseDoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a control. They are often raised by other actions, such as pressing the
ENTER key when the control has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is pressed.
public event [Link] MouseDown;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer enters the control.
public event EventHandler MouseEnter;
member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter

MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer rests on the control.
public event EventHandler MouseHover;
member [Link] : EventHandler

Remarks
A typical use of MouseHover is to display a tool tip when the mouse pauses on a control within a specified area around
the control (the "hover rectangle"). The pause required for this event to be raised is specified in milliseconds by the
MouseHoverTime property.
The MouseHover event is defined and detected in connection with the MouseHoverSize and MouseHoverTime
properties.
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer leaves the control.
public event EventHandler MouseLeave;
member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is moved over the control.
public event [Link] MouseMove;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove

MouseHover / MouseDown / MouseWheel


MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is released.
public event [Link] MouseUp;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp

MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is moved.
public event EventHandler Move;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control's Padding property changes.

public event EventHandler PaddingChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Padding property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is redrawn.
public event [Link] Paint;
member [Link] : [Link]

Remarks
The Paint event handler is typically used to perform custom drawing when a control is redrawn.

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control's Parent property changes.
public event EventHandler ParentChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Parent property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
AccessibilityHelp
I n this Article
Occurs when an AccessibleObject is providing Help to accessibility applications.

public event [Link] QueryAccessibilityHelp;


member [Link] : [Link]

Remarks
You should use the HelpProvider class to enable users to invoke Help on your accessible object by pressing the F1 key.
The HelpProvider gives you complete information in the QueryAccessibilityHelpEventArgs.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ContinueDrag
I n this Article
Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.
public event [Link] QueryContinueDrag;
member [Link] : [Link]

Remarks
The QueryContinueDrag event is raised when there is a change in the keyboard or mouse button state during a drag-
and-drop operation. The QueryContinueDrag event enables the drag source to determine whether the drag-and-drop
operation should be canceled.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Region property changes.

public event EventHandler RegionChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Region property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
The ResetIndex method is not supported in the ButtonArray class.

public void ResetIndex ([Link] o);


member [Link] : [Link] -> unit

Parameters
o Button Button
A Control.

Remarks
This method is not supported, and calling it does not raise an exception.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is resized.
public event EventHandler Resize;
member [Link] : EventHandler

Remarks
To determine the Size of the resized control, you can cast the sender parameter of the EventArgs data to a Control and
get it's Size property (or Height and Width properties individually).
To handle custom layouts, use the Layout event instead of the Resize event. The Layout event is raised in response to
a Resize event, but also in response to other changes that affect the layout of the control.

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
LeftChanged
I n this Article
Occurs when the RightToLeftChanged property value changes.

public event EventHandler RightToLeftChanged;


member [Link] : EventHandler

Remarks
This event is raised if the RightToLeft property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Sets the index of the initial Button in a ButtonArray.
public void SetIndex ([Link] o, short Index);
member [Link] : [Link] * int16 -> unit

Parameters
o Button Button
A Button in the control array.
Index Int16 Int16
A Short that represents the index of the specified Button.

Remarks
The SetIndex method should only be called when you are creating the initial element in the control array. To add
subsequent elements, call the Load method and specify the Index .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
SerializeIndex
I n this Article
Returns a value that indicates whether a Button is a member of this ButtonArray.

public bool ShouldSerializeIndex ([Link] o);


member [Link] : [Link] -> bool

Parameters
o Button Button
A Button in the control array.
Returns
Boolean Boolean
true if o is a member of this control array; otherwise, false .

Remarks
If the specified Button is a member of a different ButtonArray, ShouldSerializeIndex returns false .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the Size property value changes.
public event EventHandler SizeChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Size property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control style changes.
public event EventHandler StyleChanged;
member [Link] : EventHandler

Remarks
The StyleChanged event occurs when ControlStyles flags have been added or changed.

This event is raised if the control style is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ColorsChanged
I n this Article
Occurs when the system colors change.

public event EventHandler SystemColorsChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SystemColors is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the TabIndex property value changes.

public event EventHandler TabIndexChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabIndex property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the TabStop property value changes.

public event EventHandler TabStopChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabStop property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the Text property value changes.
public event EventHandler TextChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Text property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is finished validating.
public event EventHandler Validated;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated

If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is validating.
public event [Link] Validating;
member [Link] : [Link]

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated
If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the Visible property value changes.
public event EventHandler VisibleChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Visible property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
CheckBoxArray CheckBoxArray Class
Provides a control array of CheckBox controls.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class CheckBoxArray : [Link],
[Link]
type CheckBoxArray = class
inherit BaseControlArray
interface IExtenderProvider

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component
BaseControlArray BaseControlArray

Remarks
The CheckBoxArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0 CheckBox array. It
does not provide the design-time features of a Visual Basic 6.0 control array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
CheckBoxArray()
CheckBoxArray()

Initializes a new instance of the CheckBoxArray class.

CheckBoxArray(IContainer)
CheckBoxArray(IContainer)

Initializes a new instance of the CheckBoxArray class, specifying its container.

Properties
Item[Int16]
Item[Int16]

Gets a specific element of a CheckBoxArray by index. Read-only.


Methods
CanExtend(Object)
CanExtend(Object)

Gets a value that determines whether a control is a member of a CheckBoxArray.

GetControlInstanceType()
GetControlInstanceType()

Overrides GetControlInstanceType().

GetIndex(CheckBox)
GetIndex(CheckBox)

Gets the index of a CheckBox in a CheckBoxArray.

HookUpControlEvents(Object)
HookUpControlEvents(Object)

Overrides HookUpControlEvents(Object).

ResetIndex(CheckBox)
ResetIndex(CheckBox)

The ResetIndex method is not supported in the CheckBoxArray class.

SetIndex(CheckBox, Int16)
SetIndex(CheckBox, Int16)

Sets the index of the initial CheckBox in a CheckBoxArray.

ShouldSerializeIndex(CheckBox)
ShouldSerializeIndex(CheckBox)

Returns a value that indicates whether a CheckBox is a member of this CheckBoxArray.

Events
AppearanceChanged
AppearanceChanged

Occurs when the value of the Appearance property changes.

AutoSizeChanged
AutoSizeChanged

Occurs when the value of the AutoSize property changes.

BackColorChanged
BackColorChanged

Occurs when the value of the BackColor property changes.

BackgroundImageChanged
BackgroundImageChanged

Occurs when the value of the BackgroundImage property changes.

BackgroundImageLayoutChanged
BackgroundImageLayoutChanged

Occurs when the value of the BackgroundImageLayout property changes.

BindingContextChanged
BindingContextChanged

Occurs when the value of the BindingContext property changes.

CausesValidationChanged
CausesValidationChanged

Occurs when the value of the CausesValidation property changes.

ChangeUICues
ChangeUICues

Occurs when the focus or keyboard user interface (UI) cues change.

CheckedChanged
CheckedChanged

Occurs when the value of the Checked property changes.

CheckStateChanged
CheckStateChanged

Occurs when the value of the CheckState property changes.


Click
Click

Occurs when a CheckBox in a CheckBoxArray is clicked.

ClientSizeChanged
ClientSizeChanged

Occurs when the value of the ClientSize property changes.

ContextMenuChanged
ContextMenuChanged

Occurs when the value of the ContextMenu property changes.

ContextMenuStripChanged
ContextMenuStripChanged

Occurs when the value of the ContextMenuStrip property changes.

ControlAdded
ControlAdded

Occurs when a new control is added to the CheckBoxArray.

ControlRemoved
ControlRemoved

Occurs when a control is removed from the CheckBoxArray.

CursorChanged
CursorChanged

Occurs when the value of the Cursor property changes.

DockChanged
DockChanged

Occurs when the value of the Dock property changes.

DragDrop
DragDrop

Occurs when a drag-and-drop operation is completed.


DragEnter
DragEnter

Occurs when an object is dragged into the control's bounds.

DragLeave
DragLeave

Occurs when an object is dragged out of the control's bounds.

DragOver
DragOver

Occurs when an object is dragged over the control's bounds.

EnabledChanged
EnabledChanged

Occurs when the value of the Enabled property changes.

Enter
Enter

Occurs when the control is entered.

FontChanged
FontChanged

Occurs when the value of the Font property changes.

ForeColorChanged
ForeColorChanged

Occurs when the value of the ForeColor property changes.

GiveFeedback
GiveFeedback

Occurs during a drag operation.

HelpRequested
HelpRequested

Occurs when the user requests help for a control.


KeyDown
KeyDown

Occurs when a key is pressed and the control has focus.

KeyPress
KeyPress

Occurs when a key is pressed and the control has focus.

KeyUp
KeyUp

Occurs when a key is released and the control has focus.

Layout
Layout

Occurs when a control should reposition its child controls.

Leave
Leave

Occurs when the input focus leaves the control.

LocationChanged
LocationChanged

Occurs when the value of the Location property changes.

MarginChanged
MarginChanged

Occurs when the value of the Margin property changes.

MouseCaptureChanged
MouseCaptureChanged

Occurs when the control loses or gains mouse capture.

MouseClick
MouseClick

Occurs when the control is clicked by the mouse.


MouseDown
MouseDown

Occurs when the mouse pointer is over the control and a mouse button is pressed.

MouseEnter
MouseEnter

Occurs when the mouse pointer enters the control.

MouseHover
MouseHover

Occurs when the mouse pointer rests on the control.

MouseLeave
MouseLeave

Occurs when the mouse pointer leaves the control.

MouseMove
MouseMove

Occurs when the mouse pointer is moved over the control.

MouseUp
MouseUp

Occurs when the mouse pointer is over the control and a mouse button is released.

Move
Move

Occurs when the control is moved.

PaddingChanged
PaddingChanged

Occurs when the control's Padding property changes.

Paint
Paint

Occurs when the control is redrawn.


ParentChanged
ParentChanged

Occurs when the control's Parent property changes.

QueryAccessibilityHelp
QueryAccessibilityHelp

Occurs when an AccessibleObject is providing Help to accessibility applications.

QueryContinueDrag
QueryContinueDrag

Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.

RegionChanged
RegionChanged

Occurs when the value of the Region property changes.

Resize
Resize

Occurs when the control is resized.

RightToLeftChanged
RightToLeftChanged

Occurs when the RightToLeft property value changes.

SizeChanged
SizeChanged

Occurs when the Size property value changes.

StyleChanged
StyleChanged

Occurs when the control style changes.

SystemColorsChanged
SystemColorsChanged

Occurs when the system colors change.


TabIndexChanged
TabIndexChanged

Occurs when the TabIndex property value changes.

TabStopChanged
TabStopChanged

Occurs when the TabStop property value changes.

TextChanged
TextChanged

Occurs when the Text property value changes.

Validated
Validated

Occurs when the control is finished validating.

Validating
Validating

Occurs when the control is validating.

VisibleChanged
VisibleChanged

Occurs when the Visible property value changes.


[Link] CheckBoxArray.
AppearanceChanged
I n this Article
Occurs when the value of the Appearance property changes.

public event EventHandler AppearanceChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Appearance property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
SizeChanged
I n this Article
Occurs when the value of the AutoSize property changes.

public event EventHandler AutoSizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the AutoSize property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ColorChanged
I n this Article
Occurs when the value of the BackColor property changes.

public event EventHandler BackColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BackColor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckBox
[Link]
I n this Article
Occurs when the value of the BackgroundImage property changes.

public event EventHandler BackgroundImageChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BackgroundImage property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] Check
[Link]
I n this Article
Occurs when the value of the BackgroundImageLayout property changes.

public event EventHandler BackgroundImageLayoutChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BackgroundImageLayout property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckBoxArray.
BindingContextChanged
I n this Article
Occurs when the value of the BindingContext property changes.

public event EventHandler BindingContextChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BindingContext property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets a value that determines whether a control is a member of a CheckBoxArray.
public bool CanExtend (object target);
abstract member CanExtend : obj -> bool
override [Link] : obj -> bool

Parameters
target Object Object
A CheckBox control.
Returns
Boolean Boolean
true if target is a member of the control array; otherwise false .

Remarks
The CanExtend method can be used to determine whether a specific CheckBox control is the base element of the
control array from which the other elements were cloned.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckBox
[Link]
I n this Article
Occurs when the value of the CausesValidation property changes.

public event EventHandler CausesValidationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the CausesValidation property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Cues
I n this Article
Occurs when the focus or keyboard user interface (UI) cues change.

public event [Link] ChangeUICues;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
CheckBoxArray CheckBoxArray
I n this Article

Overloads
CheckBoxArray()
Initializes a new instance of the CheckBoxArray class.

CheckBoxArray(IContainer) CheckBoxArray(IContainer)
Initializes a new instance of the CheckBoxArray class,
specifying its container.

CheckBoxArray()
Initializes a new instance of the CheckBoxArray class.
public CheckBoxArray ();

Remarks
When you instantiate a CheckBoxArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

CheckBoxArray(IContainer) CheckBoxArray(IContainer)
Initializes a new instance of the CheckBoxArray class, specifying its container.

public CheckBoxArray ([Link] Container);


new [Link] : [Link] ->
[Link]

Parameters
Container IContainer IContainer
The IContainer where the control array will be hosted.
Remarks
When you instantiate a CheckBoxArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckBoxArray.
CheckedChanged
I n this Article
Occurs when the value of the Checked property changes.

public event EventHandler CheckedChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Checked property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckBoxArray.
CheckStateChanged
I n this Article
Occurs when the value of the CheckState property changes.

public event EventHandler CheckStateChanged;


member [Link] : EventHandler

Remarks
This event is raised if the CheckState property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a CheckBox in a CheckBoxArray is clicked.
public event EventHandler Click;
member [Link] : EventHandler

Remarks
The Click event passes an EventArgs to its event handler. Therefore it only indicates that a click has occurred. If you
need more specific mouse information (button, number of clicks, wheel rotation, or location), use the MouseClick event.
However, the MouseClick event will not be raised if the click is caused by action other than that of the mouse, such as
pressing the ENTER key.
A double-click is determined by the mouse settings of the user's operating system. The user can set the time between
clicks of a mouse button that should be considered a double-click instead of two clicks. The Click event is raised every
time that a control is double-clicked. For example, if you have event handlers for the Click and DoubleClick events of
a control, the Click and DoubleClick events are raised when the control is double-clicked and both methods are
called. If a control is double-clicked and that control does not support the DoubleClick event, the Click event might be
raised two times.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
SizeChanged
I n this Article
Occurs when the value of the ClientSize property changes.

public event EventHandler ClientSizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ClientSize property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckBoxArray.
ContextMenuChanged
I n this Article
Occurs when the value of the ContextMenu property changes.

[[Link](false)]
public event EventHandler ContextMenuChanged;
member [Link] : EventHandler

Attributes BrowsableAttribute

Remarks
This event is raised if the ContextMenu property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckBox
[Link]
I n this Article
Occurs when the value of the ContextMenuStrip property changes.

public event EventHandler ContextMenuStripChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ContextMenuStrip property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Added
I n this Article
Occurs when a new control is added to the CheckBoxArray.

public event [Link] ControlAdded;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Removed
I n this Article
Occurs when a control is removed from the CheckBoxArray.

public event [Link] ControlRemoved;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Cursor property changes.

public event EventHandler CursorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Cursor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Dock property changes.

public event EventHandler DockChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Dock property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a drag-and-drop operation is completed.
public event [Link] DragDrop;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged into the control's bounds.
public event [Link] DragEnter;
member [Link] : [Link]

Remarks
The DragEnter event is raised when the user first drags the mouse cursor over the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged out of the control's bounds.
public event EventHandler DragLeave;
member [Link] : EventHandler

Remarks
The DragLeave event is raised when the user drags the cursor out of the control or the user cancels the current drag-
and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged over the control's bounds.
public event [Link] DragOver;
member [Link] : [Link]

Remarks
The DragOver event is raised when the mouse cursor moves within the bounds of the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Enabled property changes.

public event EventHandler EnabledChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Enabled property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is entered.
public event EventHandler Enter;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), or by calling the Select or
SelectNextControl method, focus events occur in the following order:
Enter

GotFocus
Leave
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter

GotFocus
LostFocus
Leave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Font property changes.

public event EventHandler FontChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Font property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ColorChanged
I n this Article
Occurs when the value of the ForeColor property changes.

public event EventHandler ForeColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ForeColor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckBoxArray.
GetControlInstanceType
I n this Article
Overrides GetControlInstanceType().

protected override Type GetControlInstanceType ();


override [Link] : unit -> Type

Returns
Type Type
The CheckBoxArray class is the base class for all control arrays that are used in applications upgraded from Visual
Basic 6.0. Because this class is not typically used to create an instance of the class, this Protected method is usually
not called directly but is instead called by a derived class.

Remarks
This method cannot be called from your application's code. Use the GetType method instead.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the index of a CheckBox in a CheckBoxArray.
public short GetIndex ([Link] o);
member [Link] : [Link] -> int16

Parameters
o CheckBox CheckBox
A CheckBox in the control array.
Returns
Int16 Int16
A Short that represents the index of the specified CheckBox.

Remarks
This method can be used to retrieve the index for a CheckBox.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Feedback
I n this Article
Occurs during a drag operation.

public event [Link] GiveFeedback;


member [Link] : [Link]

Remarks
The GiveFeedback event is raised when a drag-and-drop operation is started. By using the GiveFeedback event, the
source of a drag event can modify the appearance of the mouse pointer in order to give the user visual feedback during
a drag-and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Requested
I n this Article
Occurs when the user requests help for a control.

public event [Link] HelpRequested;


member [Link] : [Link]

Remarks
The HelpRequested event is typically raised when the user presses the F1 key or an associated context-sensitive Help
button is clicked.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckBoxArray.
HookUpControlEvents
I n this Article
Overrides HookUpControlEvents(Object).

protected override void HookUpControlEvents (object o);


override [Link] : obj -> unit

Parameters
o Object Object
An Object.

Remarks
This method cannot be called from your application's code. Use AddHandler to hook up events for any controls that
are added by using the Load method.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link][Int16] [Link][Int16]
I n this Article
Gets a specific element of a CheckBoxArray by index. Read-only.
public [Link] this[short Index] { get; }
member [Link](int16) : [Link]

Parameters
Index Int16 Int16
A Short that specifies the position of an element of the control array.
Returns
CheckBox CheckBox
A CheckBox at the specified Index in the control array.

Remarks
The Item property is the default property for a control array. Therefore, the following lines of code are equivalent.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is pressed and the control has focus.
public event [Link] KeyDown;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown

KeyPress
KeyUp
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is pressed and the control has focus.
public event [Link] KeyPress;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress

KeyUp
The KeyPress event is not raised by noncharacter keys; however, the noncharacter keys do raise the KeyDown and
KeyUp events.
Use the KeyChar property to sample keystrokes at run time and to consume or modify a subset of common keystrokes.
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is released and the control has focus.
public event [Link] KeyUp;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress
KeyUp

To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a control should reposition its child controls.
public event [Link] Layout;
member [Link] : [Link]

Remarks
The Layout event occurs when child controls are added or removed, when the bounds of the control changes, and
when other changes occur that can affect the layout of the control. The layout event can be suppressed by using the
SuspendLayout and ResumeLayout methods. Suspending layout enables you to perform multiple actions on a control
without having to perform a layout for each change. For example, if you resize and move a control, each operation
would raise a Layout event.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the input focus leaves the control.
public event EventHandler Leave;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), or by calling the Select or
SelectNextControl method, focus events occur in the following order:
Enter
GotFocus
Leave

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckBoxArray.
LocationChanged
I n this Article
Occurs when the value of the Location property changes.

public event EventHandler LocationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Location property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Margin property changes.

public event EventHandler MarginChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Margin property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckBoxArray.
MouseCaptureChanged
I n this Article
Occurs when the control loses or gains mouse capture.

public event EventHandler MouseCaptureChanged;


member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is clicked by the mouse.
public event [Link] MouseClick;
member [Link] : [Link]

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown
Click
MouseClick

MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate an MouseDoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a control. They are often raised by other actions, such as pressing the
ENTER key when the control has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is pressed.
public event [Link] MouseDown;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer enters the control.
public event EventHandler MouseEnter;
member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter

MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer rests on the control.
public event EventHandler MouseHover;
member [Link] : EventHandler

Remarks
A typical use of MouseHover is to display a tool tip when the mouse pauses on a control within a specified area around
the control (the "hover rectangle"). The pause required for this event to be raised is specified in milliseconds by the
MouseHoverTime property.
The MouseHover event is defined and detected in connection with the MouseHoverSize and MouseHoverTime
properties.
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer leaves the control.
public event EventHandler MouseLeave;
member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is moved over the control.
public event [Link] MouseMove;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove

MouseHover / MouseDown / MouseWheel


MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is released.
public event [Link] MouseUp;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp

MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is moved.
public event EventHandler Move;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control's Padding property changes.

public event EventHandler PaddingChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Padding property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is redrawn.
public event [Link] Paint;
member [Link] : [Link]

Remarks
The Paint event handler is typically used to perform custom drawing when a control is redrawn.

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control's Parent property changes.

public event EventHandler ParentChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Parent property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckBoxArray.
QueryAccessibilityHelp
I n this Article
Occurs when an AccessibleObject is providing Help to accessibility applications.

public event [Link] QueryAccessibilityHelp;


member [Link] : [Link]

Remarks
You should use the HelpProvider class to enable users to invoke Help on your accessible object by pressing the F1 key.
The HelpProvider gives you complete information in the QueryAccessibilityHelpEventArgs.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckBoxArray.
QueryContinueDrag
I n this Article
Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.
public event [Link] QueryContinueDrag;
member [Link] : [Link]

Remarks
The QueryContinueDrag event is raised when there is a change in the keyboard or mouse button state during a drag-
and-drop operation. The QueryContinueDrag event enables the drag source to determine whether the drag-and-drop
operation should be canceled.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Region property changes.

public event EventHandler RegionChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Region property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
The ResetIndex method is not supported in the CheckBoxArray class.

public void ResetIndex ([Link] o);


member [Link] : [Link] -> unit

Parameters
o CheckBox CheckBox
A Control.

Remarks
This method is not supported, and calling it does not raise an exception.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is resized.
public event EventHandler Resize;
member [Link] : EventHandler

Remarks
To determine the Size of the resized control, you can cast the sender parameter of the EventArgs data to a Control and
get it's Size property (or Height and Width properties individually).
To handle custom layouts, use the Layout event instead of the Resize event. The Layout event is raised in response to
a Resize event, but also in response to other changes that affect the layout of the control.

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ToLeftChanged
I n this Article
Occurs when the RightToLeft property value changes.

public event EventHandler RightToLeftChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Region property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Sets the index of the initial CheckBox in a CheckBoxArray.
public void SetIndex ([Link] o, short Index);
member [Link] : [Link] * int16 -> unit

Parameters
o CheckBox CheckBox
A CheckBox in the control array.
Index Int16 Int16
A Short that represents the index of the specified CheckBox.

Remarks
The SetIndex method should only be called when you are creating the initial element in the control array. To add
subsequent elements, call the Load method and specify the Index .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckBoxArray.
ShouldSerializeIndex
I n this Article
Returns a value that indicates whether a CheckBox is a member of this CheckBoxArray.

public bool ShouldSerializeIndex ([Link] o);


member [Link] : [Link] -> bool

Parameters
o CheckBox CheckBox
A CheckBox in the control array.
Returns
Boolean Boolean
true if o is a member of this control array; otherwise, false .

Remarks
If the specified CheckBox is a member of a different CheckBoxArray, ShouldSerializeIndex returns false .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Size property value changes.

public event EventHandler SizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Size property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control style changes.

public event EventHandler StyleChanged;


member [Link] : EventHandler

Remarks
The StyleChanged event occurs when ControlStyles flags have been added or changed.
This event is raised if the control style is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckBoxArray.
SystemColorsChanged
I n this Article
Occurs when the system colors change.

public event EventHandler SystemColorsChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SystemColors is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
IndexChanged
I n this Article
Occurs when the TabIndex property value changes.

public event EventHandler TabIndexChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabIndex property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the TabStop property value changes.

public event EventHandler TabStopChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabStop property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the Text property value changes.
public event EventHandler TextChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Text property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is finished validating.
public event EventHandler Validated;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated

If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is validating.
public event [Link] Validating;
member [Link] : [Link]

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated
If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Visible property value changes.

public event EventHandler VisibleChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Visible property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
CheckedListBoxArray CheckedListBoxArray Class
Provides a control array of CheckedListBox controls.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class CheckedListBoxArray : [Link],
[Link]
type CheckedListBoxArray = class
inherit BaseControlArray
interface IExtenderProvider

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component
BaseControlArray BaseControlArray

Remarks
The CheckedListBoxArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0
CheckedListBox array. It does not provide the design-time features of a Visual Basic 6.0 control array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
CheckedListBoxArray()
CheckedListBoxArray()

Initializes a new instance of the CheckedListBoxArray class.

CheckedListBoxArray(IContainer)
CheckedListBoxArray(IContainer)

Initializes a new instance of the CheckedListBoxArray class, specifying its container.

Properties
Item[Int16]
Item[Int16]

Gets a specific element of a CheckedListBoxArray by index. Read-only.


Methods
CanExtend(Object)
CanExtend(Object)

Gets a value that determines whether a control is a member of a CheckedListBoxArray.

GetControlInstanceType()
GetControlInstanceType()

Overrides GetControlInstanceType().

GetIndex(CheckedListBox)
GetIndex(CheckedListBox)

Gets the index of a CheckedListBox in a CheckedListBoxArray.

HookUpControlEvents(Object)
HookUpControlEvents(Object)

Overrides HookUpControlEvents(Object).

ResetIndex(CheckedListBox)
ResetIndex(CheckedListBox)

The ResetIndex method is not supported in the CheckedListBoxArray class.

SetIndex(CheckedListBox, Int16)
SetIndex(CheckedListBox, Int16)

Sets the index of the initial CheckedListBox in a CheckedListBoxArray.

ShouldSerializeIndex(CheckedListBox)
ShouldSerializeIndex(CheckedListBox)

Returns a value that indicates whether a CheckedListBox is a member of this CheckedListBoxArray.

Events
BackColorChanged
BackColorChanged

Occurs when the value of the BackColor property changes.

BindingContextChanged
BindingContextChanged

Occurs when the value of the BindingContext property changes.

CausesValidationChanged
CausesValidationChanged

Occurs when the value of the CausesValidation property changes.

ChangeUICues
ChangeUICues

Occurs when the focus or keyboard user interface (UI) cues change.

Click
Click

Occurs when a CheckedListBox in a CheckedListBoxArray is clicked.

ClientSizeChanged
ClientSizeChanged

Occurs when the value of the ClientSize property changes.

ContextMenuChanged
ContextMenuChanged

Occurs when the value of the ContextMenu property changes.

ContextMenuStripChanged
ContextMenuStripChanged

Occurs when the value of the ContextMenuStrip property changes.

ControlAdded
ControlAdded

Occurs when a new control is added to the CheckedListBoxArray.

ControlRemoved
ControlRemoved

Occurs when a control is removed from the CheckedListBoxArray.


CursorChanged
CursorChanged

Occurs when the value of the Cursor property changes.

DockChanged
DockChanged

Occurs when the value of the Dock property changes.

DoubleClick
DoubleClick

Occurs when a CheckedListBox control in a CheckedListBoxArray is double-clicked.

DragDrop
DragDrop

Occurs when a drag-and-drop operation is completed.

DragEnter
DragEnter

Occurs when an object is dragged into the control's bounds.

DragLeave
DragLeave

Occurs when an object is dragged out of the control's bounds.

DragOver
DragOver

Occurs when an object is dragged over the control's bounds.

EnabledChanged
EnabledChanged

Occurs when the value of the Enabled property changes.

Enter
Enter

Occurs when the control is entered.


FontChanged
FontChanged

Occurs when the value of the Font property changes.

ForeColorChanged
ForeColorChanged

Occurs when the value of the ForeColor property changes.

Format
Format

Occurs when the control is bound to a data value.

FormatStringChanged
FormatStringChanged

Occurs when value of the FormatString property changes.

FormattingEnabledChanged
FormattingEnabledChanged

Occurs when value of the FormattingEnabled property changes.

GiveFeedback
GiveFeedback

Occurs during a drag operation.

HelpRequested
HelpRequested

Occurs when the user requests help for a control.

ImeModeChanged
ImeModeChanged

Occurs when value of the ImeMode property changes.

ItemCheck
ItemCheck

Occurs when the checked state of an item changes.


KeyDown
KeyDown

Occurs when a key is pressed and the control has focus.

KeyPress
KeyPress

Occurs when a key is pressed and the control has focus.

KeyUp
KeyUp

Occurs when a key is released and the control has focus.

Layout
Layout

Occurs when a control should reposition its child controls.

Leave
Leave

Occurs when the input focus leaves the control.

LocationChanged
LocationChanged

Occurs when the value of the Location property changes.

MarginChanged
MarginChanged

Occurs when the value of the Margin property changes.

MouseCaptureChanged
MouseCaptureChanged

Occurs when the control loses or gains mouse capture.

MouseClick
MouseClick

Occurs when the control is clicked by the mouse.


MouseDoubleClick
MouseDoubleClick

Occurs when a control is double-clicked by the mouse.

MouseDown
MouseDown

Occurs when the mouse pointer is over the control and a mouse button is pressed.

MouseEnter
MouseEnter

Occurs when the mouse pointer enters the control.

MouseHover
MouseHover

Occurs when the mouse pointer rests on the control.

MouseLeave
MouseLeave

Occurs when the mouse pointer leaves the control.

MouseMove
MouseMove

Occurs when the mouse pointer is moved over the control.

MouseUp
MouseUp

Occurs when the mouse pointer is over the control and a mouse button is released.

Move
Move

Occurs when the control is moved.

PaddingChanged
PaddingChanged

Occurs when the control's Padding property changes.


ParentChanged
ParentChanged

Occurs when the control's Parent property changes.

QueryAccessibilityHelp
QueryAccessibilityHelp

Occurs when an AccessibleObject is providing Help to accessibility applications.

QueryContinueDrag
QueryContinueDrag

Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.

RegionChanged
RegionChanged

Occurs when the value of the Region property changes.

Resize
Resize

Occurs when the control is resized.

RightToLeftChanged
RightToLeftChanged

Occurs when the RightToLeftChanged property value changes.

SelectedIndexChanged
SelectedIndexChanged

Occurs when the selected index in a control array changes.

SelectedValueChanged
SelectedValueChanged

Occurs when the SelectedValue property changes.

SizeChanged
SizeChanged

Occurs when the Size property value changes.


StyleChanged
StyleChanged

Occurs when the control style changes.

SystemColorsChanged
SystemColorsChanged

Occurs when the system colors change.

TabIndexChanged
TabIndexChanged

Occurs when the TabIndex property value changes.

TabStopChanged
TabStopChanged

Occurs when the TabStop property value changes.

Validated
Validated

Occurs when the control is finished validating.

Validating
Validating

Occurs when the control is validating.

VisibleChanged
VisibleChanged

Occurs when the Visible property value changes.


[Link] CheckedListBox
[Link]
I n this Article
Occurs when the value of the BackColor property changes.

public event EventHandler BackColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BackColor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] Checked
[Link]
I n this Article
Occurs when the value of the BindingContext property changes.

public event EventHandler BindingContextChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BindingContext property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedListBoxArray.
CanExtend
I n this Article
Gets a value that determines whether a control is a member of a CheckedListBoxArray.

public bool CanExtend (object target);


abstract member CanExtend : obj -> bool
override [Link] : obj -> bool

Parameters
target Object Object
A CheckedListBox control.
Returns
Boolean Boolean
true if target is a member of the control array; otherwise, false .

Remarks
The CanExtend method can be used to determine whether a specific CheckedListBox control is the base element of the
control array from which the other elements were cloned.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] Checked
[Link]
I n this Article
Occurs when the value of the CausesValidation property changes.

public event EventHandler CausesValidationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the CausesValidation property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedListBox
[Link]
I n this Article
Occurs when the focus or keyboard user interface (UI) cues change.

public event [Link] ChangeUICues;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
CheckedListBoxArray CheckedListBoxArray
I n this Article

Overloads
CheckedListBoxArray()
Initializes a new instance of the CheckedListBoxArray class.

CheckedListBoxArray(IContainer) CheckedListBoxArray(
IContainer) Initializes a new instance of the CheckedListBoxArray class,
specifying its container.

CheckedListBoxArray()
Initializes a new instance of the CheckedListBoxArray class.
public CheckedListBoxArray ();

Remarks
When you instantiate a CheckedListBoxArray, you must also call the SetIndex method to create the initial element in
the array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

CheckedListBoxArray(IContainer)
CheckedListBoxArray(IContainer)
Initializes a new instance of the CheckedListBoxArray class, specifying its container.

public CheckedListBoxArray ([Link] Container);


new [Link] : [Link] -
> [Link]

Parameters
Container IContainer IContainer
The IContainer where the control array will be hosted.
Remarks
When you instantiate a CheckedListBoxArray, you must also call the SetIndex method to create the initial element in
the array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a CheckedListBox in a CheckedListBoxArray is clicked.
public event EventHandler Click;
member [Link] : EventHandler

Remarks
The Click event passes an EventArgs to its event handler. Therefore it only indicates that a click has occurred. If you
need more specific mouse information (button, number of clicks, wheel rotation, or location), use the MouseClick event.
However, the MouseClick event will not be raised if the click is caused by action other than that of the mouse, such as
pressing the ENTER key.
A double-click is determined by the mouse settings of the user's operating system. The user can set the time between
clicks of a mouse button that should be considered a double-click instead of two clicks. The Click event is raised every
time that a control is double-clicked. For example, if you have event handlers for the Click and DoubleClick events of
a control, the Click and DoubleClick events are raised when the control is double-clicked and both methods are
called. If a control is double-clicked and that control does not support the DoubleClick event, the Click event might be
raised two times.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedListBox
[Link]
I n this Article
Occurs when the value of the ClientSize property changes.

public event EventHandler ClientSizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ClientSize property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedList
[Link]
I n this Article
Occurs when the value of the ContextMenu property changes.

[[Link](false)]
public event EventHandler ContextMenuChanged;
member [Link] : EventHandler

Attributes BrowsableAttribute

Remarks
This event is raised if the ContextMenu property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link]
[Link]
I n this Article
Occurs when the value of the ContextMenuStrip property changes.

public event EventHandler ContextMenuStripChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ContextMenuStrip property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedListBox
[Link]
I n this Article
Occurs when a new control is added to the CheckedListBoxArray.

public event [Link] ControlAdded;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedListBox
[Link]
I n this Article
Occurs when a control is removed from the CheckedListBoxArray.

public event [Link] ControlRemoved;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedListBox
[Link]
I n this Article
Occurs when the value of the Cursor property changes.

public event EventHandler CursorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Cursor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedListBox
[Link]
I n this Article
Occurs when the value of the Dock property changes.

public event EventHandler DockChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Dock property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedListBoxArray.
DoubleClick
I n this Article
Occurs when a CheckedListBox control in a CheckedListBoxArray is double-clicked.

public event EventHandler DoubleClick;


member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedListBoxArray.
DragDrop
I n this Article
Occurs when a drag-and-drop operation is completed.

public event [Link] DragDrop;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedListBoxArray.
DragEnter
I n this Article
Occurs when an object is dragged into the control's bounds.

public event [Link] DragEnter;


member [Link] : [Link]

Remarks
The DragEnter event is raised when the user first drags the mouse cursor over the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedListBoxArray.
DragLeave
I n this Article
Occurs when an object is dragged out of the control's bounds.

public event EventHandler DragLeave;


member [Link] : EventHandler

Remarks
The DragLeave event is raised when the user drags the cursor out of the control or the user cancels the current drag-
and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedListBoxArray.
DragOver
I n this Article
Occurs when an object is dragged over the control's bounds.

public event [Link] DragOver;


member [Link] : [Link]

Remarks
The DragOver event is raised when the mouse cursor moves within the bounds of the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedListBox
[Link]
I n this Article
Occurs when the value of the Enabled property changes.

public event EventHandler EnabledChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Enabled property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is entered.
public event EventHandler Enter;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), or by calling the Select or
SelectNextControl method, focus events occur in the following order:
Enter

GotFocus
Leave
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter

GotFocus
LostFocus
Leave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedListBoxArray.
FontChanged
I n this Article
Occurs when the value of the Font property changes.

public event EventHandler FontChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Font property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedListBox
[Link]
I n this Article
Occurs when the value of the ForeColor property changes.

public event EventHandler ForeColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ForeColor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedListBoxArray.
Format
I n this Article
Occurs when the control is bound to a data value.

public event [Link] Format;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedList
[Link]
I n this Article
Occurs when value of the FormatString property changes.

public event EventHandler FormatStringChanged;


member [Link] : EventHandler

Remarks
This event is raised if the FormatString property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link]
[Link]
I n this Article
Occurs when value of the FormattingEnabled property changes.

public event EventHandler FormattingEnabledChanged;


member [Link] : EventHandler

Remarks
This event is raised if the FormattingEnabled property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] Checked
[Link]
I n this Article
Overrides GetControlInstanceType().

protected override Type GetControlInstanceType ();


override [Link] : unit -> Type

Returns
Type Type
The type of a control in a control array.

Remarks
This method cannot be called from your application's code. Use the GetType method instead.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Index
I n this Article
Gets the index of a CheckedListBox in a CheckedListBoxArray.

public short GetIndex ([Link] o);


member [Link] : [Link] -> int16

Parameters
o CheckedListBox CheckedListBox
A CheckedListBox in the control array.
Returns
Int16 Int16
A Short that represents the index of the specified CheckedListBox.

Remarks
This method can be used to retrieve the index for a CheckedListBox.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedListBoxArray.
GiveFeedback
I n this Article
Occurs during a drag operation.

public event [Link] GiveFeedback;


member [Link] : [Link]

Remarks
The GiveFeedback event is raised when a drag-and-drop operation is started. By using the GiveFeedback event, the
source of a drag event can modify the appearance of the mouse pointer in order to give the user visual feedback during
a drag-and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedListBox
[Link]
I n this Article
Occurs when the user requests help for a control.

public event [Link] HelpRequested;


member [Link] : [Link]

Remarks
The HelpRequested event is typically raised when the user presses the F1 key or an associated context-sensitive Help
button is clicked.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedList
[Link]
I n this Article
Overrides HookUpControlEvents(Object).

protected override void HookUpControlEvents (object o);


override [Link] : obj -> unit

Parameters
o Object Object
An Object.

Remarks
This method cannot be called from your application's code. Use AddHandler to hook up events for any controls that
are added by using the Load method.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedListBox
[Link]
I n this Article
Occurs when value of the ImeMode property changes.

public event EventHandler ImeModeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ImeMode property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link][Int16] CheckedListBoxArray.
Item[Int16]
I n this Article
Gets a specific element of a CheckedListBoxArray by index. Read-only.

public [Link] this[short Index] { get; }


member [Link](int16) : [Link]

Parameters
Index Int16 Int16
A Short that specifies the position of an element of the control array.
Returns
CheckedListBox CheckedListBox
A CheckedListBox at the specified Index in the control array.

Remarks
The Item property is the default property for a control array. Therefore, the following lines of code are equivalent.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedListBoxArray.
ItemCheck
I n this Article
Occurs when the checked state of an item changes.

public event [Link] ItemCheck;


member [Link] : [Link]

Remarks
The check state is not updated until after the ItemCheck event occurs.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Down
I n this Article
Occurs when a key is pressed and the control has focus.

public event [Link] KeyDown;


member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown

KeyPress
KeyUp
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Press
I n this Article
Occurs when a key is pressed and the control has focus.

public event [Link] KeyPress;


member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress

KeyUp
The KeyPress event is not raised by noncharacter keys; however, the noncharacter keys do raise the KeyDown and
KeyUp events.
Use the KeyChar property to sample keystrokes at run time and to consume or modify a subset of common keystrokes.
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is released and the control has focus.
public event [Link] KeyUp;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress
KeyUp

To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a control should reposition its child controls.
public event [Link] Layout;
member [Link] : [Link]

Remarks
The Layout event occurs when child controls are added or removed, when the bounds of the control changes, and
when other changes occur that can affect the layout of the control. The layout event can be suppressed by using the
SuspendLayout and ResumeLayout methods. Suspending layout enables you to perform multiple actions on a control
without having to perform a layout for each change. For example, if you resize and move a control, each operation
would raise a Layout event.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the input focus leaves the control.
public event EventHandler Leave;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), or by calling the Select or
SelectNextControl method, focus events occur in the following order:
Enter
GotFocus
Leave

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedListBox
[Link]
I n this Article
Occurs when the value of the Location property changes.

public event EventHandler LocationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Location property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedListBox
[Link]
I n this Article
Occurs when the value of the Margin property changes.

public event EventHandler MarginChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Margin property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] Checked
[Link]
I n this Article
Occurs when the control loses or gains mouse capture.

public event EventHandler MouseCaptureChanged;


member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedListBoxArray.
MouseClick
I n this Article
Occurs when the control is clicked by the mouse.

public event [Link] MouseClick;


member [Link] : [Link]

Remarks
Clicking a mouse button when the pointer is over a control typically raises the following series of events from the
control:
MouseDown
Click
MouseClick

MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate an MouseDoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a control. They are often raised by other actions, such as pressing the
ENTER key when the control has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedListBox
[Link]
I n this Article
Occurs when a control is double-clicked by the mouse.

public event [Link] MouseDoubleClick;


member [Link] : [Link]

Remarks
The MouseDoubleClick event occurs when the user depresses a mouse button two times in quick succession when the
pointer is over the control. The time interval that distinguishes two single clicks from a double-click is determined by
the mouse settings of the user's operating system.
The following series of events is raised by the control when such a user action occurs:
MouseDown
Click
MouseClick
MouseUp
MouseDown
DoubleClick
MouseDoubleClick

MouseUp
Note

DoubleClick events are logically higher-level events of a control. They may be raised by other user actions, such as
shortcut key combinations.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedListBoxArray.
MouseDown
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is pressed.

public event [Link] MouseDown;


member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover
MouseDown

MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedListBoxArray.
MouseEnter
I n this Article
Occurs when the mouse pointer enters the control.

public event EventHandler MouseEnter;


member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter

MouseMove
MouseHover
MouseDown
MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedListBoxArray.
MouseHover
I n this Article
Occurs when the mouse pointer rests on the control.

public event EventHandler MouseHover;


member [Link] : EventHandler

Remarks
A typical use of MouseHover is to display a tool tip when the mouse pauses on a control within a specified area around
the control (the "hover rectangle"). The pause required for this event to be raised is specified in milliseconds by the
MouseHoverTime property.
The MouseHover event is defined and detected in connection with the MouseHoverSize and MouseHoverTime
properties.
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover

MouseDown
MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedListBoxArray.
MouseLeave
I n this Article
Occurs when the mouse pointer leaves the control.

public event EventHandler MouseLeave;


member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedListBoxArray.
MouseMove
I n this Article
Occurs when the mouse pointer is moved over the control.

public event [Link] MouseMove;


member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove

MouseHover / MouseDown / MouseWheel


MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedListBoxArray.
MouseUp
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is released.

public event [Link] MouseUp;


member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp

MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is moved.
public event EventHandler Move;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedListBox
[Link]
I n this Article
Occurs when the control's Padding property changes.

public event EventHandler PaddingChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Padding property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedListBox
[Link]
I n this Article
Occurs when the control's Parent property changes.

public event EventHandler ParentChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Parent property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedList
[Link]
I n this Article
Occurs when an AccessibleObject is providing Help to accessibility applications.

public event [Link] QueryAccessibilityHelp;


member [Link] : [Link]

Remarks
You should use the HelpProvider class to enable users to invoke Help on your accessible object by pressing the F1 key.
The HelpProvider gives you complete information in the QueryAccessibilityHelpEventArgs.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedList
[Link]
I n this Article
Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.
public event [Link] QueryContinueDrag;
member [Link] : [Link]

Remarks
The QueryContinueDrag event is raised when there is a change in the keyboard or mouse button state during a drag-
and-drop operation. The QueryContinueDrag event enables the drag source to determine whether the drag-and-drop
operation should be canceled.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedListBox
[Link]
I n this Article
Occurs when the value of the Region property changes.

public event EventHandler RegionChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Region property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedListBoxArray.
ResetIndex
I n this Article
The ResetIndex method is not supported in the CheckedListBoxArray class.

public void ResetIndex ([Link] o);


member [Link] : [Link] -> unit

Parameters
o CheckedListBox CheckedListBox
A Control.

Remarks
This method is not supported, and calling it does not raise an exception.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is resized.
public event EventHandler Resize;
member [Link] : EventHandler

Remarks
To determine the Size of the resized control, you can cast the sender parameter of the EventArgs data to a Control and
get it's Size property (or Height and Width properties individually).
To handle custom layouts, use the Layout event instead of the Resize event. The Layout event is raised in response to
a Resize event, but also in response to other changes that affect the layout of the control.

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedList
[Link]
I n this Article
Occurs when the RightToLeftChanged property value changes.

public event EventHandler RightToLeftChanged;


member [Link] : EventHandler

Remarks
This event is raised if the RightToLeft property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedList
[Link]
I n this Article
Occurs when the selected index in a control array changes.

public event EventHandler SelectedIndexChanged;


member [Link] : EventHandler

Remarks
This event is raised if the selected control in a control array is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedList
[Link]
I n this Article
Occurs when the SelectedValue property changes.

public event EventHandler SelectedValueChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SelectedValue is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Index
I n this Article
Sets the index of the initial CheckedListBox in a CheckedListBoxArray.

public void SetIndex ([Link] o, short Index);


member [Link] : [Link] * int16 -> unit

Parameters
o CheckedListBox CheckedListBox
A CheckedListBox in the control array.
Index Int16 Int16
A Short that represents the index of the specified CheckedListBox.

Remarks
The SetIndex method should only be called when you are creating the initial element in the control array. To add
subsequent elements, call the Load method and specify the Index .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedList
[Link]
I n this Article
Returns a value that indicates whether a CheckedListBox is a member of this CheckedListBoxArray.

public bool ShouldSerializeIndex ([Link] o);


member [Link] : [Link] -> bool

Parameters
o CheckedListBox CheckedListBox
A CheckedListBox in the control array.
Returns
Boolean Boolean
true if o is a member of this control array; otherwise, false .

Remarks
If the specified CheckedListBox is a member of a different CheckedListBoxArray, ShouldSerializeIndex returns
false .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedListBoxArray.
SizeChanged
I n this Article
Occurs when the Size property value changes.

public event EventHandler SizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Size property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedListBoxArray.
StyleChanged
I n this Article
Occurs when the control style changes.

public event EventHandler StyleChanged;


member [Link] : EventHandler

Remarks
The StyleChanged event occurs when ControlStyles flags have been added or changed.
This event is raised if the control style is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedList
[Link]
I n this Article
Occurs when the system colors change.

public event EventHandler SystemColorsChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SystemColors is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedListBox
[Link]
I n this Article
Occurs when the TabIndex property value changes.

public event EventHandler TabIndexChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabIndex property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedListBox
[Link]
I n this Article
Occurs when the TabStop property value changes.

public event EventHandler TabStopChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabStop property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedListBoxArray.
Validated
I n this Article
Occurs when the control is finished validating.

public event EventHandler Validated;


member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated

If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedListBoxArray.
Validating
I n this Article
Occurs when the control is validating.

public event [Link] Validating;


member [Link] : [Link]

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated
If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] CheckedListBox
[Link]
I n this Article
Occurs when the Visible property value changes.

public event EventHandler VisibleChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Visible property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
ColorDialogArray ColorDialogArray Class
Provides a control array of ColorDialog controls.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class ColorDialogArray : [Link],
[Link]
type ColorDialogArray = class
inherit BaseControlArray
interface IExtenderProvider

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component
BaseControlArray BaseControlArray

Remarks
The ColorDialogArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0 ColorDialog
array. It does not provide the design-time features of a Visual Basic 6.0 control array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
ColorDialogArray()
ColorDialogArray()

Initializes a new instance of the ColorDialogArray class.

ColorDialogArray(IContainer)
ColorDialogArray(IContainer)

Initializes a new instance of the ColorDialogArray class, specifying its container.

Properties
Item[Int16]
Item[Int16]

Gets a specific element of a ColorDialogArray by index. Read-only.


Methods
CanExtend(Object)
CanExtend(Object)

Gets a value that determines whether a control is a member of a ColorDialogArray.

GetControlInstanceType()
GetControlInstanceType()

Overrides GetControlInstanceType().

GetIndex(ColorDialog)
GetIndex(ColorDialog)

Gets the index of a ColorDialog in a ColorDialogArray.

HookUpControlEvents(Object)
HookUpControlEvents(Object)

Overrides HookUpControlEvents(Object).

ResetIndex(ColorDialog)
ResetIndex(ColorDialog)

The ResetIndex method is not supported in the ColorDialogArray class.

SetIndex(ColorDialog, Int16)
SetIndex(ColorDialog, Int16)

Sets the index of the initial ColorDialog in a ColorDialogArray.

ShouldSerializeIndex(ColorDialog)
ShouldSerializeIndex(ColorDialog)

Returns a value that indicates whether a ColorDialog is a member of this ColorDialogArray.

Events
HelpRequest
HelpRequest

Occurs when the user requests help for a control.


[Link] [Link]
Extend
I n this Article
Gets a value that determines whether a control is a member of a ColorDialogArray.

public bool CanExtend (object target);


abstract member CanExtend : obj -> bool
override [Link] : obj -> bool

Parameters
target Object Object
A ColorDialog control.
Returns
Boolean Boolean
true if target is a member of the control array; otherwise, false .

Remarks
The CanExtend method can be used to determine whether a specific ColorDialog control is the base element of the
control array from which the other elements were cloned.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
ColorDialogArray ColorDialogArray
I n this Article

Overloads
ColorDialogArray()
Initializes a new instance of the ColorDialogArray class.

ColorDialogArray(IContainer) ColorDialogArray(IContainer)
Initializes a new instance of the ColorDialogArray class,
specifying its container.

ColorDialogArray()
Initializes a new instance of the ColorDialogArray class.
public ColorDialogArray ();

Remarks
When you instantiate a ColorDialogArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

ColorDialogArray(IContainer) ColorDialogArray(IContainer)
Initializes a new instance of the ColorDialogArray class, specifying its container.

public ColorDialogArray ([Link] Container);


new [Link] : [Link] ->
[Link]

Parameters
Container IContainer IContainer
The IContainer where the control array will be hosted.
Remarks
When you instantiate a ColorDialogArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ColorDialog
[Link]
I n this Article
Overrides GetControlInstanceType().

protected override Type GetControlInstanceType ();


override [Link] : unit -> Type

Returns
Type Type
The type of a control in a control array.

Remarks
This method cannot be called from your application's code. Use the GetType method instead.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the index of a ColorDialog in a ColorDialogArray.
public short GetIndex ([Link] o);
member [Link] : [Link] -> int16

Parameters
o ColorDialog ColorDialog
A ColorDialog in the control array.
Returns
Int16 Int16
A Short that represents the index of the specified ColorDialog.

Remarks
This method can be used to retrieve the index for a ColorDialog.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Request
I n this Article
Occurs when the user requests help for a control.

public event EventHandler HelpRequest;


member [Link] : EventHandler

Remarks
The HelpRequest event is typically raised when the user presses the F1 key or an associated context-sensitive Help
button is clicked.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ColorDialog
[Link]
I n this Article
Overrides HookUpControlEvents(Object).

protected override void HookUpControlEvents (object o);


override [Link] : obj -> unit

Parameters
o Object Object
An Object.

Remarks
This method cannot be called from your application's code. Use AddHandler to hook up events for any controls that
are added by using the Load method.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link][Int16] [Link][
Int16]
I n this Article
Gets a specific element of a ColorDialogArray by index. Read-only.

public [Link] this[short Index] { get; }


member [Link](int16) : [Link]

Parameters
Index Int16 Int16
A Short that specifies the position of an element of the control array.
Returns
ColorDialog ColorDialog
A ColorDialog at the specified Index in the control array.

Remarks
The Item property is the default property for a control array. Therefore, the following lines of code are equivalent.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Index
I n this Article
The ResetIndex method is not supported in the ColorDialogArray class.

public void ResetIndex ([Link] o);


member [Link] : [Link] -> unit

Parameters
o ColorDialog ColorDialog
A Control.

Remarks
This method is not supported, and calling it does not raise an exception.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Sets the index of the initial ColorDialog in a ColorDialogArray.
public void SetIndex ([Link] o, short Index);
member [Link] : [Link] * int16 -> unit

Parameters
o ColorDialog ColorDialog
A ColorDialog in the control array.
Index Int16 Int16
A Short that represents the index of the specified ColorDialog.

Remarks
The SetIndex method should only be called when you are creating the initial element in the control array. To add
subsequent elements, call the Load method and specify the Index .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ColorDialog
[Link]
I n this Article
Returns a value that indicates whether a ColorDialog is a member of this ColorDialogArray.

public bool ShouldSerializeIndex ([Link] o);


member [Link] : [Link] -> bool

Parameters
o ColorDialog ColorDialog
A ColorDialog in the control array.
Returns
Boolean Boolean
true if o is a member of this control array; otherwise, false .

Remarks
If the specified ColorDialog is a member of a different ColorDialogArray, ShouldSerializeIndex returns false .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
ComboBoxArray ComboBoxArray Class
Provides a control array of ComboBox controls

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class ComboBoxArray : [Link],
[Link]
type ComboBoxArray = class
inherit BaseControlArray
interface IExtenderProvider

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component
BaseControlArray BaseControlArray

Remarks
The ComboBoxArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0 ComboBox array. It
does not provide the design-time features of a Visual Basic 6.0 control array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
ComboBoxArray()
ComboBoxArray()

Initializes a new instance of the ComboBoxArray class.

ComboBoxArray(IContainer)
ComboBoxArray(IContainer)

Initializes a new instance of the ComboBoxArray class, specifying its container.

Properties
Item[Int16]
Item[Int16]

Gets a specific element of a ComboBoxArray by index. Read-only.


Methods
CanExtend(Object)
CanExtend(Object)

Gets a value that determines whether a control is a member of a ComboBoxArray.

GetControlInstanceType()
GetControlInstanceType()

Overrides GetControlInstanceType().

GetIndex(ComboBox)
GetIndex(ComboBox)

Gets the index of a ComboBox in a ComboBoxArray.

HookUpControlEvents(Object)
HookUpControlEvents(Object)

Overrides HookUpControlEvents(Object).

ResetIndex(ComboBox)
ResetIndex(ComboBox)

Not supported in the ComboBoxArray class.

SetIndex(ComboBox, Int16)
SetIndex(ComboBox, Int16)

Sets the index of the initial ComboBox in a ComboBoxArray.

ShouldSerializeIndex(ComboBox)
ShouldSerializeIndex(ComboBox)

Returns a value that indicates whether a ComboBox is a member of this ComboBoxArray.

Events
BackColorChanged
BackColorChanged

Occurs when the value of the BackColor property changes.

BindingContextChanged
BindingContextChanged

Occurs when the value of the BindingContext property changes.

CausesValidationChanged
CausesValidationChanged

Occurs when the value of the CausesValidation property changes.

ChangeUICues
ChangeUICues

Occurs when the focus or keyboard user interface (UI) cues change.

Click
Click

Occurs when a ComboBox in a ComboBoxArray is clicked.

ClientSizeChanged
ClientSizeChanged

Occurs when the value of the ClientSize property changes.

ContextMenuChanged
ContextMenuChanged

Occurs when the value of the ContextMenu property changes.

ContextMenuStripChanged
ContextMenuStripChanged

Occurs when the value of the ContextMenuStrip property changes.

ControlAdded
ControlAdded

Occurs when a new control is added to the ComboBoxArray.

ControlRemoved
ControlRemoved

Occurs when a control is removed from the ComboBoxArray.


CursorChanged
CursorChanged

Occurs when the value of the Cursor property changes.

DataSourceChanged
DataSourceChanged

Occurs when the value of the DataSource property changes.

DisplayMemberChanged
DisplayMemberChanged

Occurs when the value of the DisplayMember property changes.

DockChanged
DockChanged

Occurs when the value of the Dock property changes.

DoubleClick
DoubleClick

Occurs when a ComboBox control in a ComboBoxArray is double-clicked.

DragDrop
DragDrop

Occurs when a drag-and-drop operation is completed.

DragEnter
DragEnter

Occurs when an object is dragged into the control's bounds.

DragLeave
DragLeave

Occurs when an object is dragged out of the control's bounds.

DragOver
DragOver

Occurs when an object is dragged over the control's bounds.


DrawItem
DrawItem

Occurs when a visual aspect of an owner-drawn ComboBox changes.

DropDown
DropDown

Occurs when the drop-down part of a ComboBox is shown.

DropDownClosed
DropDownClosed

Occurs when the drop-down part of the ComboBox is no longer visible.

DropDownStyleChanged
DropDownStyleChanged

Occurs when the value of the DropDownStyle property changes.

EnabledChanged
EnabledChanged

Occurs when the value of the Enabled property changes.

Enter
Enter

Occurs when the control is entered.

FontChanged
FontChanged

Occurs when the value of the Font property changes.

ForeColorChanged
ForeColorChanged

Occurs when the value of the ForeColor property changes.

Format
Format

Occurs when the control is bound to a data value.


FormatStringChanged
FormatStringChanged

Occurs when value of the FormatString property changes

FormattingEnabledChanged
FormattingEnabledChanged

Occurs when the value of the FormattingEnabled property changes.

GiveFeedback
GiveFeedback

Occurs during a drag operation.

HelpRequested
HelpRequested

Occurs when the user requests help for a control.

ImeModeChanged
ImeModeChanged

Occurs when the value of the ImeMode property changes.

KeyDown
KeyDown

Occurs when a key is pressed and the control has focus.

KeyPress
KeyPress

Occurs when a key is pressed and the control has focus.

KeyUp
KeyUp

Occurs when a key is released and the control has focus.

Layout
Layout

Occurs when a control should reposition its child controls.


Leave
Leave

Occurs when the input focus leaves the control.

LocationChanged
LocationChanged

Occurs when the value of the Location property changes.

MarginChanged
MarginChanged

Occurs when the value of the Margin property changes.

MeasureItem
MeasureItem

Occurs every time that an owner-drawn ComboBox item has to be drawn and when the sizes of the list items are
determined.

MouseCaptureChanged
MouseCaptureChanged

Occurs when the control loses or gains mouse capture.

MouseClick
MouseClick

Occurs when the control is clicked by the mouse.

MouseDoubleClick
MouseDoubleClick

Occurs when the control is double-clicked by the mouse.

MouseDown
MouseDown

Occurs when the mouse pointer is over the control and a mouse button is pressed.

MouseEnter
MouseEnter

Occurs when the mouse pointer enters the control.


MouseHover
MouseHover

Occurs when the mouse pointer rests on the control.

MouseLeave
MouseLeave

Occurs when the mouse pointer leaves the control.

MouseMove
MouseMove

Occurs when the mouse pointer is moved over the control.

MouseUp
MouseUp

Occurs when the mouse pointer is over the control and a mouse button is released.

Move
Move

Occurs when the control is moved.

PaddingChanged
PaddingChanged

Occurs when the control's Padding property changes.

ParentChanged
ParentChanged

Occurs when the control's Parent property changes.

QueryAccessibilityHelp
QueryAccessibilityHelp

Occurs when an AccessibleObject is providing Help to accessibility applications.

QueryContinueDrag
QueryContinueDrag

Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.
RegionChanged
RegionChanged

Occurs when the value of the Region property changes.

Resize
Resize

Occurs when the control is resized.

RightToLeftChanged
RightToLeftChanged

Occurs when the RightToLeftChanged property value changes.

SelectedIndexChanged
SelectedIndexChanged

Occurs when the SelectedIndex property has changed.

SelectedValueChanged
SelectedValueChanged

Occurs when the SelectedValue property has changed.

SelectionChangeCommitted
SelectionChangeCommitted

Occurs when the selected item has changed and that change is displayed in the ComboBox.

SizeChanged
SizeChanged

Occurs when the Size property value changes.

StyleChanged
StyleChanged

Occurs when the control style changes.

SystemColorsChanged
SystemColorsChanged

Occurs when the system colors change.


TabIndexChanged
TabIndexChanged

Occurs when the TabIndex property value changes.

TabStopChanged
TabStopChanged

Occurs when the TabStop property value changes.

TextChanged
TextChanged

Occurs when the Text property value changes.

TextUpdate
TextUpdate

Occurs when the control has formatted the text, but before the text is displayed.

Validated
Validated

Occurs when the control is finished validating.

Validating
Validating

Occurs when the control is validating.

ValueMemberChanged
ValueMemberChanged

Occurs when the ValueMember property changes.

VisibleChanged
VisibleChanged

Occurs when the Visible property value changes.


[Link] ComboBoxArray.
BackColorChanged
I n this Article
Occurs when the value of the BackColor property changes.

public event EventHandler BackColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BackColor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ComboBox
[Link]
I n this Article
Occurs when the value of the BindingContext property changes.

public event EventHandler BindingContextChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BindingContext property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets a value that determines whether a control is a member of a ComboBoxArray.
public bool CanExtend (object target);
abstract member CanExtend : obj -> bool
override [Link] : obj -> bool

Parameters
target Object Object
A ComboBox control.
Returns
Boolean Boolean
true if target is a member of the control array; otherwise false .

Remarks
The CanExtend method can be used to determine whether a specific ComboBox control is the base element of the
control array from which the other elements were cloned.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ComboBox
[Link]
I n this Article
Occurs when the value of the CausesValidation property changes.

public event EventHandler CausesValidationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the CausesValidation property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
UICues
I n this Article
Occurs when the focus or keyboard user interface (UI) cues change.

public event [Link] ChangeUICues;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a ComboBox in a ComboBoxArray is clicked.
public event EventHandler Click;
member [Link] : EventHandler

Remarks
The Click event passes an EventArgs to its event handler. Therefore it only indicates that a click has occurred. If you
need more specific mouse information (button, number of clicks, wheel rotation, or location), use the MouseClick event.
However, the MouseClick event will not be raised if the click is caused by action other than that of the mouse, such as
pressing the ENTER key.
A double-click is determined by the mouse settings of the user's operating system. The user can set the time between
clicks of a mouse button that should be considered a double-click instead of two clicks. The Click event is raised every
time that a control is double-clicked. For example, if you have event handlers for the Click and DoubleClick events of
a control, the Click and DoubleClick events are raised when the control is double-clicked and both methods are
called. If a control is double-clicked and that control does not support the DoubleClick event, the Click event might be
raised two times.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ComboBoxArray.
ClientSizeChanged
I n this Article
Occurs when the value of the ClientSize property changes.

public event EventHandler ClientSizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ClientSize property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
ComboBoxArray ComboBoxArray
I n this Article

Overloads
ComboBoxArray()
Initializes a new instance of the ComboBoxArray class.

ComboBoxArray(IContainer) ComboBoxArray(IContainer)
Initializes a new instance of the ComboBoxArray class,
specifying its container.

ComboBoxArray()
Initializes a new instance of the ComboBoxArray class.
public ComboBoxArray ();

Remarks
When you instantiate a ComboBoxArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

ComboBoxArray(IContainer) ComboBoxArray(IContainer)
Initializes a new instance of the ComboBoxArray class, specifying its container.

public ComboBoxArray ([Link] Container);


new [Link] : [Link] ->
[Link]

Parameters
Container IContainer IContainer
The IContainer where the control array will be hosted.
Remarks
When you instantiate a ComboBoxArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ComboBoxArray.
ContextMenuChanged
I n this Article
Occurs when the value of the ContextMenu property changes.

[[Link](false)]
public event EventHandler ContextMenuChanged;
member [Link] : EventHandler

Attributes BrowsableAttribute

Remarks
This event is raised if the ContextMenu property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ComboBox
[Link]
I n this Article
Occurs when the value of the ContextMenuStrip property changes.

public event EventHandler ContextMenuStripChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ContextMenuStrip property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Added
I n this Article
Occurs when a new control is added to the ComboBoxArray.

public event [Link] ControlAdded;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ComboBoxArray.
ControlRemoved
I n this Article
Occurs when a control is removed from the ComboBoxArray.

public event [Link] ControlRemoved;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Cursor property changes.

public event EventHandler CursorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Cursor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ComboBoxArray.
DataSourceChanged
I n this Article
Occurs when the value of the DataSource property changes.

public event EventHandler DataSourceChanged;


member [Link] : EventHandler

Remarks
This event is raised if the DataSource property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ComboBox
[Link]
I n this Article
Occurs when the value of the DisplayMember property changes.

public event EventHandler DisplayMemberChanged;


member [Link] : EventHandler

Remarks
This event is raised if the DisplayMember property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Dock property changes.

public event EventHandler DockChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Dock property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Click
I n this Article
Occurs when a ComboBox control in a ComboBoxArray is double-clicked.

public event EventHandler DoubleClick;


member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a drag-and-drop operation is completed.
public event [Link] DragDrop;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged into the control's bounds.
public event [Link] DragEnter;
member [Link] : [Link]

Remarks
The DragEnter event is raised when the user first drags the mouse pointer over the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged out of the control's bounds.
public event EventHandler DragLeave;
member [Link] : EventHandler

Remarks
The DragLeave event is raised when the user drags the mouse pointer out of the control or the user cancels the current
drag-and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged over the control's bounds.
public event [Link] DragOver;
member [Link] : [Link]

Remarks
The DragOver event is raised when the mouse pointer moves within the bounds of the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a visual aspect of an owner-drawn ComboBox changes.
public event [Link] DrawItem;
member [Link] : [Link]

Remarks
This event is used by an owner-drawn ComboBox.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the drop-down part of a ComboBox is shown.
public event EventHandler DropDown;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
DownClosed
I n this Article
Occurs when the drop-down part of the ComboBox is no longer visible.

public event EventHandler DropDownClosed;


member [Link] : EventHandler

Remarks
Use the DropDownClosed event to restore the state of the ComboBox from changes you made in response to the
DropDown event.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ComboBox
[Link]
I n this Article
Occurs when the value of the DropDownStyle property changes.

public event EventHandler DropDownStyleChanged;


member [Link] : EventHandler

Remarks
This event is raised if the DropDownStyle property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ComboBoxArray.
EnabledChanged
I n this Article
Occurs when the value of the Enabled property changes.

public event EventHandler EnabledChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Enabled property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is entered.
public event EventHandler Enter;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Font property changes.

public event EventHandler FontChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Font property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ComboBoxArray.
ForeColorChanged
I n this Article
Occurs when the value of the ForeColor property changes.

public event EventHandler ForeColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ForeColor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is bound to a data value.
public event [Link] Format;
member [Link] : [Link]

Remarks
The Format event is raised before each visible item in the ListControl is formatted. Handling this event gives you
access to the string to be displayed for this list item, through the Value property of the ListControlConvertEventArgs.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ComboBoxArray.
FormatStringChanged
I n this Article
Occurs when value of the FormatString property changes

public event EventHandler FormatStringChanged;


member [Link] : EventHandler

Remarks
This event is raised if the FormatString property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ComboBox
[Link]
I n this Article
Occurs when the value of the FormattingEnabled property changes.

public event EventHandler FormattingEnabledChanged;


member [Link] : EventHandler

Remarks
This event is raised if the FormattingEnabled property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ComboBox
[Link]
I n this Article
Overrides GetControlInstanceType().

protected override Type GetControlInstanceType ();


override [Link] : unit -> Type

Returns
Type Type
The type of a control in a control array.

Remarks
This method cannot be called from your application's code. Use the GetType method instead.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the index of a ComboBox in a ComboBoxArray.
public short GetIndex ([Link] o);
member [Link] : [Link] -> int16

Parameters
o ComboBox ComboBox
A ComboBox in the control array.
Returns
Int16 Int16
A Short that represents the index of the specified ComboBox.

Remarks
This method can be used to retrieve the index for the specified ComboBox.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Feedback
I n this Article
Occurs during a drag operation.

public event [Link] GiveFeedback;


member [Link] : [Link]

Remarks
The GiveFeedback event is raised when a drag-and-drop operation is started. By using the GiveFeedback event, you
can enable the source of a drag event to modify the appearance of the mouse pointer in order to give the user visual
feedback during a drag-and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Requested
I n this Article
Occurs when the user requests help for a control.

public event [Link] HelpRequested;


member [Link] : [Link]

Remarks
The HelpRequested event is typically raised when the user presses the F1 key or an associated context-sensitive Help
button is clicked.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ComboBoxArray.
HookUpControlEvents
I n this Article
Overrides HookUpControlEvents(Object).

protected override void HookUpControlEvents (object o);


override [Link] : obj -> unit

Parameters
o Object Object
An Object.

Remarks
This method cannot be called from your application's code. Use AddHandler to hook up events for any controls that
are added by using the Load method.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ModeChanged
I n this Article
Occurs when the value of the ImeMode property changes.

public event EventHandler ImeModeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ImeMode property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link][Int16] [Link][Int16]
I n this Article
Gets a specific element of a ComboBoxArray by index. Read-only.
public [Link] this[short Index] { get; }
member [Link](int16) : [Link]

Parameters
Index Int16 Int16
A Short that specifies the position of an element of the control array.
Returns
ComboBox ComboBox
A ComboBox at the specified Index in the control array.

Remarks
The Item property is the default property for a control array. Therefore, the following lines of code are equivalent.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is pressed and the control has focus.
public event [Link] KeyDown;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown

KeyPress
KeyUp
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is pressed and the control has focus.
public event [Link] KeyPress;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress

KeyUp
The KeyPress event is not raised by noncharacter keys; however, the noncharacter keys do raise the KeyDown and
KeyUp events.
Use the KeyChar property to sample keystrokes at run time and to consume or modify a subset of common keystrokes.
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is released and the control has focus.
public event [Link] KeyUp;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress
KeyUp

To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a control should reposition its child controls.
public event [Link] Layout;
member [Link] : [Link]

Remarks
The Layout event occurs when child controls are added or removed, when the bounds of the control changes, and
when other changes occur that can affect the layout of the control. The layout event can be suppressed by using the
SuspendLayout and ResumeLayout methods. Suspending layout enables you to perform multiple actions on a control
without having to perform a layout for each change. For example, if you resize and move a control, each operation
would raise a Layout event.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the input focus leaves the control.
public event EventHandler Leave;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), or by calling the Select or
SelectNextControl method, focus events occur in the following order:
Enter
GotFocus
Leave

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ComboBoxArray.
LocationChanged
I n this Article
Occurs when the value of the Location property changes.

public event EventHandler LocationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Location property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ComboBoxArray.
MarginChanged
I n this Article
Occurs when the value of the Margin property changes.

public event EventHandler MarginChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Margin property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Item
I n this Article
Occurs every time that an owner-drawn ComboBox item has to be drawn and when the sizes of the list items are
determined.
public event [Link] MeasureItem;
member [Link] : [Link]

Remarks
You can create an event handler for this event to specify the size an item is made before it is drawn in the DrawItem
event.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ComboBox
[Link]
I n this Article
Occurs when the control loses or gains mouse capture.

public event EventHandler MouseCaptureChanged;


member [Link] : EventHandler

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown
Click
MouseClick

MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate an MouseDoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a control. They are often raised by other actions, such as pressing the
ENTER key when the control has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is clicked by the mouse.
public event [Link] MouseClick;
member [Link] : [Link]

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown
Click
MouseClick

MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate a MouseDoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a shape. They are often raised by other actions, such as pressing the
ENTER key when the shape has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ComboBoxArray.
MouseDoubleClick
I n this Article
Occurs when the control is double-clicked by the mouse.

public event [Link] MouseDoubleClick;


member [Link] : [Link]

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown
Click
MouseClick
MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate a DoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a shape. They are often raised by other actions, such as pressing the
ENTER key when the shape has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Down
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is pressed.

public event [Link] MouseDown;


member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel

MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Enter
I n this Article
Occurs when the mouse pointer enters the control.

public event EventHandler MouseEnter;


member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter

MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Hover
I n this Article
Occurs when the mouse pointer rests on the control.

public event EventHandler MouseHover;


member [Link] : EventHandler

Remarks
A typical use of MouseHover is to display a tool tip when the mouse pauses on a control within a specified area around
the control (the "hover rectangle"). The pause required for this event to be raised is specified in milliseconds by the
MouseHoverTime property.
The MouseHover event is defined and detected in connection with the MouseHoverSize and MouseHoverTime
properties.
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Leave
I n this Article
Occurs when the mouse pointer leaves the control.

public event EventHandler MouseLeave;


member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Move
I n this Article
Occurs when the mouse pointer is moved over the control.

public event [Link] MouseMove;


member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove

MouseHover / MouseDown / MouseWheel


MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is released.
public event [Link] MouseUp;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp

MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is moved.
public event EventHandler Move;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ComboBoxArray.
PaddingChanged
I n this Article
Occurs when the control's Padding property changes.

public event EventHandler PaddingChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Padding property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control's Parent property changes.

public event EventHandler ParentChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Parent property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ComboBoxArray.
QueryAccessibilityHelp
I n this Article
Occurs when an AccessibleObject is providing Help to accessibility applications.

public event [Link] QueryAccessibilityHelp;


member [Link] : [Link]

Remarks
You should use the HelpProvider class to enable users to invoke Help on your accessible object by pressing the F1 key.
The HelpProvider gives you complete information in the QueryAccessibilityHelpEventArgs.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ComboBoxArray.
QueryContinueDrag
I n this Article
Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.
public event [Link] QueryContinueDrag;
member [Link] : [Link]

Remarks
The QueryContinueDrag event is raised when there is a change in the keyboard or mouse button state during a drag-
and-drop operation. The QueryContinueDrag event enables the drag source to determine whether the drag-and-drop
operation should be canceled.
For more information about handling events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Region property changes.

public event EventHandler RegionChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Region property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Not supported in the ComboBoxArray class.
public void ResetIndex ([Link] o);
member [Link] : [Link] -> unit

Parameters
o ComboBox ComboBox
A Control.

Remarks
This method is not supported, and calling it does not raise an exception.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is resized.
public event EventHandler Resize;
member [Link] : EventHandler

Remarks
To determine the Size of the resized control, you can cast the sender parameter of the EventArgs data to a Control and
get its Size property (or Height and Width properties individually).
To handle custom layouts, use the Layout event instead of the Resize event. The Layout event is raised in response to
a Resize event, but also in response to other changes that affect the layout of the control.

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ComboBoxArray.
RightToLeftChanged
I n this Article
Occurs when the RightToLeftChanged property value changes.

public event EventHandler RightToLeftChanged;


member [Link] : EventHandler

Remarks
This event is raised if the RightToLeft property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ComboBoxArray.
SelectedIndexChanged
I n this Article
Occurs when the SelectedIndex property has changed.

public event EventHandler SelectedIndexChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SelectedIndex property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ComboBoxArray.
SelectedValueChanged
I n this Article
Occurs when the SelectedValue property has changed.

public event EventHandler SelectedValueChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SelectedValue property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ComboBox
[Link]
I n this Article
Occurs when the selected item has changed and that change is displayed in the ComboBox.

public event EventHandler SelectionChangeCommitted;


member [Link] : EventHandler

Remarks
SelectionChangeCommitted is raised only when the user changes the combo box selection. Do not use
SelectedIndexChanged or SelectedValueChanged to capture user changes, because those events are also raised when
the selection changes programmatically.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Sets the index of the initial ComboBox in a ComboBoxArray.
public void SetIndex ([Link] o, short Index);
member [Link] : [Link] * int16 -> unit

Parameters
o ComboBox ComboBox
A ComboBox in the control array.
Index Int16 Int16
A Short that represents the index of the specified ComboBox.

Remarks
The SetIndex method should only be called when you are creating the initial element in the control array. To add
subsequent elements, call the Load method and specify the Index .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ComboBoxArray.
ShouldSerializeIndex
I n this Article
Returns a value that indicates whether a ComboBox is a member of this ComboBoxArray.

public bool ShouldSerializeIndex ([Link] o);


member [Link] : [Link] -> bool

Parameters
o ComboBox ComboBox
A ComboBox in the control array.
Returns
Boolean Boolean
true if o is a member of this control array; otherwise, false .

Remarks
If the specified ComboBox is a member of a different ComboBoxArray, ShouldSerializeIndex returns false .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Size property value changes.

public event EventHandler SizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Size property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control style changes.

public event EventHandler StyleChanged;


member [Link] : EventHandler

Remarks
The StyleChanged event occurs when ControlStyles flags have been added or changed.
This event is raised if the control style is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ComboBoxArray.
SystemColorsChanged
I n this Article
Occurs when the system colors change.

public event EventHandler SystemColorsChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SystemColors is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
IndexChanged
I n this Article
Occurs when the TabIndex property value changes.

public event EventHandler TabIndexChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabIndex property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
StopChanged
I n this Article
Occurs when the TabStop property value changes.

public event EventHandler TabStopChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabStop property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Text property value changes.

public event EventHandler TextChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Text property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control has formatted the text, but before the text is displayed.
public event EventHandler TextUpdate;
member [Link] : EventHandler

Remarks
Use the TextUpdate event to validate the text before it is actually shown. TextUpdate is not raised if the Text property
is programmatically changed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is finished validating.
public event EventHandler Validated;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated

If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is validating.
public event [Link] Validating;
member [Link] : [Link]

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated
If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ComboBoxArray.
ValueMemberChanged
I n this Article
Occurs when the ValueMember property changes.

public event EventHandler ValueMemberChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ValueMember property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Visible property value changes.

public event EventHandler VisibleChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Visible property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
CONNECTDATA CONNECTDATA Struct
A Structure that contains data that is used internally by an application that has been upgraded from Visual Basic 6.0.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
[[Link](false)]
public struct CONNECTDATA
type CONNECTDATA = struct

I nheritance H ierarchy
Object Object
ValueType ValueType

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Fields
cookie
cookie

An integer used by the CONNECTDATA structure.

pUnk
pUnk

An IntPtr used by the CONNECTDATA structure.


[Link] [Link]
I n this Article
An integer used by the CONNECTDATA structure.
public int cookie;
val mutable cookie : int

Returns
Int32 Int32

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
An IntPtr used by the CONNECTDATA structure.
public IntPtr pUnk;
val mutable pUnk : nativeint

Returns
IntPtr IntPtr

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
DBBINDING DBBINDING Struct
Provides a Structure that represents an ADO binding in an application that has been upgraded from Visual Basic 6.0.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
[[Link](false)]
public struct DBBINDING
type DBBINDING = struct

I nheritance H ierarchy
Object Object
ValueType ValueType

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Fields
bPrecision
bPrecision

A field for the internal DBBINDING structure.

bScale
bScale

A field for the internal DBBINDING structure.

cbMaxLen
cbMaxLen

A field for the internal DBBINDING structure.

dwFlags
dwFlags

A field for the internal DBBINDING structure.

eParamIO
eParamIO
A field for the internal DBBINDING structure.

iOrdinal
iOrdinal

A field for the internal DBBINDING structure.

memOwner
memOwner

A field for the internal DBBINDING structure.

obLength
obLength

A field for the internal DBBINDING structure.

obStatus
obStatus

A field for the internal DBBINDING structure.

obValue
obValue

A field for the internal DBBINDING structure.

part
part

A field for the internal DBBINDING structure.

pBindExt
pBindExt

A field for the internal DBBINDING structure.

pObject
pObject

A field for the internal DBBINDING structure.

typeInfo
typeInfo

A field for the internal DBBINDING structure.

wType
wType

A field for the internal DBBINDING structure.


[Link] [Link]
I n this Article
A field for the internal DBBINDING structure.
public byte bPrecision;
val mutable bPrecision : byte

Returns
Byte Byte

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
A field for the internal DBBINDING structure.
public byte bScale;
val mutable bScale : byte

Returns
Byte Byte

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
A field for the internal DBBINDING structure.
public int cbMaxLen;
val mutable cbMaxLen : int

Returns
Int32 Int32

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
A field for the internal DBBINDING structure.
public int dwFlags;
val mutable dwFlags : int

Returns
Int32 Int32

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
A field for the internal DBBINDING structure.
public int eParamIO;
val mutable eParamIO : int

Returns
Int32 Int32

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
A field for the internal DBBINDING structure.
public int iOrdinal;
val mutable iOrdinal : int

Returns
Int32 Int32

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
A field for the internal DBBINDING structure.
public int memOwner;
val mutable memOwner : int

Returns
Int32 Int32

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
A field for the internal DBBINDING structure.
public int obLength;
val mutable obLength : int

Returns
Int32 Int32

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
A field for the internal DBBINDING structure.
public int obStatus;
val mutable obStatus : int

Returns
Int32 Int32

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
A field for the internal DBBINDING structure.
public int obValue;
val mutable obValue : int

Returns
Int32 Int32

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
A field for the internal DBBINDING structure.
public int part;
val mutable part : int

Returns
Int32 Int32

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
A field for the internal DBBINDING structure.
public IntPtr pBindExt;
val mutable pBindExt : nativeint

Returns
IntPtr IntPtr

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
A field for the internal DBBINDING structure.
public IntPtr pObject;
val mutable pObject : nativeint

Returns
IntPtr IntPtr

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
A field for the internal DBBINDING structure.
public IntPtr typeInfo;
val mutable typeInfo : nativeint

Returns
IntPtr IntPtr

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
A field for the internal DBBINDING structure.
public short wType;
val mutable wType : int16

Returns
Int16 Int16

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
DBCOLUMNINFO DBCOLUMNINFO Struct
A Structure that contains data that is used internally by an application that has been upgraded from Visual Basic 6.0.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
[[Link](false)]
public struct DBCOLUMNINFO
type DBCOLUMNINFO = struct

I nheritance H ierarchy
Object Object
ValueType ValueType

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Fields
columnFlags
columnFlags

A field for the internal DBCOLUMNINFO structure.

columnId
columnId

A field for the internal DBCOLUMNINFO structure.

columnOrdinal
columnOrdinal

A field for the internal DBCOLUMNINFO structure.

columnSize
columnSize

A field for the internal DBCOLUMNINFO structure.

columnType
columnType
A field for the internal DBCOLUMNINFO structure.

name
name

A field for the internal DBCOLUMNINFO structure.

precision
precision

A field for the internal DBCOLUMNINFO structure.

scale
scale

A field for the internal DBCOLUMNINFO structure.

typeInfo
typeInfo

A field for the internal DBCOLUMNINFO structure.


[Link] DBCOLUMNINF
[Link]
I n this Article
A field for the internal DBCOLUMNINFO structure.

public int columnFlags;


val mutable columnFlags : int

Returns
Int32 Int32

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
A field for the internal DBCOLUMNINFO structure.
public [Link] columnId;
val mutable columnId : [Link]

Returns
DBID DBID

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DBCOLUMNINF
[Link]
I n this Article
A field for the internal DBCOLUMNINFO structure.

public int columnOrdinal;


val mutable columnOrdinal : int

Returns
Int32 Int32

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Size
I n this Article
A field for the internal DBCOLUMNINFO structure.

public int columnSize;


val mutable columnSize : int

Returns
Int32 Int32

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Type
I n this Article
A field for the internal DBCOLUMNINFO structure.

public short columnType;


val mutable columnType : int16

Returns
Int16 Int16

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
A field for the internal DBCOLUMNINFO structure.
public IntPtr name;
val mutable name : nativeint

Returns
IntPtr IntPtr

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
A field for the internal DBCOLUMNINFO structure.
public byte precision;
val mutable precision : byte

Returns
Byte Byte

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
A field for the internal DBCOLUMNINFO structure.
public byte scale;
val mutable scale : byte

Returns
Byte Byte

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
A field for the internal DBCOLUMNINFO structure.
public IntPtr typeInfo;
val mutable typeInfo : nativeint

Returns
IntPtr IntPtr

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
DBID DBID Struct
Provides a Structure that is used internally in an application that has been upgraded from Visual Basic 6.0.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
[[Link](false)]
public struct DBID
type DBID = struct

I nheritance H ierarchy
Object Object
ValueType ValueType

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Fields
dbkind
dbkind

A field for the internal DBID structure.

uGuid
uGuid

A field for the internal DBID structure.

uName
uName

A field for the internal DBID structure.


[Link] [Link]
I n this Article
A field for the internal DBID structure.
public [Link] dbkind;
val mutable dbkind : [Link]

Returns
DBKINDENUM DBKINDENUM

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
A field for the internal DBID structure.
public [Link] uGuid;
val mutable uGuid : [Link]

Returns
UGUID UGUID

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
A field for the internal DBID structure.
public [Link] uName;
val mutable uName : [Link]

Returns
UNAME UNAME

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
DBinding DBinding Interface
Provides a managed equivalent of the DBinding interface from the Microsoft Data Binding Collection library (msbind)
for use in applications upgraded from Visual Basic 6.0.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public interface DBinding
type DBinding = interface

I nheritance H ierarchy
None

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Properties
DataChanged
DataChanged

Gets or sets a value indicating that data has changed.

DataField
DataField

Gets a data field.

DataFormat
DataFormat

Gets or sets the data format for a data field.

Key
Key

Gets the key value for a data field.

Object
Object

Gets a data object.


PropertyName
PropertyName

Gets the name of a property from a data object.


[Link] [Link]
I n this Article
Gets or sets a value indicating that data has changed.
public bool DataChanged { get; set; }
member [Link] : bool with get, set

Returns
Boolean Boolean
true if data has changed; otherwise, false .

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets a data field.
public string DataField { get; }
member [Link] : string

Returns
String String
A String that contains the data.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets or sets the data format for a data field.
public [Link] DataFormat { get; set; }
member [Link] : [Link] with get, set

Returns
IDataFormatDisp IDataFormatDisp
An IDataFormatDisp interface.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the key value for a data field.
public string Key { get; }
member [Link] : string

Returns
String String
A String that contains the key value.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets a data object.
public object Object { get; }
member [Link] : obj

Returns
Object Object
An Object that contains data.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the name of a property from a data object.
public string PropertyName { get; }
member [Link] : string

Returns
String String
A String that contains the property name.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
DBindingCollection DBindingCollection Interface
Provides an interface to replace COM -based data binding in an application upgraded from Visual Basic 6.0.

D eclaration
[[Link](false)]
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public interface DBindingCollection : [Link]
type DBindingCollection = interface
interface IEnumerable

I nheritance H ierarchy
None

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Properties
Count
Count

Gets the total number of bindings in the DBindingCollection.

DataMember
DataMember

Gets or sets the data member for a DBindingCollection.

DataSource
DataSource

Gets or sets the data source for a DBindingCollection.

Item[Object]
Item[Object]

Gets the DBinding at the specified index.

UpdateMode
UpdateMode
Gets or sets the UpdateMode for a DBindingCollection.

Methods
Add(Object, String, String, IDataFormatDisp, String)
Add(Object, String, String, IDataFormatDisp, String)

Adds a DBinding to a DBindingCollection.

Clear()
Clear()

Clears the collection of binding objects.

Remove(Object)
Remove(Object)

Removes a DBinding interface from a DBindingCollection.

UpdateControls()
UpdateControls()

Gets the current row from the DBindingCollection object's data source and resets the contents of controls bound
through the object.
[Link] [Link]
I n this Article
Adds a DBinding to a DBindingCollection.
public [Link] Add (object obj, string propertyName, string
dataField, [Link] dataFormat = null, string key =
null);
abstract member Add : obj * string * string *
[Link] * string ->
[Link]

Parameters
obj Object Object
An Object that contains data.
propertyName String String
A String that contains a property name.
dataField String String
A String that contains the name of a data field.
dataFormat IDataFormatDisp IDataFormatDisp
Optional. An IDataFormatDisp interface.
key String String
Optional. A String that contains the key value.
Returns
DBinding DBinding
A DBinding interface.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Clears the collection of binding objects.
public void Clear ();
abstract member Clear : unit -> unit

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the total number of bindings in the DBindingCollection.
public int Count { get; }
member [Link] : int

Returns
Int32 Int32
An Integer that contains the count.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DBindingCollection.
DataMember
I n this Article
Gets or sets the data member for a DBindingCollection.

public string DataMember { get; set; }


member [Link] : string with get, set

Returns
String String
A string that contains the name of the data member.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Source
I n this Article

This API is not CLS-compliant.


CLS- [Link]
compliant
alternative

Gets or sets the data source for a DBindingCollection.


[[Link](false)]
public [Link] DataSource { get; set; }
member [Link] : [Link] with get, set

Returns
[Link] [Link]
A COM -based [Link] object.
Attributes CLSCompliantAttribute

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link][Object] DBindingCollection.
Item[Object]
I n this Article
Gets the DBinding at the specified index.

public [Link] this[object index] { get; }


member [Link](obj) : [Link]

Parameters
index Object Object
An Object representing the index.
Returns
DBinding DBinding
A DBinding interface.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Removes a DBinding interface from a DBindingCollection.
public void Remove (object index);
abstract member Remove : obj -> unit

Parameters
index Object Object
An Object representing the index.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DBindingCollection.
UpdateControls
I n this Article
Gets the current row from the DBindingCollection object's data source and resets the contents of controls bound
through the object.
public void UpdateControls ();
abstract member UpdateControls : unit -> unit

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DBindingCollection.
UpdateMode
I n this Article
Gets or sets the UpdateMode for a DBindingCollection.

public [Link] UpdateMode { get; set; }


member [Link] : [Link] with get, set

Returns
UpdateMode UpdateMode
An UpdateMode enumeration.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
DBKINDENUM DBKINDENUM Enum
Provides an enumeration for use by the tools for upgrading Visual Basic 6.0 applications to Visual Basic.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
[[Link](false)]
public enum DBKINDENUM
type DBKINDENUM =

I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Fields
DBKIND_GUID DBKIND_GUID 6

DBKIND_GUID_NAME DBKIND_GUID_NAME 0

DBKIND_GUID_PROPID DBKIND_GUID_PROPID 1

DBKIND_NAME DBKIND_NAME 2

DBKIND_PGUID_NAME DBKIND_PGUID_NAME 3

DBKIND_PGUID_PROPID DBKIND_PGUID_PROPID 4

DBKIND_PROPID DBKIND_PROPID 5
DBPROPIDSET DBPROPIDSET Struct
Provides a Structure for use in an application that has been upgraded from Visual Basic 6.0.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public struct DBPROPIDSET
type DBPROPIDSET = struct

I nheritance H ierarchy
Object Object
ValueType ValueType

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Fields
cPropertyIDs
cPropertyIDs

A field for the internal DBPROPIDSET structure.

guidPropertySet
guidPropertySet

A field for the internal DBPROPIDSET structure.

rgPropertyIDs
rgPropertyIDs

A field for the internal DBPROPIDSET structure.


[Link] [Link]
I n this Article
A field for the internal DBPROPIDSET structure.
public int cPropertyIDs;
val mutable cPropertyIDs : int

Returns
Int32 Int32

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
PropertySet
I n this Article
A field for the internal DBPROPIDSET structure.

public Guid guidPropertySet;


val mutable guidPropertySet : Guid

Returns
Guid Guid

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
IDs
I n this Article
A field for the internal DBPROPIDSET structure.

public IntPtr rgPropertyIDs;


val mutable rgPropertyIDs : nativeint

Returns
IntPtr IntPtr

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
DirListBox DirListBox Class
Displays directories and paths at run time.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class DirListBox : [Link]
type DirListBox = class
inherit ListBox

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component
Control Control
ListControl ListControl
ListBox ListBox

Remarks
Use this control to display a hierarchical list of directories. You can create dialog boxes that, for example, enable a user
to open a file from a list of files in all available directories.
Set the DirList[Int32], DirListCount, and DirListIndex properties to enable a user to access items in a list. If you also
display the DriveListBox and FileListBox controls, you can write code to synchronize them with the DirListBox control
and with each other.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
DirListBox()
DirListBox()

Initializes a new instance of the DirListBox class.

Properties
ColumnWidth
ColumnWidth

Gets or sets the width of columns in a multicolumn ListBox.

DataSource
DataSource

Gets or sets the data source for a ListControl.

DirList[Int32]
DirList[Int32]

Gets the items that are contained in a DirListBox control's list portion.

DirListCount
DirListCount

Gets the number of items in the list section of a DirListBox control.

DirListIndex
DirListIndex

Gets or sets the index of the currently selected item in a DirListBox control.

DrawMode
DrawMode

Gets or sets the drawing mode for a ListBox.

ItemHeight
ItemHeight

Gets the height of an item in the ListBox.

Items
Items

Gets the items that are contained in a ListBox.

MultiColumn
MultiColumn

Gets or sets a value that indicates whether a ListBox supports multiple columns.

Path
Path

Gets or sets the current path in a DirListBox control.


SelectionMode
SelectionMode

Gets or sets the method in which items are selected in a ListBox.

Sorted
Sorted

Gets a value that indicates whether the items in a DirListBox are sorted alphabetically.

ValueMember
ValueMember

Gets or sets the property to use as the actual value for the items in a ListControl.

Methods
Dispose(Boolean)
Dispose(Boolean)

Releases the unmanaged resources that are used by a DirListBox control and optionally releases the managed
resources.

OnBackColorChanged(EventArgs)
OnBackColorChanged(EventArgs)

Raises the BackColorChanged event.

OnChange(EventArgs)
OnChange(EventArgs)

Raises the Change event.

OnDoubleClick(EventArgs)
OnDoubleClick(EventArgs)

Raises the DoubleClick event.

OnDrawItem(DrawItemEventArgs)
OnDrawItem(DrawItemEventArgs)

Raise the DrawItem event.

OnFontChanged(EventArgs)
OnFontChanged(EventArgs)
Raises the FontChanged event.

OnHandleCreated(EventArgs)
OnHandleCreated(EventArgs)

Raises the HandleCreated event.

OnSelectedIndexChanged(EventArgs)
OnSelectedIndexChanged(EventArgs)

Raises the SelectedIndexChanged event.

Refresh()
Refresh()

Forces the control to invalidate its client area and immediately redraw itself.

Events
Change
Change

Occurs when the contents of a DirListBox control has changed.

See Also
[Link] [Link]
I n this Article
Occurs when the contents of a DirListBox control has changed.
public event EventHandler Change;
member [Link] : EventHandler

Remarks
The Change event occurs when the selection in a DirListBox control changes, either when the user double-clicks a new
directory or when you change the Path property setting through code.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Gets or sets the width of columns in a multicolumn ListBox.
[[Link](false)]
public int ColumnWidth { get; set; }
member [Link] : int with get, set

Returns
Int32 Int32
The width, in pixels, of each column in the control. The default is 0.
Attributes BrowsableAttribute

Remarks
This property should not be set for the DirListBox control; it is provided only because the DirListBox control inherits
from ListBox.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Gets or sets the data source for a ListControl.
[[Link](false)]
public object DataSource { get; set; }
member [Link] : obj with get, set

Returns
Object Object
An object that implements the IList or IListSource interfaces, such as a DataSet or a Array. The default is null .
Attributes BrowsableAttribute

Remarks
This property should not be set for the DirListBox control; it is provided only because the DirListBox control inherits
from ListBox.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link][Int32] [Link][Int32]
I n this Article
Gets the items that are contained in a DirListBox control's list portion.
[[Link](false)]
public string DirList[int Index] { get; }
member [Link](int) : string

Parameters
Index Int32 Int32
The number of a specific item in the list.
Returns
String String
A String that contains the directory and path for the specified item.
Attributes BrowsableAttribute

Remarks
Use this property to access list items. The DirList property works together with the DirListCount and DirListIndex
properties.
For a DirListBox control, the Index number sequence is based on the current directories and subdirectories when the
control is created at run time.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
DirListBox
I n this Article
Initializes a new instance of the DirListBox class.
public DirListBox ();

Remarks
A DirListBox control displays directories and paths at run time.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Gets the number of items in the list section of a DirListBox control.
[[Link](false)]
public int DirListCount { get; }
member [Link] : int

Returns
Int32 Int32
An Integer that represents the number of items in the list.
Attributes BrowsableAttribute

Remarks
Use this property to return the number of subdirectories in the currently selected directory. The DirListCount
property works together with the DirList[Int32] and DirListIndex properties.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Gets or sets the index of the currently selected item in a DirListBox control.
[[Link](false)]
public int DirListIndex { get; set; }
member [Link] : int with get, set

Returns
Int32 Int32
An Integer that represents the index of the currently selected item.
Attributes BrowsableAttribute

Remarks
Use this property to return the index of the currently selected directory. The DirListIndex property works together
with the DirList[Int32] and DirListCount properties.
The expression [Link]([Link]) returns the string for the currently selected directory.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Releases the unmanaged resources that are used by a DirListBox control and optionally releases the managed
resources.

protected override void Dispose (bool Disposing);


override [Link] : bool -> unit

Parameters
Disposing Boolean Boolean
true to release both managed and unmanaged resources; false to release only unmanaged resources.

Remarks
This method is called by the public Dispose() method and the Finalize method. Dispose() invokes the protected
Dispose(Boolean) method with the disposing parameter set to true . Finalize invokes Dispose with the disposing
parameter set to false .
When the disposing parameter is true , this method releases all resources held by any managed objects that this
control references. This method invokes the Dispose() method of each referenced object.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Gets or sets the drawing mode for a ListBox.
[[Link](false)]
public override [Link] DrawMode { get; set; }
member [Link] : [Link] with get, set

Returns
DrawMode DrawMode
One of the DrawMode values that represent the mode for drawing the items of the control. The default is Normal.
Attributes BrowsableAttribute

Remarks
This property should not be set for the DirListBox control; it is provided only because the DirListBox control inherits
from ListBox.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Gets the height of an item in the ListBox.
[[Link](false)]
public int ItemHeight { get; }
member [Link] : int

Returns
Int32 Int32
The height, in pixels, of an item in the control.
Attributes BrowsableAttribute

Remarks
This property is not required for the DirListBox control; the DirListBox does not support items of variable height. It is
provided only because the DirListBox control inherits from ListBox.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Gets the items that are contained in a ListBox.
[[Link](false)]
public [Link] Items { get; }
member [Link] : [Link]

Returns
[Link] [Link]
A [Link] that represents the items in the DirListBox.
Attributes BrowsableAttribute

Remarks
This property should not be used for the DirListBox control; trying to add or remove directories from the collection
could cause an exception. It is provided only because the DirListBox control inherits from ListBox.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Gets or sets a value that indicates whether a ListBox supports multiple columns.
[[Link](false)]
public bool MultiColumn { get; set; }
member [Link] : bool with get, set

Returns
Boolean Boolean
true if the ListBox supports multiple columns; otherwise, false . The default is false .
Attributes BrowsableAttribute

Remarks
This property should not be set for the DirListBox control; it is provided only because the DirListBox control inherits
from ListBox.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
Changed
I n this Article
Raises the BackColorChanged event.

protected override void OnBackColorChanged (EventArgs e);


override [Link] : EventArgs -> unit

Parameters
e EventArgs EventArgs
A EventArgs that contains the event data.

Remarks
Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising
Events.
The OnBackColorChanged method also enables derived classes to handle the event without attaching a delegate. This is
the preferred technique for handling the event in a derived class.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Raises the Change event.
protected virtual void OnChange (EventArgs e);
abstract member OnChange : EventArgs -> unit
override [Link] : EventArgs -> unit

Parameters
e EventArgs EventArgs
A EventArgs that contains the event data.

Remarks
Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising
Events.
The OnChanged method also enables derived classes to handle the event without attaching a delegate. This is the
preferred technique for handling the event in a derived class.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Raises the DoubleClick event.
protected override void OnDoubleClick (EventArgs e);
override [Link] : EventArgs -> unit

Parameters
e EventArgs EventArgs
A EventArgs that contains the event data.

Remarks
Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising
Events.
The OnDoubleClick method also enables derived classes to handle the event without attaching a delegate. This is the
preferred technique for handling the event in a derived class.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Raise the DrawItem event.
protected override void OnDrawItem ([Link] e);
override [Link] : [Link] -> unit

Parameters
e DrawItemEventArgs DrawItemEventArgs
A EventArgs that contains the event data.

Remarks
Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising
Events.
The OnDrawItem method also enables derived classes to handle the event without attaching a delegate. This is the
preferred technique for handling the event in a derived class.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Raises the FontChanged event.
protected override void OnFontChanged (EventArgs e);
override [Link] : EventArgs -> unit

Parameters
e EventArgs EventArgs
A EventArgs that contains the event data.

Remarks
Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising
Events.
The OnFontChanged method also enables derived classes to handle the event without attaching a delegate. This is the
preferred technique for handling the event in a derived class.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
Created
I n this Article
Raises the HandleCreated event.

protected override void OnHandleCreated (EventArgs e);


override [Link] : EventArgs -> unit

Parameters
e EventArgs EventArgs
A EventArgs that contains the event data.

Remarks
Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising
Events.
The OnHandleCreated method also enables derived classes to handle the event without attaching a delegate. This is
the preferred technique for handling the event in a derived class.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
SelectedIndexChanged
I n this Article
Raises the SelectedIndexChanged event.

protected override void OnSelectedIndexChanged (EventArgs e);


override [Link] : EventArgs -> unit

Parameters
e EventArgs EventArgs
A EventArgs that contains the event data.

Remarks
Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising
Events.
The OnSelectedIndexChanged method also enables derived classes to handle the event without attaching a delegate.
This is the preferred technique for handling the event in a derived class.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Gets or sets the current path in a DirListBox control.
[[Link](false)]
public string Path { get; set; }
member [Link] : string with get, set

Returns
String String
A String that represents the path of the currently selected directory. The default is the current path when the control
is created at run time.
Attributes BrowsableAttribute

Remarks
Use this property when you are building an application's file-browsing and manipulation capabilities. When you set the
Path property, the effects are similar to the effects of the MS -DOS chdir command; relative paths are enabled with
or without a drive specification. If you specify only a drive with a colon (:),the current directory on that drive is selected.
The Path property can also be set to a qualified network path without a drive connection using the following syntax:

\\servername\sharename\path

Changing the value of Path for a DirListBox control generates an Change event.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Forces the control to invalidate its client area and immediately redraw itself.
public override void Refresh ();
override [Link] : unit -> unit

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Gets or sets the method in which items are selected in a ListBox.
[[Link](false)]
public [Link] SelectionMode { get; set; }
member [Link] : [Link] with get, set

Returns
SelectionMode SelectionMode
One of the SelectionMode values. The default is One.
Attributes BrowsableAttribute

Remarks
This property should not be set for the DirListBox control; it is provided only because the DirListBox control inherits
from ListBox.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Gets a value that indicates whether the items in a DirListBox are sorted alphabetically.
[[Link](false)]
public bool Sorted { get; }
member [Link] : bool

Returns
Boolean Boolean
true if items in the control are sorted; otherwise, false . The default is false .
Attributes BrowsableAttribute

Remarks
For the DirListBox control, Sorted always returns false.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Gets or sets the property to use as the actual value for the items in a ListControl.
[[Link](false)]
public string ValueMember { get; set; }
member [Link] : string with get, set

Returns
String String
A String that represents the name of an object property that is contained in the collection specified by the
DataSource property. The default is an empty string ("").
Attributes BrowsableAttribute

Remarks
This property should not be set for the DirListBox control; it is provided only because the DirListBox control inherits
from ListBox.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
DirListBoxArray DirListBoxArray Class
Provides a control array of DirListBox controls.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class DirListBoxArray : [Link],
[Link]
type DirListBoxArray = class
inherit BaseControlArray
interface IExtenderProvider

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component
BaseControlArray BaseControlArray

Remarks
The DirListBoxArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0 DirListBox
array. It does not provide the design-time features of a Visual Basic 6.0 control array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
DirListBoxArray()
DirListBoxArray()

Initializes a new instance of the DirListBoxArray class.

DirListBoxArray(IContainer)
DirListBoxArray(IContainer)

Initializes a new instance of the DirListBoxArray class, specifying its container.

Properties
Item[Int16]
Item[Int16]

Gets a specific element of a DirListBoxArray by index. Read-only.


Methods
CanExtend(Object)
CanExtend(Object)

Gets a value that determines whether a control is a member of a DirListBoxArray.

GetControlInstanceType()
GetControlInstanceType()

Overrides GetControlInstanceType().

GetIndex(DirListBox)
GetIndex(DirListBox)

Gets the index of a DirListBox in a DirListBoxArray.

HookUpControlEvents(Object)
HookUpControlEvents(Object)

Overrides HookUpControlEvents(Object).

ResetIndex(DirListBox)
ResetIndex(DirListBox)

The ResetIndex method is not supported in the DirListBoxArray class.

SetIndex(DirListBox, Int16)
SetIndex(DirListBox, Int16)

Sets the index of the initial DirListBox in a DirListBoxArray.

ShouldSerializeIndex(DirListBox)
ShouldSerializeIndex(DirListBox)

Returns a value that indicates whether a DirListBox is a member of this DirListBoxArray.

Events
BackColorChanged
BackColorChanged

Occurs when the value of the BackColor property changes.

BindingContextChanged
BindingContextChanged

Occurs when the value of the BindingContext property changes.

CausesValidationChanged
CausesValidationChanged

Occurs when the value of the CausesValidation property changes.

Change
Change

Occurs when the contents of a DirListBox control has changed.

ChangeUICues
ChangeUICues

Occurs when the focus or keyboard user interface (UI) cues change.

ContextMenuChanged
ContextMenuChanged

Occurs when the value of the ContextMenu property changes.

CursorChanged
CursorChanged

Occurs when the value of the Cursor property changes.

DataSourceChanged
DataSourceChanged

Occurs when the value of the DataSource property changes.

DisplayMemberChanged
DisplayMemberChanged

Occurs when the value of the DisplayMember property changes.

DockChanged
DockChanged

Occurs when the value of the Dock property changes.


DoubleClick
DoubleClick

Occurs when a DirListBox control in a DirListBoxArray is double-clicked.

DragDrop
DragDrop

Occurs when a drag-and-drop operation is completed.

DragEnter
DragEnter

Occurs when an object is dragged into the control's bounds.

DragLeave
DragLeave

Occurs when an object is dragged out of the control's bounds.

DragOver
DragOver

Occurs when an object is dragged over the control's bounds.

DrawItem
DrawItem

Occurs when a visual aspect of an owner-drawn DirListBox changes.

EnabledChanged
EnabledChanged

Occurs when the value of the Enabled property changes

Enter
Enter

Occurs when the control is entered.

FontChanged
FontChanged

Occurs when the value of the Font property changes.


ForeColorChanged
ForeColorChanged

Occurs when the value of the ForeColor property changes.

GiveFeedback
GiveFeedback

Occurs during a drag operation.

HelpRequested
HelpRequested

Occurs when the user requests help for a control.

ImeModeChanged
ImeModeChanged

Occurs when the value of the ImeMode property changes.

KeyDown
KeyDown

Occurs when a key is pressed and the control has focus.

KeyPress
KeyPress

Occurs when a key is pressed and the control has focus.

KeyUp
KeyUp

Occurs when a key is released and the control has focus.

Layout
Layout

Occurs when a control should reposition its child controls.

Leave
Leave

Occurs when the input focus leaves the control.


LocationChanged
LocationChanged

Occurs when the value of the Location property changes.

MeasureItem
MeasureItem

Occurs each time an owner-drawn DirListBox item needs to be drawn and when the sizes of the list items are
determined.

MouseDown
MouseDown

Occurs when the mouse pointer is over the control and a mouse button is pressed.

MouseEnter
MouseEnter

Occurs when the mouse pointer enters the control.

MouseHover
MouseHover

Occurs when the mouse pointer rests on the control.

MouseLeave
MouseLeave

Occurs when the mouse pointer leaves the control.

MouseMove
MouseMove

Occurs when the mouse pointer is moved over the control.

MouseUp
MouseUp

Occurs when the mouse pointer is over the control and a mouse button is released.

Move
Move

Occurs when the control is moved.


ParentChanged
ParentChanged

Occurs when the control's Parent property changes.

QueryAccessibilityHelp
QueryAccessibilityHelp

Occurs when an AccessibleObject is providing Help to accessibility applications.

QueryContinueDrag
QueryContinueDrag

Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.

Resize
Resize

Occurs when the control is resized.

RightToLeftChanged
RightToLeftChanged

Occurs when the RightToLeftChanged property value changes.

SelectedIndexChanged
SelectedIndexChanged

Occurs when the SelectedIndex property has changed.

SelectedValueChanged
SelectedValueChanged

Occurs when the SelectedValue property has changed.

SizeChanged
SizeChanged

Occurs when the Size property value changes.

StyleChanged
StyleChanged

Occurs when the control style changes.


SystemColorsChanged
SystemColorsChanged

Occurs when the system colors change.

TabIndexChanged
TabIndexChanged

Occurs when the TabIndex property value changes.

TabStopChanged
TabStopChanged

Occurs when the TabStop property value changes.

Validated
Validated

Occurs when the control is finished validating.

Validating
Validating

Occurs when the control is validating.

ValueMemberChanged
ValueMemberChanged

Occurs when the ValueMember property changes.

VisibleChanged
VisibleChanged

Occurs when the Visible property value changes.


[Link] [Link]
ColorChanged
I n this Article
Occurs when the value of the BackColor property changes.

public event EventHandler BackColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BackColor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DirListBoxArray.
BindingContextChanged
I n this Article
Occurs when the value of the BindingContext property changes.

public event EventHandler BindingContextChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BindingContext property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets a value that determines whether a control is a member of a DirListBoxArray.
public bool CanExtend (object target);
abstract member CanExtend : obj -> bool
override [Link] : obj -> bool

Parameters
target Object Object
A DirListBox control.
Returns
Boolean Boolean
true if target is a member of the control array; otherwise false .

Remarks
The CanExtend method can be used to determine whether a specific DirListBox control is the base element of the
control array from which the other elements were cloned.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DirListBox
[Link]
I n this Article
Occurs when the value of the CausesValidation property changes.

public event EventHandler CausesValidationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the CausesValidation property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the contents of a DirListBox control has changed.
public event EventHandler Change;
member [Link] : EventHandler

Remarks
The Change event occurs when the selection in a DirListBox control changes, either when the user double-clicks a new
directory or when you change the Path property setting through code.
For more information about handling events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Cues
I n this Article
Occurs when the focus or keyboard user interface (UI) cues change.

public event [Link] ChangeUICues;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DirListBoxArray.
ContextMenuChanged
I n this Article
Occurs when the value of the ContextMenu property changes.

public event EventHandler ContextMenuChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ContextMenu property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Cursor property changes.

public event EventHandler CursorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Cursor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DirListBoxArray.
DataSourceChanged
I n this Article
Occurs when the value of the DataSource property changes.

public event EventHandler DataSourceChanged;


member [Link] : EventHandler

Remarks
This event is raised if the DataSource property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
DirListBoxArray DirListBoxArray
I n this Article

Overloads
DirListBoxArray()
Initializes a new instance of the DirListBoxArray class.

DirListBoxArray(IContainer) DirListBoxArray(IContainer)
Initializes a new instance of the DirListBoxArray class,
specifying its container.

DirListBoxArray()
Initializes a new instance of the DirListBoxArray class.
public DirListBoxArray ();

Remarks
When you instantiate a DirListBoxArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

DirListBoxArray(IContainer) DirListBoxArray(IContainer)
Initializes a new instance of the DirListBoxArray class, specifying its container.

public DirListBoxArray ([Link] Container);


new [Link] : [Link] ->
[Link]

Parameters
Container IContainer IContainer
The IContainer where the control array will be hosted.
Remarks
When you instantiate a DirListBoxArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DirListBoxArray.
DisplayMemberChanged
I n this Article
Occurs when the value of the DisplayMember property changes.

public event EventHandler DisplayMemberChanged;


member [Link] : EventHandler

Remarks
This event is raised if the DisplayMember property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Dock property changes.

public event EventHandler DockChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Dock property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a DirListBox control in a DirListBoxArray is double-clicked.
public event EventHandler DoubleClick;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a drag-and-drop operation is completed.
public event [Link] DragDrop;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged into the control's bounds.
public event [Link] DragEnter;
member [Link] : [Link]

Remarks
The DragEnter event is raised when the user first drags the mouse cursor over the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged out of the control's bounds.
public event EventHandler DragLeave;
member [Link] : EventHandler

Remarks
The DragLeave event is raised when the user drags the cursor out of the control or the user cancels the current drag-
and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged over the control's bounds.
public event [Link] DragOver;
member [Link] : [Link]

Remarks
The DragOver event is raised when the mouse cursor moves within the bounds of the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a visual aspect of an owner-drawn DirListBox changes.
public event [Link] DrawItem;
member [Link] : [Link]

Remarks
This event is used by an owner-drawn DirListBox.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DirListBoxArray.
EnabledChanged
I n this Article
Occurs when the value of the Enabled property changes

public event EventHandler EnabledChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Enabled property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is entered.
public event EventHandler Enter;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), or by calling the Select or
SelectNextControl method, focus events occur in the following order:
Enter

GotFocus
Leave
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter

GotFocus
LostFocus
Leave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Font property changes.

public event EventHandler FontChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Font property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ColorChanged
I n this Article
Occurs when the value of the ForeColor property changes.

public event EventHandler ForeColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ForeColor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DirListBoxArray.
GetControlInstanceType
I n this Article
Overrides GetControlInstanceType().

protected override Type GetControlInstanceType ();


override [Link] : unit -> Type

Returns
Type Type
The type of a control in a control array.

Remarks
This method cannot be called from your application's code. Use the GetType method instead.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the index of a DirListBox in a DirListBoxArray.
public short GetIndex ([Link] o);
member [Link] : [Link] -> int16

Parameters
o DirListBox DirListBox
A DirListBox in the control array.
Returns
Int16 Int16
A Short that represents the index of the specified DirListBox.

Remarks
This method can be used to retrieve the index for the selected DirListBox.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Feedback
I n this Article
Occurs during a drag operation.

public event [Link] GiveFeedback;


member [Link] : [Link]

Remarks
The GiveFeedback event is raised when a drag-and-drop operation is started. By using the GiveFeedback event, the
source of a drag event can modify the appearance of the mouse pointer in order to give the user visual feedback during
a drag-and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Requested
I n this Article
Occurs when the user requests help for a control.

public event [Link] HelpRequested;


member [Link] : [Link]

Remarks
The HelpRequested event is typically raised when the user presses the F1 key or an associated context-sensitive Help
button is clicked.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DirListBoxArray.
HookUpControlEvents
I n this Article
Overrides HookUpControlEvents(Object).

protected override void HookUpControlEvents (object o);


override [Link] : obj -> unit

Parameters
o Object Object
An Object.

Remarks
This method cannot be called from your application's code. Use AddHandler to hook up events for any controls that
are added by using the Load method.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ModeChanged
I n this Article
Occurs when the value of the ImeMode property changes.

public event EventHandler ImeModeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ImeMode property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link][Int16] [Link][Int16]
I n this Article
Gets a specific element of a DirListBoxArray by index. Read-only.
public [Link] this[short Index] { get; }
member [Link](int16) : [Link]

Parameters
Index Int16 Int16
A Short that specifies the position of an element of the control array.
Returns
DirListBox DirListBox
A DirListBox at the specified Index in the control array.

Remarks
The Item property is the default property for a control array. Therefore, the following lines of code are equivalent.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is pressed and the control has focus.
public event [Link] KeyDown;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown

KeyPress
KeyUp
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is pressed and the control has focus.
public event [Link] KeyPress;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress

KeyUp
The KeyPress event is not raised by non-character keys; however, the non-character keys do raise the KeyDown and
KeyUp events.
Use the KeyChar property to sample keystrokes at run time and to consume or modify a subset of common keystrokes.
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is released and the control has focus.
public event [Link] KeyUp;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress
KeyUp

To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a control should reposition its child controls.
public event [Link] Layout;
member [Link] : [Link]

Remarks
The Layout event occurs when child controls are added or removed, when the bounds of the control changes, and
when other changes occur that can affect the layout of the control. The layout event can be suppressed by using the
SuspendLayout and ResumeLayout methods. Suspending layout enables you to perform multiple actions on a control
without having to perform a layout for each change. For example, if you resize and move a control, each operation
would raise a Layout event.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the input focus leaves the control.
public event EventHandler Leave;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), or by calling the Select or
SelectNextControl method, focus events occur in the following order:
Enter
GotFocus
Leave

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DirListBoxArray.
LocationChanged
I n this Article
Occurs when the value of the Location property changes.

public event EventHandler LocationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Location property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Item
I n this Article
Occurs each time an owner-drawn DirListBox item needs to be drawn and when the sizes of the list items are
determined.
public event [Link] MeasureItem;
member [Link] : [Link]

Remarks
You can create an event handler for this event to specify the size an item is made before it is drawn in the DrawItem
event.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Down
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is pressed.

public event [Link] MouseDown;


member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover
MouseDown

MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer enters the control.
public event EventHandler MouseEnter;
member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter

MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Hover
I n this Article
Occurs when the mouse pointer rests on the control.

public event EventHandler MouseHover;


member [Link] : EventHandler

Remarks
A typical use of MouseHover is to display a tool tip when the mouse pauses on a control within a specified area around
the control (the "hover rectangle"). The pause required for this event to be raised is specified in milliseconds by the
MouseHoverTime property.
The MouseHover event is defined and detected in connection with the MouseHoverSize and MouseHoverTime
properties.
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover

MouseDown MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Leave
I n this Article
Occurs when the mouse pointer leaves the control.

public event EventHandler MouseLeave;


member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is moved over the control.
public event [Link] MouseMove;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove

MouseHover / MouseDown / MouseWheel


MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is released.
public event [Link] MouseUp;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp

MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is moved.
public event EventHandler Move;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control's Parent property changes.

public event EventHandler ParentChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Parent property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DirListBoxArray.
QueryAccessibilityHelp
I n this Article
Occurs when an AccessibleObject is providing Help to accessibility applications.

public event [Link] QueryAccessibilityHelp;


member [Link] : [Link]

Remarks
You should use the HelpProvider class to enable users to invoke Help on your accessible object by pressing the F1 key.
The HelpProvider gives you complete information in the QueryAccessibilityHelpEventArgs.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DirListBoxArray.
QueryContinueDrag
I n this Article
Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.
public event [Link] QueryContinueDrag;
member [Link] : [Link]

Remarks
The QueryContinueDrag event is raised when there is a change in the keyboard or mouse button state during a drag-
and-drop operation. The QueryContinueDrag event enables the drag source to determine whether the drag-and-drop
operation should be canceled.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
The ResetIndex method is not supported in the DirListBoxArray class.

public void ResetIndex ([Link] o);


member [Link] : [Link] -> unit

Parameters
o DirListBox DirListBox
A Control.

Remarks
This method is not supported, and calling it does not raise an exception.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is resized.
public event EventHandler Resize;
member [Link] : EventHandler

Remarks
To determine the Size of the resized control, you can cast the sender parameter of the EventArgs data to a Control and
get its Size property (or Height and Width properties individually).
To handle custom layouts, use the Layout event instead of the Resize event. The Layout event is raised in response to
a Resize event, but also in response to other changes that affect the layout of the control.

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DirListBoxArray.
RightToLeftChanged
I n this Article
Occurs when the RightToLeftChanged property value changes.

public event EventHandler RightToLeftChanged;


member [Link] : EventHandler

Remarks
This event is raised if the RightToLeft property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DirListBoxArray.
SelectedIndexChanged
I n this Article
Occurs when the SelectedIndex property has changed.

public event EventHandler SelectedIndexChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SelectedIndex property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DirListBoxArray.
SelectedValueChanged
I n this Article
Occurs when the SelectedValue property has changed.

public event EventHandler SelectedValueChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SelectedValue property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Sets the index of the initial DirListBox in a DirListBoxArray.
public void SetIndex ([Link] o, short Index);
member [Link] : [Link] * int16 -> unit

Parameters
o DirListBox DirListBox
A DirListBox in the control array.
Index Int16 Int16
A Short that represents the index of the specified DirListBox.

Remarks
The SetIndex method should only be called when you are creating the initial element in the control array. To add
subsequent elements, call the Load method and specify the Index .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DirListBoxArray.
ShouldSerializeIndex
I n this Article
Returns a value that indicates whether a DirListBox is a member of this DirListBoxArray.

public bool ShouldSerializeIndex ([Link] o);


member [Link] : [Link] -> bool

Parameters
o DirListBox DirListBox
A DirListBox in the control array.
Returns
Boolean Boolean
true if o is a member of this control array; otherwise, false .

Remarks
If the specified DirListBox is a member of a different DirListBoxArray, ShouldSerializeIndex returns false .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Size property value changes.

public event EventHandler SizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Size property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control style changes.

public event EventHandler StyleChanged;


member [Link] : EventHandler

Remarks
The StyleChanged event occurs when ControlStyles flags have been added or changed.
This event is raised if the control style is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DirListBoxArray.
SystemColorsChanged
I n this Article
Occurs when the system colors change.

public event EventHandler SystemColorsChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SystemColors is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
IndexChanged
I n this Article
Occurs when the TabIndex property value changes.

public event EventHandler TabIndexChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabIndex property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
StopChanged
I n this Article
Occurs when the TabStop property value changes.

public event EventHandler TabStopChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabStop property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is finished validating.
public event EventHandler Validated;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated

If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is validating.
public event [Link] Validating;
member [Link] : [Link]

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated
If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DirListBoxArray.
ValueMemberChanged
I n this Article
Occurs when the ValueMember property changes.

public event EventHandler ValueMemberChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ValueMember property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Visible property value changes.

public event EventHandler VisibleChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Visible property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
DriveListBox DriveListBox Class
Enables a user to select a valid disk drive at run time.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class DriveListBox : [Link]
type DriveListBox = class
inherit ComboBox

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component
Control Control
ListControl ListControl
ComboBox ComboBox

Remarks
Use this control to display a list of all the valid drives in a user's system. You can create dialog boxes that enable the
user to open a file from a list of files on a disk in any available drive.
If you also display the DirListBox and FileListBox controls, you can write code to synchronize them with the
DriveListBox control and with each other.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
DriveListBox()
DriveListBox()

Initializes a new instance of the DriveListBox class.

Properties
DataSource
DataSource

Gets or sets the data source for a ComboBox.

DisplayMember
DisplayMember
Gets or sets the property to display for this ListControl.

DrawMode
DrawMode

Gets or sets the drawing mode for a ComboBox.

Drive
Drive

Gets or sets the selected drive at run time.

DropDownStyle
DropDownStyle

Gets or sets a value that specifies the style of a DriveListBox combo box.

ItemHeight
ItemHeight

Gets the height of an item in the ComboBox.

Items
Items

Gets the items that are contained in a DriveListBox.

Items[Int32]
Items[Int32]

Gets the item for a specified index in a DriveListBox.

MaxLength
MaxLength

Gets or sets a value that specifies the maximum length of text displayed in a DriveListBox.

Sorted
Sorted

Gets a value indicating whether the items in a DriveListBox is sorted alphabetically.

Text
Text

Gets the text displayed in a DriveListBox.

ValueMember
ValueMember

Gets or sets the property to use as the actual value for the items in a DriveListBox.

Methods
Dispose(Boolean)
Dispose(Boolean)

Releases the unmanaged resources that are used by a DriveListBox control and optionally releases the managed
resources.

OnBackColorChanged(EventArgs)
OnBackColorChanged(EventArgs)

Raises the BackColorChanged event.

OnDrawItem(DrawItemEventArgs)
OnDrawItem(DrawItemEventArgs)

Raise the DrawItem event.

OnFontChanged(EventArgs)
OnFontChanged(EventArgs)

Raises the FontChanged event.

OnHandleCreated(EventArgs)
OnHandleCreated(EventArgs)

Raises the HandleCreated event.

OnSelectedIndexChanged(EventArgs)
OnSelectedIndexChanged(EventArgs)

Raises the SelectedIndexChanged event.

Refresh()
Refresh()

Forces the control to invalidate its client area and immediately redraw itself.
WndProc(Message)
WndProc(Message)

Processes Windows messages.

See Also
[Link] [Link]
I n this Article
Gets or sets the data source for a ComboBox.
[[Link](false)]
public object DataSource { get; set; }
member [Link] : obj with get, set

Returns
Object Object
An object that implements the IList or IListSource interfaces, such as a DataSet or a Array. The default is null .
Attributes BrowsableAttribute

Remarks
This property should not be set for the DriveListBox control; it is provided only because the DriveListBox control
inherits from ComboBox.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
Member
I n this Article
Gets or sets the property to display for this ListControl.

[[Link](false)]
public string DisplayMember { get; set; }
member [Link] : string with get, set

Returns
String String
A String that represents the name of an object property and is contained in the collection specified by the DataSource
property. The default is an empty string ("").
Attributes BrowsableAttribute

Remarks
This property should not be set for the DriveListBox control; it is provided only because the DriveListBox control
inherits from ComboBox.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Releases the unmanaged resources that are used by a DriveListBox control and optionally releases the managed
resources.

protected override void Dispose (bool disposing);


override [Link] : bool -> unit

Parameters
disposing Boolean Boolean
true to release both managed and unmanaged resources; false to release only unmanaged resources.

Remarks
This method is called by the public Dispose() method and the Finalize method. Dispose() invokes the protected
Dispose(Boolean) method with the disposing parameter set to true . Finalize invokes Dispose with the disposing
parameter set to false .
When the disposing parameter is true , this method releases all resources held by any managed objects that this
control references. This method invokes the Dispose() method of each referenced object.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Gets or sets the drawing mode for a ComboBox.
[[Link](false)]
public [Link] DrawMode { get; }
member [Link] : [Link]

Returns
DrawMode DrawMode
One of the DrawMode values that represent the mode for drawing the items of the control. The default is Normal.
Attributes BrowsableAttribute

Remarks
This property should not be set for the DriveListBox control; it is provided only because the DriveListBox control
inherits from ComboBox.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Gets or sets the selected drive at run time.
[[Link](false)]
public string Drive { get; set; }
member [Link] : string with get, set

Returns
String String
A String expression that specifies the selected drive.
Attributes BrowsableAttribute

Remarks
The valid drives for the Drive property include all drives present in or connected to the system when the control is
created or refreshed at run time. The default setting of the Drive property is the current drive.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
DriveListBox
I n this Article
Initializes a new instance of the DriveListBox class.
public DriveListBox ();

Remarks
A DriveListBox control enables a user to select a valid disk drive at run time.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
Style
I n this Article
Gets or sets a value that specifies the style of a DriveListBox combo box.

[[Link](false)]
public [Link] DropDownStyle { get; set; }
member [Link] : [Link] with get, set

Returns
ComboBoxStyle ComboBoxStyle
One of the ComboBoxStyle values. The default is DropDown.
Attributes BrowsableAttribute

Remarks
The DropDownStyle property controls the interface that is presented to the user. You can enter a value that provides a
simple drop-down list box, where the list always appears, a drop-down list box, where the text portion is not editable
and you must select an arrow to view the drop-down, or the default drop-down list box, where the text portion is
editable and the user must press the arrow key to view the list. To always display a list that the user cannot edit, use a
ListBox control.
If you set the DropDownStyle property to DropDownList, you can select only valid values from the list. If you set the
DropDownStyle property to DropDown, you can type any value in the editable area of the DriveListBox.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Gets the height of an item in the ComboBox.
[[Link](false)]
public int ItemHeight { get; }
member [Link] : int

Returns
Int32 Int32
The height, in pixels, of an item in the control.
Attributes BrowsableAttribute

Remarks
This property is not required for the DriveListBox control; the DriveListBox does not support items of variable height. It
is provided only because the DriveListBox control inherits from ListBox.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link][Int32] [Link][Int32]
I n this Article

Overloads
Items Items
Gets the items that are contained in a DriveListBox.

Items[Int32] Items[Int32]
Gets the item for a specified index in a DriveListBox.

Items Items
Gets the items that are contained in a DriveListBox.
[[Link](false)]
public [Link] Items { get; }
member [Link] : [Link]

Returns
[Link] [Link]
A [Link] that represents the items in the DirListBox.
Attributes BrowsableAttribute
Remarks
Use this property to retrieve a list of drives that are currently displayed in a DriveListBox.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)

Items[Int32] Items[Int32]
Gets the item for a specified index in a DriveListBox.
[[Link](false)]
public string Items[int Index] { get; }
member [Link](int) : string

Parameters
Index Int32 Int32
The number of a specific item in the list.
Returns
String String
A String that contains the name of the drive at the specified Index .
Attributes BrowsableAttribute
Remarks
Use this property to retrieve the name of a drive in a DriveListBox.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Gets or sets a value that specifies the maximum length of text displayed in a DriveListBox.
[[Link](false)]
public int MaxLength { get; set; }
member [Link] : int with get, set

Returns
Int32 Int32
An Integer that specifies the maximum length for the Drive property.
Attributes BrowsableAttribute

Remarks
Use this property to limit the length of text that a user can enter into the DriveListBox.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
ColorChanged
I n this Article
Raises the BackColorChanged event.

protected override void OnBackColorChanged (EventArgs e);


override [Link] : EventArgs -> unit

Parameters
e EventArgs EventArgs
A EventArgs that contains the event data.

Remarks
Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising
Events.
The OnBackColorChanged method also enables derived classes to handle the event without attaching a delegate. This is
the preferred technique for handling the event in a derived class.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Raise the DrawItem event.
protected override void OnDrawItem ([Link] e);
override [Link] : [Link] -> unit

Parameters
e DrawItemEventArgs DrawItemEventArgs
A EventArgs that contains the event data.

Remarks
Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising
Events.
The OnDrawItem method also enables derived classes to handle the event without attaching a delegate. This is the
preferred technique for handling the event in a derived class.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
Changed
I n this Article
Raises the FontChanged event.

protected override void OnFontChanged (EventArgs e);


override [Link] : EventArgs -> unit

Parameters
e EventArgs EventArgs
A EventArgs that contains the event data.

Remarks
Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising
Events.
The OnFontChanged method also enables derived classes to handle the event without attaching a delegate. This is the
preferred technique for handling the event in a derived class.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
Created
I n this Article
Raises the HandleCreated event.

protected override void OnHandleCreated (EventArgs e);


override [Link] : EventArgs -> unit

Parameters
e EventArgs EventArgs
A EventArgs that contains the event data.

Remarks
Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising
Events.
The OnHandleCreated method also enables derived classes to handle the event without attaching a delegate. This is
the preferred technique for handling the event in a derived class.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
SelectedIndexChanged
I n this Article
Raises the SelectedIndexChanged event.

protected override void OnSelectedIndexChanged (EventArgs e);


override [Link] : EventArgs -> unit

Parameters
e EventArgs EventArgs
A EventArgs that contains the event data.

Remarks
Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising
Events.
The OnSelectedIndexChanged method also enables derived classes to handle the event without attaching a delegate.
This is the preferred technique for handling the event in a derived class.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Forces the control to invalidate its client area and immediately redraw itself.
public override void Refresh ();
override [Link] : unit -> unit

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Gets a value indicating whether the items in a DriveListBox is sorted alphabetically.
[[Link](false)]
public bool Sorted { get; }
member [Link] : bool

Returns
Boolean Boolean
true if items in the control are sorted; otherwise, false . The default is false .
Attributes BrowsableAttribute

Remarks
For the DriveListBox control, Sorted always returns false .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Gets the text displayed in a DriveListBox.
[[Link](false)]
public string Text { get; }
member [Link] : string

Returns
String String
A String that contains the text that is displayed.
Attributes BrowsableAttribute

Remarks
If the Text is a valid drive, the value of the Text property is the same e as the Drive property.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Gets or sets the property to use as the actual value for the items in a DriveListBox.
[[Link](false)]
public string ValueMember { get; set; }
member [Link] : string with get, set

Returns
String String
A String that represents the name of an object property and is contained in the collection specified by the DataSource
property. The default is an empty string ("").
Attributes BrowsableAttribute

Remarks
This property should not be set for the DriveListBox control; it is provided only because the DriveListBox control
inherits from ComboBox.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Processes Windows messages.
protected override void WndProc (ref [Link] m);
override [Link] : -> unit

Parameters
m Message Message
The Windows Message to process.

Remarks
All messages are sent to the WndProc method after being filtered through the PreProcessMessage method.
The WndProc method corresponds exactly to the Windows WindowProc function. For more information about
processing Windows messages, see the WindowProc function documentation in the Windows Platform SDK reference
located on the MSDN Library Web site.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
DriveListBoxArray DriveListBoxArray Class
Provides a control array of DriveListBox controls.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class DriveListBoxArray : [Link],
[Link]
type DriveListBoxArray = class
inherit BaseControlArray
interface IExtenderProvider

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component
BaseControlArray BaseControlArray

Remarks
The DriveListBoxArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0 DriveListBox
array. It does not provide the design-time features of a Visual Basic 6.0 control array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
DriveListBoxArray()
DriveListBoxArray()

Initializes a new instance of the DriveListBoxArray class.

DriveListBoxArray(IContainer)
DriveListBoxArray(IContainer)

Initializes a new instance of the DriveListBoxArray class, specifying its container.

Properties
Item[Int16]
Item[Int16]

Gets a specific element of a DriveListBoxArray by index. Read-only.


Methods
CanExtend(Object)
CanExtend(Object)

Gets a value that determines whether a control is a member of a DriveListBoxArray.

GetControlInstanceType()
GetControlInstanceType()

Overrides GetControlInstanceType().

GetIndex(DriveListBox)
GetIndex(DriveListBox)

Gets the index of a DriveListBox in a DriveListBoxArray.

HookUpControlEvents(Object)
HookUpControlEvents(Object)

Overrides HookUpControlEvents(Object).

ResetIndex(DriveListBox)
ResetIndex(DriveListBox)

The ResetIndex method is not supported in the DriveListBoxArray class.

SetIndex(DriveListBox, Int16)
SetIndex(DriveListBox, Int16)

Sets the index of the initial DriveListBox in a DriveListBoxArray.

ShouldSerializeIndex(DriveListBox)
ShouldSerializeIndex(DriveListBox)

Returns a value that indicates whether a DriveListBox is a member of this DriveListBoxArray.

Events
BackColorChanged
BackColorChanged

Occurs when the value of the BackColor property changes.

BindingContextChanged
BindingContextChanged

Occurs when the value of the BindingContext property changes.

CausesValidationChanged
CausesValidationChanged

Occurs when the value of the CausesValidation property changes.

ChangeUICues
ChangeUICues

Occurs when the focus or keyboard user interface (UI) cues change.

Click
Click

Occurs when a DriveListBox in a DriveListBoxArray is clicked.

ContextMenuChanged
ContextMenuChanged

Occurs when the value of the ContextMenu property changes.

CursorChanged
CursorChanged

Occurs when the value of the Cursor property changes.

DataSourceChanged
DataSourceChanged

Occurs when the value of the DataSource property changes.

DisplayMemberChanged
DisplayMemberChanged

Occurs when the value of the DisplayMember property changes.

DockChanged
DockChanged

Occurs when the value of the Dock property changes.


DoubleClick
DoubleClick

Occurs when a DriveListBox control in a DriveListBoxArray is double-clicked.

DragDrop
DragDrop

Occurs when a drag-and-drop operation is completed.

DragEnter
DragEnter

Occurs when an object is dragged into the control's bounds.

DragLeave
DragLeave

Occurs when an object is dragged out of the control's bounds.

DragOver
DragOver

Occurs when an object is dragged over the control's bounds.

DrawItem
DrawItem

Occurs when a visual aspect of an owner-drawn DriveListBox changes.

DropDown
DropDown

Occurs when the drop-down portion of a DriveListBox is shown.

DropDownStyleChanged
DropDownStyleChanged

Occurs when the value of the DropDownStyle property changes.

EnabledChanged
EnabledChanged

Occurs when the value of the Enabled property changes.


Enter
Enter

Occurs when the control is entered.

FontChanged
FontChanged

Occurs when the value of the Font property changes.

ForeColorChanged
ForeColorChanged

Occurs when the value of the ForeColor property changes.

GiveFeedback
GiveFeedback

Occurs during a drag operation.

HelpRequested
HelpRequested

Occurs when the user requests help for a control.

ImeModeChanged
ImeModeChanged

Occurs when the value of the ImeMode property changes.

KeyDown
KeyDown

Occurs when a key is pressed and the control has focus.

KeyPress
KeyPress

Occurs when a key is pressed and the control has focus.

KeyUp
KeyUp

Occurs when a key is released and the control has focus.


Layout
Layout

Occurs when a control should reposition its child controls.

Leave
Leave

Occurs when the input focus leaves the control.

LocationChanged
LocationChanged

Occurs when the value of the Location property changes.

MeasureItem
MeasureItem

Occurs each time an owner-drawn DriveListBox item needs to be drawn and when the sizes of the list items are
determined.

MouseDown
MouseDown

Occurs when the mouse pointer is over the control and a mouse button is pressed.

MouseEnter
MouseEnter

Occurs when the mouse pointer enters the control.

MouseHover
MouseHover

Occurs when the mouse pointer rests on the control.

MouseLeave
MouseLeave

Occurs when the mouse pointer leaves the control.

MouseMove
MouseMove

Occurs when the mouse pointer is moved over the control.


MouseUp
MouseUp

Occurs when the mouse pointer is over the control and a mouse button is released.

Move
Move

Occurs when the control is moved.

ParentChanged
ParentChanged

Occurs when the control's Parent property changes.

QueryAccessibilityHelp
QueryAccessibilityHelp

Occurs when an AccessibleObject is providing Help to accessibility applications.

QueryContinueDrag
QueryContinueDrag

Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.

Resize
Resize

Occurs when the control is resized.

RightToLeftChanged
RightToLeftChanged

Occurs when the RightToLeftChanged property value changes.

SelectedIndexChanged
SelectedIndexChanged

Occurs when the SelectedIndex property has changed.

SelectedValueChanged
SelectedValueChanged

Occurs when the SelectedValue property has changed.


SelectionChangeCommitted
SelectionChangeCommitted

Occurs when the selected item has changed and that change is displayed in the DriveListBox.

SizeChanged
SizeChanged

Occurs when the Size property value changes.

StyleChanged
StyleChanged

Occurs when the control style changes.

SystemColorsChanged
SystemColorsChanged

Occurs when the system colors change.

TabIndexChanged
TabIndexChanged

Occurs when the TabIndex property value changes.

TabStopChanged
TabStopChanged

Occurs when the TabStop property value changes.

TextChanged
TextChanged

Occurs when the Text property value changes.

Validated
Validated

Occurs when the control is finished validating.

Validating
Validating

Occurs when the control is validating.


ValueMemberChanged
ValueMemberChanged

Occurs when the ValueMember property changes.

VisibleChanged
VisibleChanged

Occurs when the Visible property value changes.


[Link] DriveListBoxArray.
BackColorChanged
I n this Article
Occurs when the value of the BackColor property changes.

public event EventHandler BackColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BackColor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DriveListBox
[Link]
I n this Article
Occurs when the value of the BindingContext property changes.

public event EventHandler BindingContextChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BindingContext property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Extend
I n this Article
Gets a value that determines whether a control is a member of a DriveListBoxArray.

public bool CanExtend (object target);


abstract member CanExtend : obj -> bool
override [Link] : obj -> bool

Parameters
target Object Object
A DriveListBox control.
Returns
Boolean Boolean
true if target is a member of the control array; otherwise, false .

Remarks
The CanExtend method can be used to determine whether a specific DriveListBox control is the base element of the
control array from which the other elements were cloned.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DriveListBox
[Link]
I n this Article
Occurs when the value of the CausesValidation property changes.

public event EventHandler CausesValidationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the CausesValidation property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DriveListBoxArray.
ChangeUICues
I n this Article
Occurs when the focus or keyboard user interface (UI) cues change.

public event [Link] ChangeUICues;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a DriveListBox in a DriveListBoxArray is clicked.
public event EventHandler Click;
member [Link] : EventHandler

Remarks
The Click event passes an EventArgs to its event handler. Therefore it only indicates that a click has occurred. If you
need more specific mouse information (button, number of clicks, wheel rotation, or location), use the MouseClick event.
However, the MouseClick event will not be raised if the click is caused by action other than that of the mouse, such as
pressing the ENTER key.
A double-click is determined by the mouse settings of the user's operating system. The user can set the time between
clicks of a mouse button that should be considered a double-click instead of two clicks. The Click event is raised every
time that a control is double-clicked. For example, if you have event handlers for the Click and DoubleClick events of
a control, the Click and DoubleClick events are raised when the control is double-clicked and both methods are
called. If a control is double-clicked and that control does not support the DoubleClick event, the Click event might be
raised two times.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DriveListBox
[Link]
I n this Article
Occurs when the value of the ContextMenu property changes.

public event EventHandler ContextMenuChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ContextMenu property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DriveListBoxArray.
CursorChanged
I n this Article
Occurs when the value of the Cursor property changes.

public event EventHandler CursorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Cursor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DriveListBox
[Link]
I n this Article
Occurs when the value of the DataSource property changes.

public event EventHandler DataSourceChanged;


member [Link] : EventHandler

Remarks
This event is raised if the DataSource property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DriveListBox
[Link]
I n this Article
Occurs when the value of the DisplayMember property changes.

public event EventHandler DisplayMemberChanged;


member [Link] : EventHandler

Remarks
This event is raised if the DisplayMember property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Dock property changes.

public event EventHandler DockChanged;


member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Click
I n this Article
Occurs when a DriveListBox control in a DriveListBoxArray is double-clicked.

public event EventHandler DoubleClick;


member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a drag-and-drop operation is completed.
public event [Link] DragDrop;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Enter
I n this Article
Occurs when an object is dragged into the control's bounds.

public event [Link] DragEnter;


member [Link] : [Link]

Remarks
The DragEnter event is raised when the user first drags the mouse cursor over the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Leave
I n this Article
Occurs when an object is dragged out of the control's bounds.

public event EventHandler DragLeave;


member [Link] : EventHandler

Remarks
The DragLeave event is raised when the user drags the cursor out of the control or the user cancels the current drag-
and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged over the control's bounds.
public event [Link] DragOver;
member [Link] : [Link]

Remarks
The DragOver event is raised when the mouse cursor moves within the bounds of the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a visual aspect of an owner-drawn DriveListBox changes.
public event [Link] DrawItem;
member [Link] : [Link]

Remarks
This event is used by an owner-drawn DriveListBox.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
DriveListBoxArray DriveListBoxArray
I n this Article

Overloads
DriveListBoxArray()
Initializes a new instance of the DriveListBoxArray class.

DriveListBoxArray(IContainer) DriveListBoxArray(IContainer)
Initializes a new instance of the DriveListBoxArray class,
specifying its container.

DriveListBoxArray()
Initializes a new instance of the DriveListBoxArray class.
public DriveListBoxArray ();

Remarks
When you instantiate a DriveListBoxArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

DriveListBoxArray(IContainer) DriveListBoxArray(IContainer)
Initializes a new instance of the DriveListBoxArray class, specifying its container.

public DriveListBoxArray ([Link] Container);


new [Link] : [Link] ->
[Link]

Parameters
Container IContainer IContainer
The IContainer where the control array will be hosted.
Remarks
When you instantiate a DriveListBoxArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Down
I n this Article
Occurs when the drop-down portion of a DriveListBox is shown.

public event EventHandler DropDown;


member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DriveListBox
[Link]
I n this Article
Occurs when the value of the DropDownStyle property changes.

public event EventHandler DropDownStyleChanged;


member [Link] : EventHandler

Remarks
This event is raised if the DropDownStyle property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DriveListBoxArray.
EnabledChanged
I n this Article
Occurs when the value of the Enabled property changes.

public event EventHandler EnabledChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Enabled property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is entered.
public event EventHandler Enter;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), or by calling the Select or
SelectNextControl method, focus events occur in the following order:
Enter

GotFocus
Leave
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter

GotFocus
LostFocus
Leave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Font property changes.

public event EventHandler FontChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Font property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DriveListBoxArray.
ForeColorChanged
I n this Article
Occurs when the value of the ForeColor property changes.

public event EventHandler ForeColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ForeColor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DriveListBox
[Link]
I n this Article
Overrides GetControlInstanceType().

protected override Type GetControlInstanceType ();


override [Link] : unit -> Type

Returns
Type Type
The type of a control in a control array.

Remarks
This method cannot be called from your application's code. Use the GetType method instead.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the index of a DriveListBox in a DriveListBoxArray.
public short GetIndex ([Link] o);
member [Link] : [Link] -> int16

Parameters
o DriveListBox DriveListBox
A DriveListBox in the control array.
Returns
Int16 Int16
A Short that represents the index of the specified DriveListBox.

Remarks
This method can be used to retrieve the index for the selected DriveListBox.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Feedback
I n this Article
Occurs during a drag operation.

public event [Link] GiveFeedback;


member [Link] : [Link]

Remarks
The GiveFeedback event is raised when a drag-and-drop operation is started. By using the GiveFeedback event, the
source of a drag event can modify the appearance of the mouse pointer in order to give the user visual feedback during
a drag-and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Requested
I n this Article
Occurs when the user requests help for a control.

public event [Link] HelpRequested;


member [Link] : [Link]

Remarks
The HelpRequested event is typically raised when the user presses the F1 key or an associated context-sensitive Help
button is clicked.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DriveListBox
[Link]
I n this Article
Overrides HookUpControlEvents(Object).

protected override void HookUpControlEvents (object o);


override [Link] : obj -> unit

Parameters
o Object Object
An Object.

Remarks
This method cannot be called from your application's code. Use AddHandler to hook up events for any controls that
are added by using the Load method.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DriveListBoxArray.
ImeModeChanged
I n this Article
Occurs when the value of the ImeMode property changes.

public event EventHandler ImeModeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ImeMode property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link][Int16] [Link][
Int16]
I n this Article
Gets a specific element of a DriveListBoxArray by index. Read-only.

public [Link] this[short Index] { get; }


member [Link](int16) : [Link]

Parameters
Index Int16 Int16
A Short that specifies the position of an element of the control array.
Returns
DriveListBox DriveListBox
A DriveListBox at the specified Index in the control array.

Remarks
The Item property is the default property for a control array. Therefore, the following lines of code are equivalent.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is pressed and the control has focus.
public event [Link] KeyDown;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown

KeyPress
KeyUp
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is pressed and the control has focus.
public event [Link] KeyPress;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress

KeyUp
The KeyPress event is not raised by non-character keys; however, the non-character keys do raise the KeyDown and
KeyUp events.
Use the KeyChar property to sample keystrokes at run time and to consume or modify a subset of common keystrokes.
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is released and the control has focus.
public event [Link] KeyUp;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress
KeyUp

To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a control should reposition its child controls.
public event [Link] Layout;
member [Link] : [Link]

Remarks
The Layout event occurs when child controls are added or removed, when the bounds of the control changes, and
when other changes occur that can affect the layout of the control. The layout event can be suppressed by using the
SuspendLayout and ResumeLayout methods. Suspending layout enables you to perform multiple actions on a control
without having to perform a layout for each change. For example, if you resize and move a control, each operation
would raise a Layout event.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the input focus leaves the control.
public event EventHandler Leave;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), or by calling the Select or
SelectNextControl method, focus events occur in the following order:
Enter
GotFocus
Leave

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DriveListBoxArray.
LocationChanged
I n this Article
Occurs when the value of the Location property changes.

public event EventHandler LocationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Location property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DriveListBoxArray.
MeasureItem
I n this Article
Occurs each time an owner-drawn DriveListBox item needs to be drawn and when the sizes of the list items are
determined.
public event [Link] MeasureItem;
member [Link] : [Link]

Remarks
You can create an event handler for this event to specify the size an item is made before it is drawn in the DrawItem
event.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Down
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is pressed.

public event [Link] MouseDown;


member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover
MouseDown

MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Enter
I n this Article
Occurs when the mouse pointer enters the control.

public event EventHandler MouseEnter;


member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter

MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Hover
I n this Article
Occurs when the mouse pointer rests on the control.

public event EventHandler MouseHover;


member [Link] : EventHandler

Remarks
A typical use of MouseHover is to display a tool tip when the mouse pauses on a control within a specified area around
the control (the "hover rectangle"). The pause required for this event to be raised is specified in milliseconds by the
MouseHoverTime property.
The MouseHover event is defined and detected in connection with the MouseHoverSize and MouseHoverTime
properties.
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover

MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Leave
I n this Article
Occurs when the mouse pointer leaves the control.

public event EventHandler MouseLeave;


member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Move
I n this Article
Occurs when the mouse pointer is moved over the control.

public event [Link] MouseMove;


member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove

MouseHover / MouseDown / MouseWheel


MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is released.
public event [Link] MouseUp;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp

MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is moved.
public event EventHandler Move;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DriveListBoxArray.
ParentChanged
I n this Article
Occurs when the control's Parent property changes.

public event EventHandler ParentChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Parent property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DriveListBox
[Link]
I n this Article
Occurs when an AccessibleObject is providing Help to accessibility applications.

public event [Link] QueryAccessibilityHelp;


member [Link] : [Link]

Remarks
You should use the HelpProvider class to enable users to invoke Help on your accessible object by pressing the F1 key.
The HelpProvider gives you complete information in the QueryAccessibilityHelpEventArgs.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DriveListBox
[Link]
I n this Article
Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.
public event [Link] QueryContinueDrag;
member [Link] : [Link]

Remarks
The QueryContinueDrag event is raised when there is a change in the keyboard or mouse button state during a drag-
and-drop operation. The QueryContinueDrag event enables the drag source to determine whether the drag-and-drop
operation should be canceled.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Index
I n this Article
The ResetIndex method is not supported in the DriveListBoxArray class.

public void ResetIndex ([Link] o);


member [Link] : [Link] -> unit

Parameters
o DriveListBox DriveListBox
A Control.

Remarks
This method is not supported, and calling it does not raise an exception.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is resized.
public event EventHandler Resize;
member [Link] : EventHandler

Remarks
To determine the Size of the resized control, you can cast the sender parameter of the EventArgs data to a Control and
get its Size property (or Height and Width properties individually).
To handle custom layouts, use the Layout event instead of the Resize event. The Layout event is raised in response to
a Resize event, but also in response to other changes that affect the layout of the control.

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DriveListBox
[Link]
I n this Article
Occurs when the RightToLeftChanged property value changes.

public event EventHandler RightToLeftChanged;


member [Link] : EventHandler

Remarks
This event is raised if the RightToLeft property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DriveListBox
[Link]
I n this Article
Occurs when the SelectedIndex property has changed.

public event EventHandler SelectedIndexChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SelectedIndex property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DriveListBox
[Link]
I n this Article
Occurs when the SelectedValue property has changed.

public event EventHandler SelectedValueChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SelectedValue property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DriveList
[Link]
I n this Article
Occurs when the selected item has changed and that change is displayed in the DriveListBox.

public event EventHandler SelectionChangeCommitted;


member [Link] : EventHandler

Remarks
SelectionChangeCommitted is raised only when the user changes the combo box selection. Do not use
SelectedIndexChanged or SelectedValueChanged to capture user changes, because those events are also raised when
the selection changes programmatically.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Sets the index of the initial DriveListBox in a DriveListBoxArray.
public void SetIndex ([Link] o, short Index);
member [Link] : [Link] * int16 -> unit

Parameters
o DriveListBox DriveListBox
A DriveListBox in the control array.
Index Int16 Int16
A Short that represents the index of the specified DriveListBox.

Remarks
The SetIndex method should only be called when you are creating the initial element in the control array. To add
subsequent elements, call the Load method and specify the Index .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DriveListBox
[Link]
I n this Article
Returns a value that indicates whether a DriveListBox is a member of this DriveListBoxArray.

public bool ShouldSerializeIndex ([Link] o);


member [Link] : [Link] -> bool

Parameters
o DriveListBox DriveListBox
A DriveListBox in the control array.
Returns
Boolean Boolean
true if o is a member of this control array; otherwise, false .

Remarks
If the specified DriveListBox is a member of a different DriveListBoxArray, ShouldSerializeIndex returns false .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Size property value changes.

public event EventHandler SizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Size property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control style changes.

public event EventHandler StyleChanged;


member [Link] : EventHandler

Remarks
The StyleChanged event occurs when ControlStyles flags have been added or changed.
This event is raised if the control style is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DriveListBox
[Link]
I n this Article
Occurs when the system colors change.

public event EventHandler SystemColorsChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SystemColors is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DriveListBoxArray.
TabIndexChanged
I n this Article
Occurs when the TabIndex property value changes.

public event EventHandler TabIndexChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabIndex property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DriveListBoxArray.
TabStopChanged
I n this Article
Occurs when the TabStop property value changes.

public event EventHandler TabStopChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabStop property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Text property value changes.

public event EventHandler TextChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Text property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is finished validating.
public event EventHandler Validated;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated

If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is validating.
public event [Link] Validating;
member [Link] : [Link]

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated
If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DriveListBox
[Link]
I n this Article
Occurs when the ValueMember property changes.

public event EventHandler ValueMemberChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ValueMember property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] DriveListBoxArray.
VisibleChanged
I n this Article
Occurs when the Visible property value changes.

public event EventHandler VisibleChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Visible property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
FileListBox FileListBox Class
Locates and lists files in the directory specified by the Path property at run time.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class FileListBox : [Link]
type FileListBox = class
inherit ListBox

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component
Control Control
ListControl ListControl
ListBox ListBox

Remarks
Use this control to display a list of files selected by file type. You can create dialog boxes in your application that, for
example, enable the user to select a file or group of files.
If you also display the DriveListBox and DirListBox controls, you can write code to synchronize them with the
FileListBox control and with each other.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
FileListBox()
FileListBox()

Initializes a new instance of the FileListBox class.

Properties
Archive
Archive

Gets or sets a value that determines whether a FileListBox control displays files that have Archive attributes.

DataSource
DataSource
Gets or sets the data source for a ListControl.

DisplayMember
DisplayMember

Gets or sets the property to display for this ListControl.

FileName
FileName

Gets or sets the file name of the selected file in a FileListBox.

Hidden
Hidden

Gets or sets a value that determines whether a FileListBox control displays files that have Hidden attributes.

ItemHeight
ItemHeight

Gets the height of an item in the ListBox.

Items
Items

Gets the items that are contained in a ListBox.

Items[Int32]
Items[Int32]

Gets the items that are contained in a ListBox.

Normal
Normal

Gets or sets a value that determines whether a FileListBox control displays files that have Normal attributes.

Path
Path

Gets or sets the current path for a FileListBox.

Pattern
Pattern

Gets or sets a value indicating the file names displayed in a FileListBox control at run time.

ReadOnly
ReadOnly

Gets or sets a value that determines whether a FileListBox control contains files that have read-only attributes.

Sorted
Sorted

Gets a value indicating whether the items in a FileListBox are sorted alphabetically.

System
System

Gets or sets a value that determines whether a FileListBox control displays files that have System attributes.

ValueMember
ValueMember

Gets or sets the property to use as the actual value for the items in a ListControl.

Methods
OnDoubleClick(EventArgs)
OnDoubleClick(EventArgs)

Raises the DoubleClick event.

OnPathChange(EventArgs)
OnPathChange(EventArgs)

Raises the PathChange event.

OnPatternChange(EventArgs)
OnPatternChange(EventArgs)

Raises the PatternChange event.

OnSelectedIndexChanged(EventArgs)
OnSelectedIndexChanged(EventArgs)

Raises the SelectedIndexChanged event.


Refresh()
Refresh()

Forces the control to invalidate its client area and immediately redraw itself.

Events
PathChange
PathChange

Occurs when the path is changed by setting the FileName or Path property in code.

PatternChange
PatternChange

Occurs when the file listing pattern, such as "*.*", is changed by setting the FileName or Pattern property in code.

See Also
[Link] [Link]
I n this Article
Gets or sets a value that determines whether a FileListBox control displays files that have Archive attributes.

public bool Archive { get; set; }


member [Link] : bool with get, set

Returns
Boolean Boolean
true if files that have the Archive attribute will be displayed; otherwise false . The default is true .

Remarks
Use this property to specify the type of files to display in a FileListBox control, based on standard Archive file attribute
used in the operating environment. Setting this property in code at run time resets the FileListBox control to display
only those files that have the specified attribute.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Gets or sets the data source for a ListControl.
[[Link](false)]
public object DataSource { get; set; }
member [Link] : obj with get, set

Returns
Object Object
An object that implements the IList or IListSource interfaces, such as a DataSet or a Array. The default is null .
Attributes BrowsableAttribute

Remarks
This property should not be set for the FileListBox control; it is provided only because the FileListBox control inherits
from ListBox.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Gets or sets the property to display for this ListControl.
[[Link](false)]
public string DisplayMember { get; set; }
member [Link] : string with get, set

Returns
String String
A String that represents the name of an object property that is contained in the collection specified by the
DataSource property. The default is an empty string ("").
Attributes BrowsableAttribute

Remarks
This property should not be set for the FileListBox control; it is provided only because the FileListBox control inherits
from ListBox.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
FileListBox
I n this Article
Initializes a new instance of the FileListBox class.
public FileListBox ();

Remarks
A FileListBox displays a list of files in a given directory at run time.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Gets or sets the file name of the selected file in a FileListBox.
[[Link](false)]
public string FileName { get; set; }
member [Link] : string with get, set

Returns
String String
A String that contains the file name of the selected file.
Attributes BrowsableAttribute

Remarks
Setting the FileName property at run time will result in only that file being displayed in the FileListBox.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Gets or sets a value that determines whether a FileListBox control displays files that have Hidden attributes.

public bool Hidden { get; set; }


member [Link] : bool with get, set

Returns
Boolean Boolean
true if files that have the Hidden attribute will be displayed; otherwise false . The default is false .

Remarks
Use this property to specify the type of files to display in a FileListBox control, based on standard Hidden file attribute
used in the operating environment. Setting this property in code at run time resets the FileListBox control to display
only those files that have the specified attribute.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Gets the height of an item in the ListBox.
[[Link](false)]
public int ItemHeight { get; set; }
member [Link] : int with get, set

Returns
Int32 Int32
This property is not required for the FileListBox control; the FileListBox does not support items of variable height. It is
provided only because the FileListBox control inherits from ListBox.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
Attributes BrowsableAttribute
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link][Int32] [Link][Int32]
I n this Article

Overloads
Items Items
Gets the items that are contained in a ListBox.

Items[Int32] Items[Int32]
Gets the items that are contained in a ListBox.

Items Items
Gets the items that are contained in a ListBox.
[[Link](false)]
public [Link] Items { get; }
member [Link] : [Link]

Returns
[Link] [Link]
A [Link] representing the items in the DirListBox.
Attributes BrowsableAttribute
Remarks
This property should not be used for the DirListBox control; trying to add or remove directories from the collection
could cause an exception. It is provided only because the DirListBox control inherits from ListBox.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)

Items[Int32] Items[Int32]
Gets the items that are contained in a ListBox.
[[Link](false)]
public string Items[int Index] { get; }
member [Link](int) : string

Parameters
Index Int32 Int32
An Integer representing the index of the item.
Returns
String String
A [Link] that represents the items in the DirListBox.
Attributes BrowsableAttribute
Remarks
This property should not be used for the DirListBox control; trying to add or remove directories from the collection
could cause an exception. It is provided only because the DirListBox control inherits from ListBox.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Gets or sets a value that determines whether a FileListBox control displays files that have Normal attributes.

public bool Normal { get; set; }


member [Link] : bool with get, set

Returns
Boolean Boolean
true if files that have the Normal attribute will be displayed; otherwise false . The default is true .

Remarks
Use this property to specify the type of files to display in a FileListBox control, based on standard Normal file attribute
used in the operating environment. Setting this property at run time resets the FileListBox control to display only those
files that have the specified attribute.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Raises the DoubleClick event.
protected override void OnDoubleClick (EventArgs e);
override [Link] : EventArgs -> unit

Parameters
e EventArgs EventArgs
A EventArgs that contains the event data.

Remarks
Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising
Events.
The OnDoubleClick method also enables derived classes to handle the event without attaching a delegate. This is the
preferred technique for handling the event in a derived class.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Raises the PathChange event.
protected virtual void OnPathChange (EventArgs e);
abstract member OnPathChange : EventArgs -> unit
override [Link] : EventArgs -> unit

Parameters
e EventArgs EventArgs
A EventArgs that contains the event data.

Remarks
Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising
Events.
The OnPathChange method also enables derived classes to handle the event without attaching a delegate. This is the
preferred technique for handling the event in a derived class.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
Change
I n this Article
Raises the PatternChange event.

protected virtual void OnPatternChange (EventArgs e);


abstract member OnPatternChange : EventArgs -> unit
override [Link] : EventArgs -> unit

Parameters
e EventArgs EventArgs
A EventArgs that contains the event data.

Remarks
Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising
Events.
The OnPatternChange method also enables derived classes to handle the event without attaching a delegate. This is
the preferred technique for handling the event in a derived class.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
SelectedIndexChanged
I n this Article
Raises the SelectedIndexChanged event.

protected override void OnSelectedIndexChanged (EventArgs e);


override [Link] : EventArgs -> unit

Parameters
e EventArgs EventArgs
A EventArgs that contains the event data.

Remarks
Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising
Events.
The OnSelectedIndexChanged method also enables derived classes to handle the event without attaching a delegate.
This is the preferred technique for handling the event in a derived class.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Gets or sets the current path for a FileListBox.
[[Link](false)]
public string Path { get; set; }
member [Link] : string with get, set

Returns
String String
A String that contains the current path, not including the file name.
Attributes BrowsableAttribute

Remarks
The value of the Path property is a string indicating a path, such as C:\Ob or C:\Windows\System. For a FileListBox
control, the default is the current path when the control is created at run time.
Use this property when you are building an application's file-browsing and manipulation capabilities. Setting the Path
property has effects similar to the MS -DOS chdir command; relative paths are allowed with or without a drive
specification. Specifying only a drive with a colon (:) selects the current directory on that drive.
The Path property can also be set to a qualified network path without a drive connection using the following syntax:

\\servername\sharename\path

Changing the value of Path for a FileListBox control generates an PathChange event.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Occurs when the path is changed by setting the FileName or Path property in code.
public event EventHandler PathChange;
member [Link] : EventHandler

Remarks
You can use a PathChange event procedure to respond to path changes in a FileListBox control. When you assign a
string that contains a new path to the FileName property, the FileListBox control invokes the PathChange event.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Gets or sets a value indicating the file names displayed in a FileListBox control at run time.
public string Pattern { get; set; }
member [Link] : string with get, set

Returns
String String
A string expression indicating a file specification, such as "*.*" or "*.FRM". The default is "*.*", which returns a list of all
files.

Remarks
The Pattern property plays a key role in designing an application's file-browsing and manipulation capabilities. Use
Pattern in combination with other file-control properties to give the user ways to explore files or groups of similar
files. For example, in an application dedicated to starting other programs, you could designate that only .exe files be
displayed in the file list box (*.exe).
In addition to using wildcard characters, you can also use multiple patterns separated by semicolons (;). For example,
"*.exe; *.bat" would return a list of all executable files and all MS -DOS batch files.
Changing the value of the Pattern property generates a PatternChange event.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Occurs when the file listing pattern, such as "*.*", is changed by setting the FileName or Pattern property in code.
public event EventHandler PatternChange;
member [Link] : EventHandler

Remarks
You can use a PatternChange event procedure to respond to pattern changes in a FileListBox control. When you
assign a string that contains a new pattern to the FileName property, the FileListBox invokes the PathChange event.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Gets or sets a value that determines whether a FileListBox control contains files that have read-only attributes.
public bool ReadOnly { get; set; }
member [Link] : bool with get, set

Returns
Boolean Boolean
true if files that have the ReadOnly attribute will be displayed; otherwise false . The default is true .

Remarks
Use the ReadOnly property for a FileListBox control to specify whether files that have read-only attributes are
displayed in the file list or not.
Note

If the Normal property is set to true (the default), files that have read-only attributes are displayed regardless of the
ReadOnly property setting.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Forces the control to invalidate its client area and immediately redraw itself.
public override void Refresh ();
override [Link] : unit -> unit

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Gets a value indicating whether the items in a FileListBox are sorted alphabetically.
[[Link](false)]
public bool Sorted { get; }
member [Link] : bool

Returns
Boolean Boolean
true if items in the control are sorted; otherwise, false . The default is false .
Attributes BrowsableAttribute

Remarks
For the FileListBox control, Sorted always returns false .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Gets or sets a value that determines whether a FileListBox control displays files that have System attributes.

public bool System { get; set; }


member [Link] : bool with get, set

Returns
Boolean Boolean
true if files that have the System attribute will be displayed; otherwise false . The default is true .

Remarks
Use this property to specify the type of files to display in a FileListBox control, based on standard System file attribute
used in the operating environment. Setting this property at run time resets the FileListBox control to display only those
files that have the specified attribute.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
[Link] [Link]
I n this Article
Gets or sets the property to use as the actual value for the items in a ListControl.
[[Link](false)]
public string ValueMember { get; set; }
member [Link] : string with get, set

Returns
String String
A String representing the name of an object property that is contained in the collection specified by the DataSource
property. The default is an empty string ("").
Attributes BrowsableAttribute

Remarks
This property should not be set for the FileListBox control; it is provided only because the FileListBox control inherits
from ListBox.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See SaveFileDialog Component Overview (Windows Forms)
Also OpenFileDialog Component Overview (Windows Forms)
FileListBoxArray FileListBoxArray Class
Provides a control array of FileListBox controls.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class FileListBoxArray : [Link],
[Link]
type FileListBoxArray = class
inherit BaseControlArray
interface IExtenderProvider

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component
BaseControlArray BaseControlArray

Remarks
The FileListBox class provides an equivalent for the run-time functionality of a Visual Basic 6.0 FileListBox array. It
does not provide the design-time features of a Visual Basic 6.0 control array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
FileListBoxArray()
FileListBoxArray()

Initializes a new instance of the FileListBoxArray class.

FileListBoxArray(IContainer)
FileListBoxArray(IContainer)

Initializes a new instance of the FileListBoxArray class, specifying its container.

Properties
Item[Int16]
Item[Int16]

Gets a specific element of a FileListBoxArray by index. Read-only.


Methods
CanExtend(Object)
CanExtend(Object)

Gets a value that determines whether a control is a member of a FileListBoxArray.

GetControlInstanceType()
GetControlInstanceType()

Overrides GetControlInstanceType().

GetIndex(FileListBox)
GetIndex(FileListBox)

Gets the index of a FileListBox in a FileListBoxArray.

HookUpControlEvents(Object)
HookUpControlEvents(Object)

Overrides HookUpControlEvents(Object).

ResetIndex(FileListBox)
ResetIndex(FileListBox)

The ResetIndex method is not supported in the FileListBoxArray class.

SetIndex(FileListBox, Int16)
SetIndex(FileListBox, Int16)

Sets the index of the initial FileListBox in a FileListBoxArray.

ShouldSerializeIndex(FileListBox)
ShouldSerializeIndex(FileListBox)

Returns a value that indicates whether a FileListBox is a member of this FileListBoxArray.

Events
BackColorChanged
BackColorChanged

Occurs when the value of the BackColor property changes.

BindingContextChanged
BindingContextChanged

Occurs when the value of the BindingContext property changes.

CausesValidationChanged
CausesValidationChanged

Occurs when the value of the CausesValidation property changes.

ChangeUICues
ChangeUICues

Occurs when the focus or keyboard user interface (UI) cues change.

ContextMenuChanged
ContextMenuChanged

Occurs when the value of the ContextMenu property changes.

CursorChanged
CursorChanged

Occurs when the value of the Cursor property changes.

DataSourceChanged
DataSourceChanged

Occurs when the value of the DataSource property changes.

DisplayMemberChanged
DisplayMemberChanged

Occurs when the value of the DisplayMember property changes.

DockChanged
DockChanged

Occurs when the value of the Dock property changes.

DoubleClick
DoubleClick

Occurs when a FileListBox control in a FileListBoxArray is double-clicked.


DragDrop
DragDrop

Occurs when a drag-and-drop operation is completed.

DragEnter
DragEnter

Occurs when an object is dragged into the control's bounds.

DragLeave
DragLeave

Occurs when an object is dragged out of the control's bounds.

DragOver
DragOver

Occurs when an object is dragged over the control's bounds.

DrawItem
DrawItem

Occurs when a visual aspect of an owner-drawn FileListBox changes.

EnabledChanged
EnabledChanged

Occurs when the value of the Enabled property changes.

Enter
Enter

Occurs when the control is entered.

FontChanged
FontChanged

Occurs when the value of the Font property changes.

ForeColorChanged
ForeColorChanged

Occurs when the value of the ForeColor property changes.


GiveFeedback
GiveFeedback

Occurs during a drag operation.

HelpRequested
HelpRequested

Occurs when the user requests help for a control.

ImeModeChanged
ImeModeChanged

Occurs when the value of the ImeMode property changes.

KeyDown
KeyDown

Occurs when a key is pressed and the control has focus.

KeyPress
KeyPress

Occurs when a key is pressed and the control has focus.

KeyUp
KeyUp

Occurs when a key is released and the control has focus.

Layout
Layout

Occurs when a control should reposition its child controls.

Leave
Leave

Occurs when the input focus leaves the control.

LocationChanged
LocationChanged

Occurs when the value of the Location property changes.


MeasureItem
MeasureItem

Occurs every time an owner-drawn FileListBox item has to be drawn and when the sizes of the list items are
determined.

MouseDown
MouseDown

Occurs when the mouse pointer is over the control and a mouse button is pressed.

MouseEnter
MouseEnter

Occurs when the mouse pointer enters the control.

MouseHover
MouseHover

Occurs when the mouse pointer rests on the control.

MouseLeave
MouseLeave

Occurs when the mouse pointer leaves the control.

MouseMove
MouseMove

Occurs when the mouse pointer is moved over the control.

MouseUp
MouseUp

Occurs when the mouse pointer is over the control and a mouse button is released.

Move
Move

Occurs when the control is moved.

ParentChanged
ParentChanged

Occurs when the control's Padding property changes.


PathChange
PathChange

Occurs when the path is changed by setting the FileName or Path property in code.

PatternChange
PatternChange

Occurs when the file listing pattern, such as "*.*", is changed by setting the FileName or Pattern property in code.

QueryAccessibilityHelp
QueryAccessibilityHelp

Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.

QueryContinueDrag
QueryContinueDrag

Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.

Resize
Resize

Occurs when the control is resized.

RightToLeftChanged
RightToLeftChanged

Occurs when the RightToLeftChanged property value changes.

SelectedIndexChanged
SelectedIndexChanged

Occurs when the SelectedIndex property has changed.

SelectedValueChanged
SelectedValueChanged

Occurs when the SelectedValue property has changed.

SizeChanged
SizeChanged

Occurs when the Size property value changes.


StyleChanged
StyleChanged

Occurs when the control style changes.

SystemColorsChanged
SystemColorsChanged

Occurs when the system colors change.

TabIndexChanged
TabIndexChanged

Occurs when the TabIndex property value changes.

TabStopChanged
TabStopChanged

Occurs when the TabStop property value changes.

Validated
Validated

Occurs when the control is finished validating.

Validating
Validating

Occurs when the control is validating.

ValueMemberChanged
ValueMemberChanged

Occurs when the ValueMember property changes.

VisibleChanged
VisibleChanged

Occurs when the Visible property value changes


[Link] [Link]
ColorChanged
I n this Article
Occurs when the value of the BackColor property changes.

public event EventHandler BackColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BackColor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] FileListBox
[Link]
I n this Article
Occurs when the value of the BindingContext property changes.

public event EventHandler BindingContextChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BindingContext property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets a value that determines whether a control is a member of a FileListBoxArray.
public bool CanExtend (object target);
abstract member CanExtend : obj -> bool
override [Link] : obj -> bool

Parameters
target Object Object
A FileListBox control.
Returns
Boolean Boolean
true if target is a member of the control array; otherwise false .

Remarks
The CanExtend method can be used to determine whether a specific FileListBox control is the base element of the
control array from which the other elements were cloned.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] FileListBox
[Link]
I n this Article
Occurs when the value of the CausesValidation property changes.

public event EventHandler CausesValidationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the CausesValidation property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
UICues
I n this Article
Occurs when the focus or keyboard user interface (UI) cues change.

public event [Link] ChangeUICues;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] FileListBoxArray.
ContextMenuChanged
I n this Article
Occurs when the value of the ContextMenu property changes.

public event EventHandler ContextMenuChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ContextMenu property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Cursor property changes.

public event EventHandler CursorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Cursor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] FileListBoxArray.
DataSourceChanged
I n this Article
Occurs when the value of the DataSource property changes.

public event EventHandler DataSourceChanged;


member [Link] : EventHandler

Remarks
This event is raised if the DataSource property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] FileListBox
[Link]
I n this Article
Occurs when the value of the DisplayMember property changes.

public event EventHandler DisplayMemberChanged;


member [Link] : EventHandler

Remarks
This event is raised if the DisplayMember property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Dock property changes.

public event EventHandler DockChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Dock property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a FileListBox control in a FileListBoxArray is double-clicked.
public event EventHandler DoubleClick;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a drag-and-drop operation is completed.
public event [Link] DragDrop;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged into the control's bounds.
public event [Link] DragEnter;
member [Link] : [Link]

Remarks
The DragEnter event is raised when the user first drags the mouse pointer over the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged out of the control's bounds.
public event EventHandler DragLeave;
member [Link] : EventHandler

Remarks
The DragLeave event is raised when the user drags the mouse pointer out of the control or the user cancels the current
drag-and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged over the control's bounds.
public event [Link] DragOver;
member [Link] : [Link]

Remarks
The DragOver event is raised when the mouse pointer moves within the bounds of the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a visual aspect of an owner-drawn FileListBox changes.
public event [Link] DrawItem;
member [Link] : [Link]

Remarks
This event is used by an owner-drawn FileListBox.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] FileListBoxArray.
EnabledChanged
I n this Article
Occurs when the value of the Enabled property changes.

public event EventHandler EnabledChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Enabled property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is entered.
public event EventHandler Enter;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), or by calling the Select or
SelectNextControl method, focus events occur in the following order:
Enter

GotFocus
Leave
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter

GotFocus
LostFocus
Leave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
FileListBoxArray FileListBoxArray
I n this Article

Overloads
FileListBoxArray()
Initializes a new instance of the FileListBoxArray class.

FileListBoxArray(IContainer) FileListBoxArray(IContainer)
Initializes a new instance of the FileListBoxArray class,
specifying its container.

FileListBoxArray()
Initializes a new instance of the FileListBoxArray class.
public FileListBoxArray ();

Remarks
When you instantiate a FileListBoxArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

FileListBoxArray(IContainer) FileListBoxArray(IContainer)
Initializes a new instance of the FileListBoxArray class, specifying its container.

public FileListBoxArray ([Link] Container);


new [Link] : [Link] ->
[Link]

Parameters
Container IContainer IContainer
The IContainer where the control array will be hosted.
Remarks
When you instantiate a FileListBoxArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Font property changes.

public event EventHandler FontChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Font property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ColorChanged
I n this Article
Occurs when the value of the ForeColor property changes.

public event EventHandler ForeColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ForeColor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] FileListBoxArray.
GetControlInstanceType
I n this Article
Overrides GetControlInstanceType().

protected override Type GetControlInstanceType ();


override [Link] : unit -> Type

Returns
Type Type
The type of a control in a control array.

Remarks
This method cannot be called from your application's code. Use the GetType method instead.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the index of a FileListBox in a FileListBoxArray.
public short GetIndex ([Link] o);
member [Link] : [Link] -> int16

Parameters
o FileListBox FileListBox
A FileListBox in the control array.
Returns
Int16 Int16
A Short that represents the index of the specified FileListBox.

Remarks
This method can be used to retrieve the index for the selected FileListBox.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Feedback
I n this Article
Occurs during a drag operation.

public event [Link] GiveFeedback;


member [Link] : [Link]

Remarks
The GiveFeedback event is raised when a drag-and-drop operation is started. By using the GiveFeedback event, the
source of a drag event can modify the appearance of the mouse pointer in order to give the user visual feedback during
a drag-and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Requested
I n this Article
Occurs when the user requests help for a control.

public event [Link] HelpRequested;


member [Link] : [Link]

Remarks
The HelpRequested event is typically raised when the user presses the F1 key or an associated context-sensitive Help
button is clicked.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] FileListBoxArray.
HookUpControlEvents
I n this Article
Overrides HookUpControlEvents(Object).

protected override void HookUpControlEvents (object o);


override [Link] : obj -> unit

Parameters
o Object Object
An Object.

Remarks
This method cannot be called from your application's code. Use AddHandler to hook up events for any controls that
are added by using the Load method.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ModeChanged
I n this Article
Occurs when the value of the ImeMode property changes.

public event EventHandler ImeModeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ImeMode property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link][Int16] [Link][Int16]
I n this Article
Gets a specific element of a FileListBoxArray by index. Read-only.
public [Link] this[short Index] { get; }
member [Link](int16) : [Link]

Parameters
Index Int16 Int16
A Short that specifies the position of an element of the control array.
Returns
FileListBox FileListBox
A FileListBox at the specified Index in the control array.

Remarks
The Item property is the default property for a control array. Therefore, the following lines of code are equivalent.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is pressed and the control has focus.
public event [Link] KeyDown;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown

KeyPress
KeyUp
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is pressed and the control has focus.
public event [Link] KeyPress;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress

KeyUp
The KeyPress event is not raised by non-character keys; however, the non-character keys do raise the KeyDown and
KeyUp events.
Use the KeyChar property to sample keystrokes at run time and to consume or modify a subset of common keystrokes.
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is released and the control has focus.
public event [Link] KeyUp;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress
KeyUp

To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a control should reposition its child controls.
public event [Link] Layout;
member [Link] : [Link]

Remarks
The Layout event occurs when child controls are added or removed, when the bounds of the control changes, and
when other changes occur that can affect the layout of the control. The layout event can be suppressed by using the
SuspendLayout and ResumeLayout methods. Suspending layout enables you to perform multiple actions on a control
without having to perform a layout for each change. For example, if you resize and move a control, each operation
would raise a Layout event.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the input focus leaves the control.
public event EventHandler Leave;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), or by calling the Select or
SelectNextControl method, focus events occur in the following order:
Enter
GotFocus
Leave

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] FileListBoxArray.
LocationChanged
I n this Article
Occurs when the value of the Location property changes.

public event EventHandler LocationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Location property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Item
I n this Article
Occurs every time an owner-drawn FileListBox item has to be drawn and when the sizes of the list items are
determined.
public event [Link] MeasureItem;
member [Link] : [Link]

Remarks
You can create an event handler for this event to specify the size an item is made before it is drawn in the DrawItem
event.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Down
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is pressed.

public event [Link] MouseDown;


member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover
MouseDown

MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer enters the control.
public event EventHandler MouseEnter;
member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter

MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Hover
I n this Article
Occurs when the mouse pointer rests on the control.

public event EventHandler MouseHover;


member [Link] : EventHandler

Remarks
A typical use of MouseHover is to display a tool tip when the mouse pauses on a control within a specified area around
the control (the "hover rectangle"). The pause required for this event to be raised is specified in milliseconds by the
MouseHoverTime property.
The MouseHover event is defined and detected in connection with the MouseHoverSize and MouseHoverTime
properties.
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover

MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Leave
I n this Article
Occurs when the mouse pointer leaves the control.

public event EventHandler MouseLeave;


member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Move
I n this Article
Occurs when the mouse pointer is moved over the control.

public event [Link] MouseMove;


member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove

MouseHover / MouseDown / MouseWheel


MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is released.
public event [Link] MouseUp;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp

MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is moved.
public event EventHandler Move;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control's Padding property changes.

public event EventHandler ParentChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Padding property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Change
I n this Article
Occurs when the path is changed by setting the FileName or Path property in code.

public event EventHandler PathChange;


member [Link] : EventHandler

Remarks
You can use a PathChange event procedure to respond to path changes in a FileListBox control. When you assign a
string that contains a new path to the FileName property, the FileListBox control invokes the PathChange event.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Change
I n this Article
Occurs when the file listing pattern, such as "*.*", is changed by setting the FileName or Pattern property in code.

public event EventHandler PatternChange;


member [Link] : EventHandler

Remarks
You can use a PatternChange event procedure to respond to pattern changes in a FileListBox control. When you
assign a string that contains a new pattern to the FileName property, the FileListBox invokes the PathChange event.
[Link] FileListBoxArray.
QueryAccessibilityHelp
I n this Article
Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.
public event [Link] QueryAccessibilityHelp;
member [Link] : [Link]

Remarks
The QueryContinueDrag event is raised when there is a change in the keyboard or mouse button state during a drag-
and-drop operation. The QueryContinueDrag event enables the drag source to determine whether the drag-and-drop
operation should be canceled.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] FileListBoxArray.
QueryContinueDrag
I n this Article
Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.
public event [Link] QueryContinueDrag;
member [Link] : [Link]

Remarks
The QueryContinueDrag event is raised when there is a change in the keyboard or mouse button state during a drag-
and-drop operation. The QueryContinueDrag event enables the drag source to determine whether the drag-and-drop
operation should be canceled.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
The ResetIndex method is not supported in the FileListBoxArray class.

public void ResetIndex ([Link] o);


member [Link] : [Link] -> unit

Parameters
o FileListBox FileListBox
A Control.

Remarks
This method is not supported, and calling it does not raise an exception.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is resized.
public event EventHandler Resize;
member [Link] : EventHandler

Remarks
To determine the Size of the resized control, you can cast the sender parameter of the EventArgs data to a Control and
get its Size property (or Height and Width properties individually).
To handle custom layouts, use the Layout event instead of the Resize event. The Layout event is raised in response to
a Resize event, but also in response to other changes that affect the layout of the control.

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] FileListBoxArray.
RightToLeftChanged
I n this Article
Occurs when the RightToLeftChanged property value changes.

public event EventHandler RightToLeftChanged;


member [Link] : EventHandler

Remarks
This event is raised if the RightToLeft property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] FileListBoxArray.
SelectedIndexChanged
I n this Article
Occurs when the SelectedIndex property has changed.

public event EventHandler SelectedIndexChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SelectedIndex property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] FileListBoxArray.
SelectedValueChanged
I n this Article
Occurs when the SelectedValue property has changed.

public event EventHandler SelectedValueChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SelectedValue property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Sets the index of the initial FileListBox in a FileListBoxArray.
public void SetIndex ([Link] o, short Index);
member [Link] : [Link] * int16 -> unit

Parameters
o FileListBox FileListBox
A FileListBox in the control array.
Index Int16 Int16
A Short that represents the index of the specified FileListBox.

Remarks
The SetIndex method should only be called when you are creating the initial element in the control array. To add
subsequent elements, call the Load method and specify the Index .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] FileListBoxArray.
ShouldSerializeIndex
I n this Article
Returns a value that indicates whether a FileListBox is a member of this FileListBoxArray.

public bool ShouldSerializeIndex ([Link] o);


member [Link] : [Link] -> bool

Parameters
o FileListBox FileListBox
A FileListBox in the control array.
Returns
Boolean Boolean
true if o is a member of this control array; otherwise, false .

Remarks
If the specified FileListBox is a member of a different FileListBoxArray, ShouldSerializeIndex returns false .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Size property value changes.

public event EventHandler SizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Size property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control style changes.

public event EventHandler StyleChanged;


member [Link] : EventHandler

Remarks
The StyleChanged event occurs when ControlStyles flags have been added or changed.
This event is raised if the control style is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] FileListBoxArray.
SystemColorsChanged
I n this Article
Occurs when the system colors change.

public event EventHandler SystemColorsChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SystemColors is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
IndexChanged
I n this Article
Occurs when the TabIndex property value changes.

public event EventHandler TabIndexChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabIndex property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
StopChanged
I n this Article
Occurs when the TabStop property value changes.

public event EventHandler TabStopChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabStop property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is finished validating.
public event EventHandler Validated;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated

If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is validating.
public event [Link] Validating;
member [Link] : [Link]

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated
If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] FileListBoxArray.
ValueMemberChanged
I n this Article
Occurs when the ValueMember property changes.

public event EventHandler ValueMemberChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ValueMember property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Visible property value changes

public event EventHandler VisibleChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Visible property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
FixedLengthString FixedLengthString Class
Emulates the behavior of a Visual Basic 6.0 fixed-length string.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class FixedLengthString
type FixedLengthString = class

I nheritance H ierarchy
Object Object

Remarks
In Visual Basic 6.0, a String could be declared with a fixed length. In Visual Basic, fixed-length strings are no longer
supported and a new String is allocated every time the length of the String is changed.
The FixedLengthString class can be used to emulate the behavior of a Visual Basic 6.0 string, which enables you to
declare a string with a fixed length. A FixedLengthString cannot be converted to a String; you must either reference
the Value property or call the ToString method to convert the type.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
FixedLengthString(Int32)
FixedLengthString(Int32)

Initializes a new instance of the FixedLengthString class, specifying the length.

FixedLengthString(Int32, String)
FixedLengthString(Int32, String)

Initializes a new instance of the FixedLengthString class, specifying the length and the initial value.

Fields
m_nMaxChars
m_nMaxChars

Stores the length of a FixedLengthString.

m_strValue
m_strValue

Stores the value of a FixedLengthString.

Properties
Value
Value

Gets or sets the contents of a FixedLengthString.

Methods
ToString()
ToString()

Converts a FixedLengthString to a String.


FixedLengthString FixedLengthString
I n this Article

Overloads
FixedLengthString(Int32) FixedLengthString(Int32)
Initializes a new instance of the FixedLengthString class,
specifying the length.

FixedLengthString(Int32, String) FixedLengthString(Int32,


String) Initializes a new instance of the FixedLengthString class,
specifying the length and the initial value.

FixedLengthString(Int32) FixedLengthString(Int32)
Initializes a new instance of the FixedLengthString class, specifying the length.
public FixedLengthString (int MaxChars);
new [Link] : int ->
[Link]

Parameters
MaxChars Int32 Int32
An Integer that specifies the length of the string.
Examples
The following example demonstrates how to declare and use a FixedLengthString.
Remarks
In Visual Basic 6.0, you can specify the length of a string in its declaration. In Visual Basic, you cannot declare a string
to have a fixed length unless you use the VBFixedStringAttribute attribute in the declaration.
Use this class to declare a fixed-length string without using the attribute.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

FixedLengthString(Int32, String) FixedLengthString(Int32, String)


Initializes a new instance of the FixedLengthString class, specifying the length and the initial value.
public FixedLengthString (int MaxChars, string InitialValue);
new [Link] : int * string ->
[Link]

Parameters
MaxChars Int32 Int32
An Integer that specifies the length of the string.
InitialValue String String
A String that specifies the initial contents.
Examples
The following example demonstrates how to declare and use a FixedLengthString.
Remarks
In Visual Basic 6.0, you can specify the length of a string in its declaration. In Visual Basic, you cannot declare a string
to have a fixed length unless you use the VBFixedStringAttribute attribute in the declaration.
Use this class to declare a fixed length string without using the attribute.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
FixedLengthString.m_nMaxChars FixedLengthString.m_n
MaxChars
I n this Article
Stores the length of a FixedLengthString.

protected int m_nMaxChars;


val mutable m_nMaxChars : int

Returns
Int32 Int32

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
FixedLengthString.m_strValue FixedLengthString.m_str
Value
I n this Article
Stores the value of a FixedLengthString.

protected string m_strValue;


val mutable m_strValue : string

Returns
String String

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Converts a FixedLengthString to a String.
public override string ToString ();
override [Link] : unit -> string

Returns
String String
A String that contains the value of the FixedLengthString.

Examples
The following example demonstrates how to declare and use a FixedLengthString.

Remarks
The FixedLengthString class can be used to emulate the behavior of a Visual Basic 6.0 string, which enables you to
declare a string with a fixed length. A FixedLengthString cannot be converted to a String; you must either reference the
Value property or call the ToString method to convert the type.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets or sets the contents of a FixedLengthString.
public string Value { get; set; }
member [Link] : string with get, set

Returns
String String
A String that contains the value.

Examples
The following example demonstrates how to declare and use a FixedLengthString.

Remarks
The FixedLengthString class can be used to emulate the behavior of a Visual Basic 6.0 string, which enables you to
declare a string with a fixed length. A FixedLengthString cannot be converted to a String; you must either reference the
Value property or call the ToString method to convert the type.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
FontDialogArray FontDialogArray Class
Provides a control array of FontDialog controls.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class FontDialogArray : [Link],
[Link]
type FontDialogArray = class
inherit BaseControlArray
interface IExtenderProvider

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component
BaseControlArray BaseControlArray

Remarks
The FontDialogArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0 FontDialog
array. It does not provide the design-time features of a Visual Basic 6.0 control array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
FontDialogArray()
FontDialogArray()

Initializes a new instance of the FontDialogArray class.

FontDialogArray(IContainer)
FontDialogArray(IContainer)

Initializes a new instance of the FontDialogArray class, specifying its container.

Properties
Item[Int16]
Item[Int16]

Gets a specific element of a FontDialogArray by index. Read-only.


Methods
CanExtend(Object)
CanExtend(Object)

Gets a value that determines whether a control is a member of a FontDialogArray.

GetControlInstanceType()
GetControlInstanceType()

Overrides GetControlInstanceType().

GetIndex(FontDialog)
GetIndex(FontDialog)

Gets the index of a FontDialog in a FontDialogArray.

HookUpControlEvents(Object)
HookUpControlEvents(Object)

Overrides HookUpControlEvents(Object).

ResetIndex(FontDialog)
ResetIndex(FontDialog)

The ResetIndex method is not supported in the FontDialogArray class.

SetIndex(FontDialog, Int16)
SetIndex(FontDialog, Int16)

Sets the index of the initial FontDialog in a FontDialogArray.

ShouldSerializeIndex(FontDialog)
ShouldSerializeIndex(FontDialog)

Returns a value that indicates whether a FontDialog is a member of this FontDialogArray.

Events
Apply
Apply

Occurs when the user clicks the Apply button in the font dialog box.

HelpRequest
HelpRequest

Occurs when the user requests help for a control.


[Link] [Link]
I n this Article
Occurs when the user clicks the Apply button in the font dialog box.

public event EventHandler Apply;


member [Link] : EventHandler

Remarks
Every time the Apply button is clicked, another Apply event is raised.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets a value that determines whether a control is a member of a FontDialogArray.
public bool CanExtend (object target);
abstract member CanExtend : obj -> bool
override [Link] : obj -> bool

Parameters
target Object Object
A FontDialog control.
Returns
Boolean Boolean
true if target is a member of the control array; otherwise, false .

Remarks
The CanExtend method can be used to determine whether a specific FontDialog control is the base element of the
control array from which the other elements were cloned.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
FontDialogArray FontDialogArray
I n this Article

Overloads
FontDialogArray()
Initializes a new instance of the FontDialogArray class.

FontDialogArray(IContainer) FontDialogArray(IContainer)
Initializes a new instance of the FontDialogArray class,
specifying its container.

FontDialogArray()
Initializes a new instance of the FontDialogArray class.
public FontDialogArray ();

Remarks
When you instantiate a FontDialogArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

FontDialogArray(IContainer) FontDialogArray(IContainer)
Initializes a new instance of the FontDialogArray class, specifying its container.

public FontDialogArray ([Link] Container);


new [Link] : [Link] ->
[Link]

Parameters
Container IContainer IContainer
The IContainer where the control array will be hosted.
Remarks
When you instantiate a FontDialogArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] FontDialog
[Link]
I n this Article
Overrides GetControlInstanceType().

protected override Type GetControlInstanceType ();


override [Link] : unit -> Type

Returns
Type Type
The type of a control in a control array.

Remarks
This method cannot be called from your application's code. Use the GetType method instead.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the index of a FontDialog in a FontDialogArray.
public short GetIndex ([Link] o);
member [Link] : [Link] -> int16

Parameters
o FontDialog FontDialog
A FontDialog in the control array.
Returns
Int16 Int16
A Short that represents the index of the specified FontDialog.

Remarks
This method can be used to retrieve the index for the selected FontDialog.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Request
I n this Article
Occurs when the user requests help for a control.

public event EventHandler HelpRequest;


member [Link] : EventHandler

Remarks
The HelpRequested event is typically raised when the user presses the F1 key or an associated context-sensitive Help
button is clicked.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] FontDialogArray.
HookUpControlEvents
I n this Article
Overrides HookUpControlEvents(Object).

protected override void HookUpControlEvents (object o);


override [Link] : obj -> unit

Parameters
o Object Object
An Object.

Remarks
This method cannot be called from your application's code. Use AddHandler to hook up events for any controls that
are added by using the Load method.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link][Int16] [Link][Int16]
I n this Article
Gets a specific element of a FontDialogArray by index. Read-only.
public [Link] this[short Index] { get; }
member [Link](int16) : [Link]

Parameters
Index Int16 Int16
A Short that specifies the position of an element of the control array.
Returns
FontDialog FontDialog
A FontDialog at the specified Index in the control array.

Remarks
The Item property is the default property for a control array. Therefore, the following lines of code are equivalent.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
The ResetIndex method is not supported in the FontDialogArray class.

public void ResetIndex ([Link] o);


member [Link] : [Link] -> unit

Parameters
o FontDialog FontDialog
A Control.

Remarks
This method is not supported, and calling it does not raise an exception.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Sets the index of the initial FontDialog in a FontDialogArray.
public void SetIndex ([Link] o, short Index);
member [Link] : [Link] * int16 -> unit

Parameters
o FontDialog FontDialog
A FontDialog in the control array.
Index Int16 Int16
A Short that represents the index of the specified FontDialog.

Remarks
The SetIndex method should only be called when you are creating the initial element in the control array. To add
subsequent elements, call the Load method and specify the Index .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] FontDialogArray.
ShouldSerializeIndex
I n this Article
Returns a value that indicates whether a FontDialog is a member of this FontDialogArray.

public bool ShouldSerializeIndex ([Link] o);


member [Link] : [Link] -> bool

Parameters
o FontDialog FontDialog
A FontDialog in the control array.
Returns
Boolean Boolean
true if o is a member of this control array; otherwise, false .

Remarks
If the specified FontDialog is a member of a different FontDialogArray, ShouldSerializeIndex returns false .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
FormShowConstants FormShowConstants Enum
Provides constants for compatibility with the Visual Basic 6.0 Show method.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public enum FormShowConstants
type FormShowConstants =

I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum

Remarks
In Visual Basic 6.0, the Modal parameter of the Show method was used to determine whether a form would be shown
as a modal dialog box. In Visual Basic, the Modal parameter is replaced by two different Show methods: Show and
ShowDialog.
These constants enable code that has been upgraded from Visual Basic 6.0 to continue to run without additional
modification.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Fields
Modal Modal Equivalent to the Visual Basic 6.0 constant vbModal .

Modeless Modeless Equivalent to the Visual Basic 6.0 constant vbModeless .


GroupBoxArray GroupBoxArray Class
Provides a control array of GroupBox controls.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class GroupBoxArray : [Link],
[Link]
type GroupBoxArray = class
inherit BaseControlArray
interface IExtenderProvider

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component
BaseControlArray BaseControlArray

Remarks
The GroupBoxArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0 GroupBox array. It
does not provide the design-time features of a Visual Basic 6.0 control array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
GroupBoxArray()
GroupBoxArray()

Initializes a new instance of the GroupBoxArray class.

GroupBoxArray(IContainer)
GroupBoxArray(IContainer)

Initializes a new instance of the GroupBoxArray class, specifying its container.

Properties
Item[Int16]
Item[Int16]

Gets a specific element of a GroupBoxArray by index. Read-only.


Methods
CanExtend(Object)
CanExtend(Object)

Gets a value that determines whether a control is a member of a GroupBoxArray.

GetControlInstanceType()
GetControlInstanceType()

Overrides GetControlInstanceType().

GetIndex(GroupBox)
GetIndex(GroupBox)

Gets the index of a GroupBox in a GroupBoxArray.

HookUpControlEvents(Object)
HookUpControlEvents(Object)

Overrides HookUpControlEvents(Object).

ResetIndex(GroupBox)
ResetIndex(GroupBox)

The ResetIndex method is not supported in the GroupBoxArray class.

SetIndex(GroupBox, Int16)
SetIndex(GroupBox, Int16)

Sets the index of the initial GroupBox in a GroupBoxArray.

ShouldSerializeIndex(GroupBox)
ShouldSerializeIndex(GroupBox)

Returns a value that indicates whether a GroupBox is a member of this GroupBoxArray.

Events
AutoSizeChanged
AutoSizeChanged

Occurs when the value of the AutoSize property changes.

BackColorChanged
BackColorChanged

Occurs when the value of the BackColor property changes.

BackgroundImageChanged
BackgroundImageChanged

Occurs when the value of the BackgroundImage property changes.

BackgroundImageLayoutChanged
BackgroundImageLayoutChanged

Occurs when the value of the BackgroundImageLayout property changes.

BindingContextChanged
BindingContextChanged

Occurs when the value of the BindingContext property changes.

CausesValidationChanged
CausesValidationChanged

Occurs when the value of the CausesValidation property changes.

ChangeUICues
ChangeUICues

Occurs when the focus or keyboard user interface (UI) cues change.

ClientSizeChanged
ClientSizeChanged

Occurs when the value of the ClientSize property changes.

ContextMenuChanged
ContextMenuChanged

Occurs when the value of the ContextMenu property changes.

ContextMenuStripChanged
ContextMenuStripChanged

Occurs when the value of the ContextMenuStrip property changes.


ControlAdded
ControlAdded

Occurs when a new control is added to the GroupBoxArray.

ControlRemoved
ControlRemoved

Occurs when a control is removed from the GroupBoxArray.

CursorChanged
CursorChanged

Occurs when the value of the Cursor property changes.

DockChanged
DockChanged

Occurs when the value of the Dock property changes.

DragDrop
DragDrop

Occurs when a drag-and-drop operation is completed.

DragEnter
DragEnter

Occurs when an object is dragged into the control's bounds.

DragLeave
DragLeave

Occurs when an object is dragged out of the control's bounds.

DragOver
DragOver

Occurs when an object is dragged over the control's bounds.

EnabledChanged
EnabledChanged

Occurs when the value of the Enabled property changes.


Enter
Enter

Occurs when the control is entered.

FontChanged
FontChanged

Occurs when the value of the Font property changes.

ForeColorChanged
ForeColorChanged

Occurs when the value of the ForeColor property changes.

GiveFeedback
GiveFeedback

Occurs during a drag operation.

HelpRequested
HelpRequested

Occurs when the user requests help for a control.

ImeModeChanged
ImeModeChanged

Occurs when the value of the ImeMode property changes.

Layout
Layout

Occurs when a control should reposition its child controls.

Leave
Leave

Occurs when the input focus leaves the control.

LocationChanged
LocationChanged

Occurs when the value of the Location property changes.


MarginChanged
MarginChanged

Occurs when the value of the Margin property changes.

MouseCaptureChanged
MouseCaptureChanged

Occurs when the control loses or gains mouse capture.

MouseHover
MouseHover

Occurs when the mouse pointer rests on the control.

Move
Move

Occurs when the control is moved.

PaddingChanged
PaddingChanged

Occurs when the control's Padding property changes.

Paint
Paint

Occurs when the control is redrawn.

ParentChanged
ParentChanged

Occurs when the control's Parent property changes.

QueryAccessibilityHelp
QueryAccessibilityHelp

Occurs when an AccessibleObject is providing Help to accessibility applications.

QueryContinueDrag
QueryContinueDrag

Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.
RegionChanged
RegionChanged

Occurs when the value of the Region property changes.

Resize
Resize

Occurs when the control is resized.

RightToLeftChanged
RightToLeftChanged

Occurs when the RightToLeftChanged property value changes.

SizeChanged
SizeChanged

Occurs when the Size property value changes.

StyleChanged
StyleChanged

Occurs when the control style changes.

SystemColorsChanged
SystemColorsChanged

Occurs when the system colors change.

TabIndexChanged
TabIndexChanged

Occurs when the TabIndex property value changes.

TextChanged
TextChanged

Occurs when the Text property value changes.

Validated
Validated

Occurs when the control is finished validating.


Validating
Validating

Occurs when the control is validating.

VisibleChanged
VisibleChanged

Occurs when the Visible property value changes.


[Link] [Link]
SizeChanged
I n this Article
Occurs when the value of the AutoSize property changes.

public event EventHandler AutoSizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the AutoSize property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ColorChanged
I n this Article
Occurs when the value of the BackColor property changes.

public event EventHandler BackColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BackColor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] GroupBox
[Link]
I n this Article
Occurs when the value of the BackgroundImage property changes.

public event EventHandler BackgroundImageChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BackgroundImage property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] Group
[Link]
I n this Article
Occurs when the value of the BackgroundImageLayout property changes.

public event EventHandler BackgroundImageLayoutChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BackgroundImageLayout property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] GroupBoxArray.
BindingContextChanged
I n this Article
Occurs when the value of the BindingContext property changes.

public event EventHandler BindingContextChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BindingContext property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets a value that determines whether a control is a member of a GroupBoxArray.
public bool CanExtend (object target);
abstract member CanExtend : obj -> bool
override [Link] : obj -> bool

Parameters
target Object Object
A GroupBox control.
Returns
Boolean Boolean
true if target is a member of the control array; otherwise false .

Remarks
The CanExtend method can be used to determine whether a specific GroupBox control is the base element of the
control array from which the other elements were cloned.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] GroupBox
[Link]
I n this Article
Occurs when the value of the CausesValidation property changes.

public event EventHandler CausesValidationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the CausesValidation property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Cues
I n this Article
Occurs when the focus or keyboard user interface (UI) cues change.

public event [Link] ChangeUICues;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
SizeChanged
I n this Article
Occurs when the value of the ClientSize property changes.

public event EventHandler ClientSizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ClientSize property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] GroupBoxArray.
ContextMenuChanged
I n this Article
Occurs when the value of the ContextMenu property changes.

[[Link](false)]
public event EventHandler ContextMenuChanged;
member [Link] : EventHandler

Attributes BrowsableAttribute

Remarks
This event is raised if the ContextMenu property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] GroupBox
[Link]
I n this Article
Occurs when the value of the ContextMenuStrip property changes.

public event EventHandler ContextMenuStripChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ContextMenuStrip property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Added
I n this Article
Occurs when a new control is added to the GroupBoxArray.

public event [Link] ControlAdded;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Removed
I n this Article
Occurs when a control is removed from the GroupBoxArray.

public event [Link] ControlRemoved;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Cursor property changes.

public event EventHandler CursorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Cursor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Dock property changes.

public event EventHandler DockChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Dock property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a drag-and-drop operation is completed.
public event [Link] DragDrop;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged into the control's bounds.
public event [Link] DragEnter;
member [Link] : [Link]

Remarks
The DragEnter event is raised when the user first drags the mouse cursor over the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged out of the control's bounds.
public event EventHandler DragLeave;
member [Link] : EventHandler

Remarks
The DragLeave event is raised when the user drags the cursor out of the control or the user cancels the current drag-
and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged over the control's bounds.
public event [Link] DragOver;
member [Link] : [Link]

Remarks
The DragOver event is raised when the mouse cursor moves within the bounds of the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Enabled property changes.

public event EventHandler EnabledChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Enabled property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is entered.
public event EventHandler Enter;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), or by calling the Select or
SelectNextControl method, focus events occur in the following order:
Enter

GotFocus
Leave
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter

GotFocus
LostFocus
Leave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Font property changes.

public event EventHandler FontChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Font property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ColorChanged
I n this Article
Occurs when the value of the ForeColor property changes.

public event EventHandler ForeColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ForeColor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] GroupBoxArray.
GetControlInstanceType
I n this Article
Overrides GetControlInstanceType().

protected override Type GetControlInstanceType ();


override [Link] : unit -> Type

Returns
Type Type
The type of a control in a control array.

Remarks
This method cannot be called from your application's code. Use the GetType method instead.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the index of a GroupBox in a GroupBoxArray.
public short GetIndex ([Link] o);
member [Link] : [Link] -> int16

Parameters
o GroupBox GroupBox
A GroupBox in the control array.
Returns
Int16 Int16
A Short that represents the index of the specified GroupBox.

Remarks
This method can be used to retrieve the index for the selected GroupBox.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Feedback
I n this Article
Occurs during a drag operation.

public event [Link] GiveFeedback;


member [Link] : [Link]

Remarks
The GiveFeedback event is raised when a drag-and-drop operation is started. By using the GiveFeedback event, the
source of a drag event can modify the appearance of the mouse pointer in order to give the user visual feedback during
a drag-and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
GroupBoxArray GroupBoxArray
I n this Article

Overloads
GroupBoxArray()
Initializes a new instance of the GroupBoxArray class.

GroupBoxArray(IContainer) GroupBoxArray(IContainer)
Initializes a new instance of the GroupBoxArray class,
specifying its container.

GroupBoxArray()
Initializes a new instance of the GroupBoxArray class.
public GroupBoxArray ();

Remarks
When you instantiate a GroupBoxArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

GroupBoxArray(IContainer) GroupBoxArray(IContainer)
Initializes a new instance of the GroupBoxArray class, specifying its container.

public GroupBoxArray ([Link] Container);


new [Link] : [Link] ->
[Link]

Parameters
Container IContainer IContainer
The IContainer where the control array will be hosted.
Remarks
When you instantiate a GroupBoxArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Requested
I n this Article
Occurs when the user requests help for a control.

public event [Link] HelpRequested;


member [Link] : [Link]

Remarks
The HelpRequested event is typically raised when the user presses the F1 key or an associated context-sensitive Help
button is clicked.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] GroupBoxArray.
HookUpControlEvents
I n this Article
Overrides HookUpControlEvents(Object).

protected override void HookUpControlEvents (object o);


override [Link] : obj -> unit

Parameters
o Object Object
An Object.

Remarks
This method cannot be called from your application's code. Use AddHandler to hook up events for any controls that
are added by using the Load method.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ModeChanged
I n this Article
Occurs when the value of the ImeMode property changes.

public event EventHandler ImeModeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ImeMode property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link][Int16] [Link][Int16]
I n this Article
Gets a specific element of a GroupBoxArray by index. Read-only.
public [Link] this[short Index] { get; }
member [Link](int16) : [Link]

Parameters
Index Int16 Int16
A Short that specifies the position of an element of the control array.
Returns
GroupBox GroupBox
A GroupBox at the specified Index in the control array.

Remarks
The Item property is the default property for a control array. Therefore, the following lines of code are equivalent.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a control should reposition its child controls.
public event [Link] Layout;
member [Link] : [Link]

Remarks
The Layout event occurs when child controls are added or removed, when the bounds of the control changes, and
when other changes occur that can affect the layout of the control. The layout event can be suppressed by using the
SuspendLayout and ResumeLayout methods. Suspending layout enables you to perform multiple actions on a control
without having to perform a layout for each change. For example, if you resize and move a control, each operation
would raise a Layout event.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the input focus leaves the control.
public event EventHandler Leave;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), or by calling the Select or
SelectNextControl method, focus events occur in the following order:
Enter
GotFocus
Leave

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] GroupBoxArray.
LocationChanged
I n this Article
Occurs when the value of the Location property changes.

public event EventHandler LocationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Location property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Margin property changes.

public event EventHandler MarginChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Margin property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] GroupBoxArray.
MouseCaptureChanged
I n this Article
Occurs when the control loses or gains mouse capture.

public event EventHandler MouseCaptureChanged;


member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Hover
I n this Article
Occurs when the mouse pointer rests on the control.

public event EventHandler MouseHover;


member [Link] : EventHandler

Remarks
A typical use of MouseHover is to display a tool tip when the mouse pauses on a control within a specified area around
the control (the "hover rectangle"). The pause required for this event to be raised is specified in milliseconds by the
MouseHoverTime property.
The MouseHover event is defined and detected in connection with the MouseHoverSize and MouseHoverTime
properties.
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover

MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is moved.
public event EventHandler Move;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] GroupBoxArray.
PaddingChanged
I n this Article
Occurs when the control's Padding property changes.

public event EventHandler PaddingChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Padding property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is redrawn.
public event [Link] Paint;
member [Link] : [Link]

Remarks
The Paint event handler is typically used to perform custom drawing when a control is redrawn.

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control's Parent property changes.

public event EventHandler ParentChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Parent property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] GroupBoxArray.
QueryAccessibilityHelp
I n this Article
Occurs when an AccessibleObject is providing Help to accessibility applications.

public event [Link] QueryAccessibilityHelp;


member [Link] : [Link]

Remarks
You should use the HelpProvider class to enable users to invoke Help on your accessible object by pressing the F1 key.
The HelpProvider gives you complete information in the QueryAccessibilityHelpEventArgs.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] GroupBoxArray.
QueryContinueDrag
I n this Article
Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.
public event [Link] QueryContinueDrag;
member [Link] : [Link]

Remarks
The QueryContinueDrag event is raised when there is a change in the keyboard or mouse button state during a drag-
and-drop operation. The QueryContinueDrag event enables the drag source to determine whether the drag-and-drop
operation should be canceled.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Region property changes.

public event EventHandler RegionChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Region property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
The ResetIndex method is not supported in the GroupBoxArray class.

public void ResetIndex ([Link] o);


member [Link] : [Link] -> unit

Parameters
o GroupBox GroupBox
A Control.

Remarks
This method is not supported, and calling it does not raise an exception.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is resized.
public event EventHandler Resize;
member [Link] : EventHandler

Remarks
To determine the Size of the resized control, you can cast the sender parameter of the EventArgs data to a Control and
get its Size property (or Height and Width properties individually).
To handle custom layouts, use the Layout event instead of the Resize event. The Layout event is raised in response to
a Resize event, but also in response to other changes that affect the layout of the control.

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] GroupBoxArray.
RightToLeftChanged
I n this Article
Occurs when the RightToLeftChanged property value changes.

public event EventHandler RightToLeftChanged;


member [Link] : EventHandler

Remarks
This event is raised if the RightToLeft property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Sets the index of the initial GroupBox in a GroupBoxArray.
public void SetIndex ([Link] o, short Index);
member [Link] : [Link] * int16 -> unit

Parameters
o GroupBox GroupBox
A GroupBox in the control array.
Index Int16 Int16
A Short that represents the index of the specified GroupBox.

Remarks
The SetIndex method should only be called when you are creating the initial element in the control array. To add
subsequent elements, call the Load method and specify the Index .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] GroupBoxArray.
ShouldSerializeIndex
I n this Article
Returns a value that indicates whether a GroupBox is a member of this GroupBoxArray.

public bool ShouldSerializeIndex ([Link] o);


member [Link] : [Link] -> bool

Parameters
o GroupBox GroupBox
A GroupBox in the control array.
Returns
Boolean Boolean
true if o is a member of this control array; otherwise, false .

Remarks
If the specified GroupBox is a member of a different GroupBoxArray, ShouldSerializeIndex returns false .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Size property value changes.

public event EventHandler SizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Size property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control style changes.

public event EventHandler StyleChanged;


member [Link] : EventHandler

Remarks
The StyleChanged event occurs when ControlStyles flags have been added or changed.
This event is raised if the control style is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] GroupBoxArray.
SystemColorsChanged
I n this Article
Occurs when the system colors change.

public event EventHandler SystemColorsChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SystemColors is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
IndexChanged
I n this Article
Occurs when the TabIndex property value changes.

public event EventHandler TabIndexChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabIndex property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Text property value changes.

public event EventHandler TextChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Text property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is finished validating.
public event EventHandler Validated;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated

If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is validating.
public event [Link] Validating;
member [Link] : [Link]

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated
If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Visible property value changes.

public event EventHandler VisibleChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Visible property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
HScrollBarArray HScrollBarArray Class
Provides a control array of HScrollBar controls.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class HScrollBarArray : [Link],
[Link]
type HScrollBarArray = class
inherit BaseControlArray
interface IExtenderProvider

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component
BaseControlArray BaseControlArray

Remarks
The HScrollBarArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0 HScrollBar
array. It does not provide the design-time features of a Visual Basic 6.0 control array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
HScrollBarArray()
HScrollBarArray()

Initializes a new instance of the HScrollBarArray class.

HScrollBarArray(IContainer)
HScrollBarArray(IContainer)

Initializes a new instance of the HScrollBarArray class, specifying its container.

Properties
Item[Int16]
Item[Int16]

Gets a specific element of an HScrollBarArray by index. Read-only.


Methods
CanExtend(Object)
CanExtend(Object)

Gets a value that determines whether a control is a member of an HScrollBarArray.

GetControlInstanceType()
GetControlInstanceType()

Overrides GetControlInstanceType().

GetIndex(HScrollBar)
GetIndex(HScrollBar)

Gets the index of an HScrollBar in an HScrollBarArray.

HookUpControlEvents(Object)
HookUpControlEvents(Object)

Gets a value that determines whether a control is a member of an HScrollBarArray.

ResetIndex(HScrollBar)
ResetIndex(HScrollBar)

The ResetIndex method is not supported in the HScrollBarArray class.

SetIndex(HScrollBar, Int16)
SetIndex(HScrollBar, Int16)

Sets the index of the initial HScrollBar in a HScrollBarArray.

ShouldSerializeIndex(HScrollBar)
ShouldSerializeIndex(HScrollBar)

Returns a value that indicates whether an HScrollBar is a member of this HScrollBarArray.

Events
BindingContextChanged
BindingContextChanged

Occurs when the value of the BindingContext property changes.

CausesValidationChanged
CausesValidationChanged

Occurs when the value of the CausesValidation property changes.

ChangeUICues
ChangeUICues

Occurs when the focus or keyboard user interface (UI) cues change.

ClientSizeChanged
ClientSizeChanged

Occurs when the value of the ClientSize property changes.

ContextMenuChanged
ContextMenuChanged

Occurs when the value of the ContextMenu property changes.

ContextMenuStripChanged
ContextMenuStripChanged

Occurs when the value of the ContextMenuStrip property changes.

ControlAdded
ControlAdded

Occurs when a new control is added to the HScrollBarArray.

ControlRemoved
ControlRemoved

Occurs when a control is removed from the HScrollBarArray.

CursorChanged
CursorChanged

Occurs when the value of the Cursor property changes.

DockChanged
DockChanged

Occurs when the value of the Dock property changes.


DragDrop
DragDrop

Occurs when a drag-and-drop operation is completed.

DragEnter
DragEnter

Occurs when an object is dragged into the control's bounds.

DragLeave
DragLeave

Occurs when an object is dragged out of the control's bounds.

DragOver
DragOver

Occurs when an object is dragged over the control's bounds.

EnabledChanged
EnabledChanged

Occurs when the value of the Enabled property changes.

Enter
Enter

Occurs when the control is entered.

GiveFeedback
GiveFeedback

Occurs during a drag operation.

HelpRequested
HelpRequested

Occurs when the user requests help for a control.

KeyDown
KeyDown

Occurs when a key is pressed and the control has focus.


KeyPress
KeyPress

Occurs when a key is pressed and the control has focus.

KeyUp
KeyUp

Occurs when a key is released and the control has focus.

Layout
Layout

Occurs when a control should reposition its child controls.

Leave
Leave

Occurs when the input focus leaves the control.

LocationChanged
LocationChanged

Occurs when the value of the Location property changes.

MarginChanged
MarginChanged

Occurs when the value of the Margin property changes.

MouseCaptureChanged
MouseCaptureChanged

Occurs when the control loses or gains mouse capture.

MouseEnter
MouseEnter

Occurs when the mouse pointer enters the control.

MouseHover
MouseHover

Occurs when the mouse pointer rests on the control.


MouseLeave
MouseLeave

Occurs when the mouse pointer leaves the control.

Move
Move

Occurs when the control is moved.

PaddingChanged
PaddingChanged

Occurs when the control's Padding property changes.

ParentChanged
ParentChanged

Occurs when the control's Parent property changes.

QueryAccessibilityHelp
QueryAccessibilityHelp

Occurs when an AccessibleObject is providing Help to accessibility applications.

QueryContinueDrag
QueryContinueDrag

Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.

RegionChanged
RegionChanged

Occurs when the value of the Region property changes.

Resize
Resize

Occurs when the control is resized.

RightToLeftChanged
RightToLeftChanged

Occurs when the RightToLeftChanged property value changes.


Scroll
Scroll

Occurs when the user scrolls the HScrollBar control.

SizeChanged
SizeChanged

Occurs when the Size property value changes.

StyleChanged
StyleChanged

Occurs when the control style changes.

SystemColorsChanged
SystemColorsChanged

Occurs when the system colors change.

TabIndexChanged
TabIndexChanged

Occurs when the TabIndex property value changes.

TabStopChanged
TabStopChanged

Occurs when the TabStop property value changes.

Validated
Validated

Occurs when the control is finished validating.

Validating
Validating

Occurs when the control is validating.

ValueChanged
ValueChanged

Occurs when the Value property changes.


VisibleChanged
VisibleChanged

Occurs when the Visible property value changes.


[Link] HScrollBar
[Link]
I n this Article
Occurs when the value of the BindingContext property changes.

public event EventHandler BindingContextChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BindingContext property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets a value that determines whether a control is a member of an HScrollBarArray.
public bool CanExtend (object target);
abstract member CanExtend : obj -> bool
override [Link] : obj -> bool

Parameters
target Object Object
An HScrollBar control.
Returns
Boolean Boolean
true if target is a member of the control array; otherwise false .

Remarks
The CanExtend method can be used to determine whether a specific HScrollBar control is the base element of the
control array from which the other elements were cloned.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] HScrollBar
[Link]
I n this Article
Occurs when the value of the CausesValidation property changes.

public event EventHandler CausesValidationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the CausesValidation property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
UICues
I n this Article
Occurs when the focus or keyboard user interface (UI) cues change.

public event [Link] ChangeUICues;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] HScrollBarArray.
ClientSizeChanged
I n this Article
Occurs when the value of the ClientSize property changes.

public event EventHandler ClientSizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ClientSize property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] HScrollBarArray.
ContextMenuChanged
I n this Article
Occurs when the value of the ContextMenu property changes.

[[Link](false)]
public event EventHandler ContextMenuChanged;
member [Link] : EventHandler

Attributes BrowsableAttribute

Remarks
This event is raised if the ContextMenu property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] HScrollBar
[Link]
I n this Article
Occurs when the value of the ContextMenuStrip property changes.

public event EventHandler ContextMenuStripChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ContextMenuStrip property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Added
I n this Article
Occurs when a new control is added to the HScrollBarArray.

public event [Link] ControlAdded;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] HScrollBarArray.
ControlRemoved
I n this Article
Occurs when a control is removed from the HScrollBarArray.

public event [Link] ControlRemoved;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Cursor property changes.

public event EventHandler CursorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Cursor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Dock property changes.

public event EventHandler DockChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Dock property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a drag-and-drop operation is completed.
public event [Link] DragDrop;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged into the control's bounds.
public event [Link] DragEnter;
member [Link] : [Link]

Remarks
The DragEnter event is raised when the user first drags the mouse cursor over the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged out of the control's bounds.
public event EventHandler DragLeave;
member [Link] : EventHandler

Remarks
The DragLeave event is raised when the user drags the cursor out of the control or the user cancels the current drag-
and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged over the control's bounds.
public event [Link] DragOver;
member [Link] : [Link]

Remarks
The DragOver event is raised when the mouse cursor moves within the bounds of the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] HScrollBarArray.
EnabledChanged
I n this Article
Occurs when the value of the Enabled property changes.

public event EventHandler EnabledChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Enabled property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is entered.
public event EventHandler Enter;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), or by calling the Select or
SelectNextControl method, focus events occur in the following order:
Enter

GotFocus
Leave
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter

GotFocus
LostFocus
Leave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] HScrollBarArray.
GetControlInstanceType
I n this Article
Overrides GetControlInstanceType().

protected override Type GetControlInstanceType ();


override [Link] : unit -> Type

Returns
Type Type
This method must be overridden. The HScrollBarArray class is the base class for all control arrays that are used in
applications upgraded from Visual Basic 6.0. Because this class is not typically used to create an instance of the class,
this Protected method is usually not called directly but is instead called by a derived class.

Remarks
This method cannot be called from your application's code. Use the GetType method instead.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the index of an HScrollBar in an HScrollBarArray.
public short GetIndex ([Link] o);
member [Link] : [Link] -> int16

Parameters
o HScrollBar HScrollBar
A Short that specifies the position of an element of the control array.
Returns
Int16 Int16
An HScrollBar at the specified Index in the control array.

Remarks
The Item property is the default property for a control array. Therefore, the following lines of code are equivalent.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Feedback
I n this Article
Occurs during a drag operation.

public event [Link] GiveFeedback;


member [Link] : [Link]

Remarks
The GiveFeedback event is raised when a drag-and-drop operation is started. By using the GiveFeedback event, the
source of a drag event can modify the appearance of the mouse pointer in order to give the user visual feedback during
a drag-and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Requested
I n this Article
Occurs when the user requests help for a control.

public event [Link] HelpRequested;


member [Link] : [Link]

Remarks
The HelpRequested event is typically raised when the user presses the F1 key or an associated context-sensitive Help
button is clicked.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] HScrollBarArray.
HookUpControlEvents
I n this Article
Gets a value that determines whether a control is a member of an HScrollBarArray.

protected override void HookUpControlEvents (object o);


override [Link] : obj -> unit

Parameters
o Object Object
An HScrollBar control.

Remarks
The CanExtend method can be used to determine whether a specific HScrollBar control is the base element of the
control array from which the other elements were cloned.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
HScrollBarArray HScrollBarArray
I n this Article

Overloads
HScrollBarArray()
Initializes a new instance of the HScrollBarArray class.

HScrollBarArray(IContainer) HScrollBarArray(IContainer)
Initializes a new instance of the HScrollBarArray class,
specifying its container.

HScrollBarArray()
Initializes a new instance of the HScrollBarArray class.
public HScrollBarArray ();

Remarks
When you instantiate an HScrollBarArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

HScrollBarArray(IContainer) HScrollBarArray(IContainer)
Initializes a new instance of the HScrollBarArray class, specifying its container.

public HScrollBarArray ([Link] Container);


new [Link] : [Link] ->
[Link]

Parameters
Container IContainer IContainer
The IContainer where the control array will be hosted.
Remarks
When you instantiate an HScrollBarArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link][Int16] [Link][Int16]
I n this Article
Gets a specific element of an HScrollBarArray by index. Read-only.
public [Link] this[short Index] { get; }
member [Link](int16) : [Link]

Parameters
Index Int16 Int16
A Short that specifies the position of an element of the control array.
Returns
HScrollBar HScrollBar
An HScrollBar at the specified Index in the control array.

Remarks
The Item property is the default property for a control array. Therefore, the following lines of code are equivalent.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is pressed and the control has focus.
public event [Link] KeyDown;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown

KeyPress
KeyUp
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is pressed and the control has focus.
public event [Link] KeyPress;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress

KeyUp
The KeyPress event is not raised by non-character keys; however, the non-character keys do raise the KeyDown and
KeyUp events.
Use the KeyChar property to sample keystrokes at run time and to consume or modify a subset of common keystrokes.
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is released and the control has focus.
public event [Link] KeyUp;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress
KeyUp

To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a control should reposition its child controls.
public event [Link] Layout;
member [Link] : [Link]

Remarks
The Layout event occurs when child controls are added or removed, when the bounds of the control changes, and
when other changes occur that can affect the layout of the control. The layout event can be suppressed by using the
SuspendLayout and ResumeLayout methods. Suspending layout enables you to perform multiple actions on a control
without having to perform a layout for each change. For example, if you resize and move a control, each operation
would raise a Layout event.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the input focus leaves the control.
public event EventHandler Leave;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), or by calling the Select or
SelectNextControl method, focus events occur in the following order:
Enter
GotFocus
Leave

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] HScrollBarArray.
LocationChanged
I n this Article
Occurs when the value of the Location property changes.

public event EventHandler LocationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Location property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Margin property changes.

public event EventHandler MarginChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Margin property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] HScrollBarArray.
MouseCaptureChanged
I n this Article
Occurs when the control loses or gains mouse capture.

public event EventHandler MouseCaptureChanged;


member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer enters the control.
public event EventHandler MouseEnter;
member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter

MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Hover
I n this Article
Occurs when the mouse pointer rests on the control.

public event EventHandler MouseHover;


member [Link] : EventHandler

Remarks
A typical use of MouseHover is to display a tool tip when the mouse pauses on a control within a specified area around
the control (the "hover rectangle"). The pause required for this event to be raised is specified in milliseconds by the
MouseHoverTime property.
The MouseHover event is defined and detected in connection with the MouseHoverSize and MouseHoverTime
properties.
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover

MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Leave
I n this Article
Occurs when the mouse pointer leaves the control.

public event EventHandler MouseLeave;


member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is moved.
public event EventHandler Move;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] HScrollBarArray.
PaddingChanged
I n this Article
Occurs when the control's Padding property changes.

public event EventHandler PaddingChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Padding property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control's Parent property changes.

public event EventHandler ParentChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Parent property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] HScrollBarArray.
QueryAccessibilityHelp
I n this Article
Occurs when an AccessibleObject is providing Help to accessibility applications.

public event [Link] QueryAccessibilityHelp;


member [Link] : [Link]

Remarks
You should use the HelpProvider class to enable users to invoke Help on your accessible object by pressing the F1 key.
The HelpProvider gives you complete information in the QueryAccessibilityHelpEventArgs.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] HScrollBarArray.
QueryContinueDrag
I n this Article
Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.
public event [Link] QueryContinueDrag;
member [Link] : [Link]

Remarks
The QueryContinueDrag event is raised when there is a change in the keyboard or mouse button state during a drag-
and-drop operation. The QueryContinueDrag event enables the drag source to determine whether the drag-and-drop
operation should be canceled.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Region property changes.

public event EventHandler RegionChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Region property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
The ResetIndex method is not supported in the HScrollBarArray class.

public void ResetIndex ([Link] o);


member [Link] : [Link] -> unit

Parameters
o HScrollBar HScrollBar
A Control.

Remarks
This method is not supported, and calling it does not raise an exception.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is resized.
public event EventHandler Resize;
member [Link] : EventHandler

Remarks
To determine the Size of the resized control, you can cast the sender parameter of the EventArgs data to a Control and
get its Size property (or Height and Width properties individually).
To handle custom layouts, use the Layout event instead of the Resize event. The Layout event is raised in response to
a Resize event, but also in response to other changes that affect the layout of the control.

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] HScrollBarArray.
RightToLeftChanged
I n this Article
Occurs when the RightToLeftChanged property value changes.

public event EventHandler RightToLeftChanged;


member [Link] : EventHandler

Remarks
This event is raised if the RightToLeft property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the user scrolls the HScrollBar control.
public event [Link] Scroll;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Sets the index of the initial HScrollBar in a HScrollBarArray.
public void SetIndex ([Link] o, short Index);
member [Link] : [Link] * int16 -> unit

Parameters
o HScrollBar HScrollBar
An HScrollBar in the control array.
Index Int16 Int16
A Short that represents the index of the specified HScrollBar.

Remarks
The SetIndex method should only be called when you are creating the initial element in the control array. To add
subsequent elements, call the Load method and specify the Index .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] HScrollBarArray.
ShouldSerializeIndex
I n this Article
Returns a value that indicates whether an HScrollBar is a member of this HScrollBarArray.

public bool ShouldSerializeIndex ([Link] o);


member [Link] : [Link] -> bool

Parameters
o HScrollBar HScrollBar
An HScrollBar in the control array.
Returns
Boolean Boolean
true if o is a member of this control array; otherwise, false .

Remarks
If the specified HScrollBar is a member of a different HScrollBarArray, ShouldSerializeIndex returns false .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Size property value changes.

public event EventHandler SizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Size property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control style changes.

public event EventHandler StyleChanged;


member [Link] : EventHandler

Remarks
The StyleChanged event occurs when ControlStyles flags have been added or changed.
This event is raised if the control style is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] HScrollBarArray.
SystemColorsChanged
I n this Article
Occurs when the system colors change.

public event EventHandler SystemColorsChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SystemColors is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
IndexChanged
I n this Article
Occurs when the TabIndex property value changes.

public event EventHandler TabIndexChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabIndex property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
StopChanged
I n this Article
Occurs when the TabStop property value changes.

public event EventHandler TabStopChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabStop property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is finished validating.
public event EventHandler Validated;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated

If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is validating.
public event [Link] Validating;
member [Link] : [Link]

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated
If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Value property changes.

public event EventHandler ValueChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Value property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Visible property value changes.

public event EventHandler VisibleChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Visible property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
IAccessor IAccessor Interface
Provides an implementation of the OLE DB IAccessor interface for use by applications upgraded from Visual Basic
6.0.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
[[Link]("0c733a8c-2a1c-11ce-ade5-00aa0044773d")]
[[Link]([Link]
terfaceIsIUnknown)]
public interface IAccessor
type IAccessor = interface

I nheritance H ierarchy
None

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Methods
AddRefAccessor(Int32, Int32)
AddRefAccessor(Int32, Int32)

Adds a reference count to an existing accessor.

CreateAccessor(Int32, Int32, DBBINDING[], Int32, Int32, IntPtr)


CreateAccessor(Int32, Int32, DBBINDING[], Int32, Int32, IntPtr)

Creates an accessor from a set of bindings.

GetBindings(Int32, Int32, Int32, IntPtr)


GetBindings(Int32, Int32, Int32, IntPtr)

Returns the bindings in an accessor.

ReleaseAccessor(Int32, Int32)
ReleaseAccessor(Int32, Int32)

Releases an accessor.
[Link] [Link]
I n this Article
Adds a reference count to an existing accessor.
public void AddRefAccessor (int hAccessor, out int cRefCount);
abstract member AddRefAccessor : int * -> unit

Parameters
hAccessor Int32 Int32
The handle of the accessor for which to increment the reference count.
cRefCount Int32 Int32
A pointer to memory in which to return the reference count of the accessor handle. If cRefCount is a null pointer, no
reference count is returned.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Creates an accessor from a set of bindings.
public void CreateAccessor (int accessorFlags, int cBindings,
[Link][] bindings, int cbRowSize, out int hAccessor,
IntPtr pBindStatus);
abstract member CreateAccessor : int * int * [Link][] *
int * * nativeint -> unit

Parameters
accessorFlags Int32 Int32
A bitmask that describes the properties of the accessor and how it can be used.
cBindings Int32 Int32
The number of bindings in the accessor.
bindings DBBINDING []
An array of DBBINDING structures.
cbRowSize Int32 Int32
The number of bytes allocated for a single set of parameters or criteria values in the consumer's buffer.
hAccessor Int32 Int32
A pointer to memory in which to return the handle of the created accessor.
pBindStatus IntPtr IntPtr
A pointer to an array of DBBINDSTATUS values.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Returns the bindings in an accessor.
public void GetBindings (int hAccessor, out int accessorFlags, out int cBindings, out IntPtr
rgBindings);
abstract member GetBindings : int * * * -> unit

Parameters
hAccessor Int32 Int32
The handle of the accessor for which to return the bindings.
accessorFlags Int32 Int32
A pointer to memory in which to return a bitmask that describes the properties of the accessor and how it is intended
to be used.
cBindings Int32 Int32
A pointer to memory in which to return the number of bindings in the accessor.
rgBindings IntPtr IntPtr
A pointer to memory in which to return an array of DBBINDSTATUS structures.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Releases an accessor.
public void ReleaseAccessor (int hAccessor, out int cRefCount);
abstract member ReleaseAccessor : int * -> unit

Parameters
hAccessor Int32 Int32
The handle of the accessor to release.
cRefCount Int32 Int32
A pointer to memory in which to return the remaining reference count of the accessor handle.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
IChapteredRowset IChapteredRowset Interface
Provides an implementation of the OLE DB IAccessor interface for use by applications upgraded from Visual Basic
6.0.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
[[Link]("0c733a93-2a1c-11ce-ade5-00aa0044773d")]
[[Link]([Link]
terfaceIsIUnknown)]
public interface IChapteredRowset
type IChapteredRowset = interface

I nheritance H ierarchy
None

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Methods
AddRefChapter(Int32, Int32)
AddRefChapter(Int32, Int32)

Adds a reference count to an existing chapter.

ReleaseChapter(Int32, Int32)
ReleaseChapter(Int32, Int32)

Releases a chapter.
[Link] IChapteredRowset.
AddRefChapter
I n this Article
Adds a reference count to an existing chapter.

public void AddRefChapter (int hChapter, out int cRefCount);


abstract member AddRefChapter : int * -> unit

Parameters
hChapter Int32 Int32
The handle of the chapter for which to increment the reference count.
cRefCount Int32 Int32
A pointer to memory in which to return the reference count of the chapter handle.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] IChapteredRowset.
ReleaseChapter
I n this Article
Releases a chapter.

public void ReleaseChapter (int hChapter, out int cRefCount);


abstract member ReleaseChapter : int * -> unit

Parameters
hChapter Int32 Int32
The chapter handle.
cRefCount Int32 Int32
A pointer to memory in which to return the reference count of the chapter handle.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
IColumnsInfo IColumnsInfo Interface
Provides an implementation of the OLE DB IColumnInfo interface for use by applications upgraded from Visual Basic
6.0.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
[[Link]("0C733A11-2A1C-11CE-ADE5-00AA0044773D")]
[[Link]([Link]
terfaceIsIUnknown)]
public interface IColumnsInfo
type IColumnsInfo = interface

I nheritance H ierarchy
None

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Methods
GetColumnInfo(Int32, IntPtr, IntPtr)
GetColumnInfo(Int32, IntPtr, IntPtr)

Returns the column metadata needed by most consumers.

MapColumnIDs(Int32, DBID[], Int32[])


MapColumnIDs(Int32, DBID[], Int32[])

Returns an array of ordinals of the columns in a rowset that are identified by the specified column IDs.
[Link] [Link]
Info
I n this Article
Returns the column metadata needed by most consumers.

public void GetColumnInfo (out int cColumns, out IntPtr pColumnInfo, out IntPtr pStringsBuffer);
abstract member GetColumnInfo : * * -> unit

Parameters
cColumns Int32 Int32
A pointer to memory in which to return the number of columns in the rowset; this number includes the bookmark
column, if there is one.
pColumnInfo IntPtr IntPtr
A pointer to memory in which to return an array of DBCOLUMNINFO structures.
pStringsBuffer IntPtr IntPtr
A pointer to memory in which to return a pointer to storage for all string values (names used either within columnid or
for pwszName) within a single allocation block.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
IDs
I n this Article
Returns an array of ordinals of the columns in a rowset that are identified by the specified column IDs.

public void MapColumnIDs (int cColumnIDs, [Link][] columnIDs,


int[] rgColumns);
abstract member MapColumnIDs : int * [Link][] * int[] -> unit

Parameters
cColumnIDs Int32 Int32
The number of column IDs to map.
columnIDs DBID []
An array of IDs of the columns for which to determine the column ordinals.
rgColumns Int32[]
An array of cColumnIDs ordinals of the columns identified by the elements of columnIDs .

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
IConnectionPoint IConnectionPoint Interface
Provides an implementation of the OLE DB IConnectionPoint interface for use by applications upgraded from Visual
Basic 6.0.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
[[Link]("B196B286-BAB4-101A-B69C-00AA00341D07")]
[[Link]([Link]
terfaceIsIUnknown)]
public interface IConnectionPoint
type IConnectionPoint = interface

I nheritance H ierarchy
None

Remarks
For new development, see IConnectionPoint.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Methods
Advise(IntPtr, Int32)
Advise(IntPtr, Int32)

Establishes an advisory connection between the connection point and the caller's sink object.

EnumConnections(IEnumConnections)
EnumConnections(IEnumConnections)

Creates an enumerator object for iteration through the connections that exist to this connection point.

GetConnectionInterface(Guid)
GetConnectionInterface(Guid)

Returns the IID of the outgoing interface managed by this connection point.

GetConnectionPointContainer(IConnectionPointContainer)
GetConnectionPointContainer(IConnectionPointContainer)

Retrieves the IConnectionPointContainer interface pointer to the connectable object that conceptually owns this
connection point.
Unadvise(Int32)
Unadvise(Int32)

Closes an advisory connection that was previously established through the Advise(IntPtr, Int32) method.
[Link] [Link]
I n this Article
Establishes an advisory connection between the connection point and the caller's sink object.
public void Advise (IntPtr sink, out int cookie);
abstract member Advise : nativeint * -> unit

Parameters
sink IntPtr IntPtr
A reference to the sink to receive calls for the outgoing interface managed by this connection point.
cookie Int32 Int32
When this method returns, contains the connection cookie. This parameter is passed uninitialized.

Remarks
For new development, see IConnectionPoint.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] IConnectionPoint.
EnumConnections
I n this Article
Creates an enumerator object for iteration through the connections that exist to this connection point.

public void EnumConnections (out [Link] enumC);


abstract member EnumConnections : -> unit

Parameters
enumC IEnumConnections IEnumConnections
When this method returns, contains the newly created enumerator. This parameter is passed uninitialized.

Remarks
For new development, see IConnectionPoint.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] IConnection
[Link]
I n this Article
Returns the IID of the outgoing interface managed by this connection point.

public void GetConnectionInterface (out Guid piid);


abstract member GetConnectionInterface : -> unit

Parameters
piid Guid Guid
When this parameter returns, contains the IID of the outgoing interface managed by this connection point. This
parameter is passed uninitialized.

Remarks
For new development, see IConnectionPoint.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] I
[Link]
I n this Article
Retrieves the IConnectionPointContainer interface pointer to the connectable object that conceptually owns this
connection point.
public void GetConnectionPointContainer (out
[Link] cpc);
abstract member GetConnectionPointContainer : -> unit

Parameters
cpc IConnectionPointContainer IConnectionPointContainer
When this parameter returns, contains the connectable object's IConnectionPointContainer interface. This parameter
is passed uninitialized.

Remarks
For new development, see IConnectionPoint.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Closes an advisory connection that was previously established through the Advise(IntPtr, Int32) method.
public void Unadvise (int cookie);
abstract member Unadvise : int -> unit

Parameters
cookie Int32 Int32
The connection cookie previously returned from the Advise(IntPtr, Int32) method.

Remarks
For new development, see IConnectionPoint.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
IConnectionPointContainer IConnectionPointContainer
Interface
Provides an implementation of the OLE DB IConnectionPointContainer interface for use by applications upgraded
from Visual Basic 6.0.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
[[Link]("B196B284-BAB4-101A-B69C-00AA00341D07")]
[[Link]([Link]
terfaceIsIUnknown)]
public interface IConnectionPointContainer
type IConnectionPointContainer = interface

I nheritance H ierarchy
None

Remarks
For new development, see IConnectionPointContainer.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Methods
EnumConnectionPoints(IEnumConnectionPoints)
EnumConnectionPoints(IEnumConnectionPoints)

Creates an enumerator of all the connection points supported in the connectable object, one connection point per
IID.

FindConnectionPoint(Guid, IConnectionPoint)
FindConnectionPoint(Guid, IConnectionPoint)

Queries the connectable object about whether it has a connection point for a particular IID, and, if so, returns the
IConnectionPoint interface pointer to that connection point.
[Link] I
[Link]
I n this Article
Creates an enumerator of all the connection points supported in the connectable object, one connection point per IID.

public void EnumConnectionPoints (out [Link]


enumC);
abstract member EnumConnectionPoints : -> unit

Parameters
enumC IEnumConnectionPoints IEnumConnectionPoints
When the method returns, this parameter contains the interface pointer of the enumerator. This parameter is passed
uninitialized.

Remarks
For new development, see IConnectionPointContainer.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] I
[Link]
I n this Article
Queries the connectable object about whether it has a connection point for a particular IID, and, if so, returns the
IConnectionPoint interface pointer to that connection point.

public void FindConnectionPoint (ref Guid riid, out


[Link] cp);
abstract member FindConnectionPoint : * -> unit

Parameters
riid Guid Guid
A reference to the outgoing interface IID whose connection point is being requested.
cp IConnectionPoint IConnectionPoint
When the method returns, this parameter contains the connection point that manages the outgoing interface riid .
This parameter is passed uninitialized.

Remarks
For new development, see IConnectionPointContainer.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
IDataFormat IDataFormat Interface
Provides support for the DataFormat property of the DBinding interface.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
[[Link]("AF08B280-90F2-11D0-9484-00A0C91110ED")]
[[Link]([Link]
terfaceIsIUnknown)]
public interface IDataFormat
type IDataFormat = interface

I nheritance H ierarchy
None

Remarks
This interface is used internally by the tools for upgrading Visual Basic 6.0 applications to Visual Basic.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Methods
Clone(IDataFormat)
Clone(IDataFormat)

Creates a shallow copy of the IDataFormat.

Convert(Int32, Object, Object)


Convert(Int32, Object, Object)

Converts an IDataFormat to a Visual Basic 6.0 Variant .

Default(Boolean)
Default(Boolean)

Determines whether an IDataFormat is the default IDataFormat.

GetBinding(VarEnum, Int32, IRowset, DBCOLUMNINFO, DBBINDING, Int32, Int32)


GetBinding(VarEnum, Int32, IRowset, DBCOLUMNINFO, DBBINDING, Int32, Int32)

Gets a binding for a IDataFormat.


GetData(Int32, IntPtr, Object, Int32, Object)
GetData(Int32, IntPtr, Object, Int32, Object)

Gets the data for an IDataFormat interface.

GetLcid(Int32)
GetLcid(Int32)

Gets a locale ID for an IDataFormat interface.

GetRawData(Int32, IntPtr, Object, Int32)


GetRawData(Int32, IntPtr, Object, Int32)

Gets the raw data for an IDataFormat interface.

GetSubFormatType(Int32)
GetSubFormatType(Int32)

Gets the subformat type for an IDataFormat interface.

ReleaseBinding(Int32)
ReleaseBinding(Int32)

Releases a binding for an IDataFormat interface.

ReleaseData(Int32, IntPtr)
ReleaseData(Int32, IntPtr)

Releases the data for an IDataFormat interface.

SetData(Int32, Object, IntPtr, Object)


SetData(Int32, Object, IntPtr, Object)

Sets the data for an IDataFormat interface.

SetLcid(Int32)
SetLcid(Int32)

Sets the locale ID for an IDataFormat.

SetRawData(Int32, Object, IntPtr)


SetRawData(Int32, Object, IntPtr)

Sets the raw data for an IDataFormat.


SetSubFormatType(Int32)
SetSubFormatType(Int32)

Sets the subformat type for an IDataFormat interface.


[Link] [Link]
I n this Article
Creates a shallow copy of the IDataFormat.
public void Clone (out [Link] newObject);
abstract member Clone : -> unit

Parameters
newObject IDataFormat IDataFormat
An IDataFormat.

Remarks
The IDataFormat interface is used internally by the tools for upgrading Visual Basic 6.0 applications to Visual Basic.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Converts an IDataFormat to a Visual Basic 6.0 Variant .

public void Convert (int cookie, object from, out object varTo);
abstract member Convert : int * obj * -> unit

Parameters
cookie Int32 Int32
An Integer .
from Object Object
An Object.
varTo Object Object
A VariantType.

Remarks
The IDataFormat interface is used internally by the tools for upgrading Visual Basic 6.0 applications to Visual Basic.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Determines whether an IDataFormat is the default IDataFormat.
public void Default (out bool fDefault);
abstract member Default : -> unit

Parameters
fDefault Boolean Boolean
A Boolean.

Remarks
The IDataFormat interface is used internally by the tools for upgrading Visual Basic 6.0 applications to Visual Basic.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets a binding for a IDataFormat.
public void GetBinding ([Link] vtPropHint, int rgfDataFormat,
[Link] rowset, ref
[Link] columnInfo, out
[Link] binding, out int size, out int cookie);
abstract member GetBinding : [Link] * int *
[Link] * * * * -> unit

Parameters
vtPropHint VarEnum VarEnum
A VarEnum.
rgfDataFormat Int32 Int32
An Integer .
rowset IRowset IRowset
An IRowset.
columnInfo DBCOLUMNINFO DBCOLUMNINFO
A DBCOLUMNINFO structure.
binding DBBINDING DBBINDING
A DBBINDING structure.
size Int32 Int32
An Integer .
cookie Int32 Int32
An Integer .

Remarks
The IDataFormat interface is used internally by the tools for upgrading Visual Basic 6.0 applications to Visual Basic.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the data for an IDataFormat interface.
public void GetData (int cookie, IntPtr from, out object varTo, out int dbStatus, object pObject);
abstract member GetData : int * nativeint * * * obj -> unit

Parameters
cookie Int32 Int32
An Integer .
from IntPtr IntPtr
An IntPtr.
varTo Object Object
A VariantType.
dbStatus Int32 Int32
An Integer .
pObject Object Object
An Object .

Remarks
The IDataFormat interface is used internally by the tools for upgrading Visual Basic 6.0 applications to Visual Basic.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets a locale ID for an IDataFormat interface.
public void GetLcid (out int lcid);
abstract member GetLcid : -> unit

Parameters
lcid Int32 Int32
An Integer .

Remarks
The IDataFormat interface is used internally by the tools for upgrading Visual Basic 6.0 applications to Visual Basic.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the raw data for an IDataFormat interface.
public void GetRawData (int cookie, IntPtr from, out object varTo, out int dbStatus);
abstract member GetRawData : int * nativeint * * -> unit

Parameters
cookie Int32 Int32
An Integer .
from IntPtr IntPtr
An IntPtr.
varTo Object Object
A VariantType.
dbStatus Int32 Int32
An Integer .

Remarks
The IDataFormat interface is used internally by the tools for upgrading Visual Basic 6.0 applications to Visual Basic.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
FormatType
I n this Article
Gets the subformat type for an IDataFormat interface.

public void GetSubFormatType (out int subFormatType);


abstract member GetSubFormatType : -> unit

Parameters
subFormatType Int32 Int32
An Integer .

Remarks
The IDataFormat interface is used internally by the tools for upgrading Visual Basic 6.0 applications to Visual Basic.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Releases a binding for an IDataFormat interface.
public void ReleaseBinding (int cookie);
abstract member ReleaseBinding : int -> unit

Parameters
cookie Int32 Int32
An Integer .

Remarks
The IDataFormat interface is used internally by the tools for upgrading Visual Basic 6.0 applications to Visual Basic.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Releases the data for an IDataFormat interface.
public void ReleaseData (int cookie, IntPtr pv);
abstract member ReleaseData : int * nativeint -> unit

Parameters
cookie Int32 Int32
An Integer.
pv IntPtr IntPtr
An IntPtr.

Remarks
The IDataFormat interface is used internally by the tools for upgrading Visual Basic 6.0 applications to Visual Basic.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Sets the data for an IDataFormat interface.
public void SetData (int cookie, out object from, IntPtr pVarTo, object pObject);
abstract member SetData : int * * nativeint * obj -> unit

Parameters
cookie Int32 Int32
An Integer .
from Object Object
An IntPtr.
pVarTo IntPtr IntPtr
A VariantType.
pObject Object Object
An Object.

Remarks
The IDataFormat interface is used internally by the tools for upgrading Visual Basic 6.0 applications to Visual Basic.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Sets the locale ID for an IDataFormat.
public void SetLcid (int lcid);
abstract member SetLcid : int -> unit

Parameters
lcid Int32 Int32
An Integer .

Remarks
The IDataFormat interface is used internally by the tools for upgrading Visual Basic 6.0 applications to Visual Basic.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Sets the raw data for an IDataFormat.
public void SetRawData (int cookie, object from, IntPtr pVarTo);
abstract member SetRawData : int * obj * nativeint -> unit

Parameters
cookie Int32 Int32
An Integer .
from Object Object
An IntPtr.
pVarTo IntPtr IntPtr
A VariantType.

Remarks
The IDataFormat interface is used internally by the tools for upgrading Visual Basic 6.0 applications to Visual Basic.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
FormatType
I n this Article
Sets the subformat type for an IDataFormat interface.

public void SetSubFormatType (int subFormatType);


abstract member SetSubFormatType : int -> unit

Parameters
subFormatType Int32 Int32
An Integer .

Remarks
The IDataFormat interface is used internally by the tools for upgrading Visual Basic 6.0 applications to Visual Basic.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
IDataFormatDisp IDataFormatDisp Interface
Provides support for the DataFormat property of the DBinding interface.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
[[Link]("E675F3F0-91B5-11D0-9484-00A0C91110ED")]
[[Link]([Link]
terfaceIsDual)]
public interface IDataFormatDisp
type IDataFormatDisp = interface

I nheritance H ierarchy
None

Remarks
This interface is used internally by the tools for upgrading Visual Basic 6.0 applications to Visual Basic.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
IEnumConnectionPoints IEnumConnectionPoints
Interface
Manages the definition of the IEnumConnectionPoints interface.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
[[Link]("B196B285-BAB4-101A-B69C-00AA00341D07")]
[[Link]([Link]
terfaceIsIUnknown)]
public interface IEnumConnectionPoints
type IEnumConnectionPoints = interface

I nheritance H ierarchy
None

Remarks
For new development, use IEnumConnectionPoints.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Methods
Clone(IEnumConnectionPoints)
Clone(IEnumConnectionPoints)

Creates a new enumerator that contains the same enumeration state as the current one.

Next(Int32, IConnectionPoint[], Int32)


Next(Int32, IConnectionPoint[], Int32)

Retrieves a specified number of items in the enumeration sequence.

Reset()
Reset()

Resets the enumeration sequence to the beginning.

Skip(Int32)
Skip(Int32)

Skips a specified number of items in the enumeration sequence.


[Link] IEnumConnectionPoints.
Clone
I n this Article
Creates a new enumerator that contains the same enumeration state as the current one.

public void Clone (out [Link] ecp);


abstract member Clone : -> unit

Parameters
ecp IEnumConnectionPoints IEnumConnectionPoints
When this method returns, contains a reference to the newly created enumerator. This parameter is passed
uninitialized.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] IEnumConnectionPoints.
Next
I n this Article
Retrieves a specified number of items in the enumeration sequence.

public void Next (int cConnections, out [Link][]


cp, out int cFetched);
abstract member Next : int * * -> unit

Parameters
cConnections Int32 Int32
The number of IConnectionPoint references to return in cp .
cp IConnectionPoint[]
When this method returns, contains a reference to the enumerated connections. This parameter is passed uninitialized.
cFetched Int32 Int32
When this method returns, contains a reference to the actual number of connections enumerated in cp .

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] IEnumConnectionPoints.
Reset
I n this Article
Resets the enumeration sequence to the beginning.

public void Reset ();


abstract member Reset : unit -> unit

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] IEnumConnectionPoints.
Skip
I n this Article
Skips a specified number of items in the enumeration sequence.

public void Skip (int cConnections);


abstract member Skip : int -> unit

Parameters
cConnections Int32 Int32
The number of elements to skip in the enumeration.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
IEnumConnections IEnumConnections Interface
Manages the definition of the IEnumConnections interface.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
[[Link]("B196B287-BAB4-101A-B69C-00AA00341D07")]
[[Link]([Link]
terfaceIsIUnknown)]
public interface IEnumConnections
type IEnumConnections = interface

I nheritance H ierarchy
None

Remarks
For new development, use IEnumConnections.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Methods
Clone(IEnumConnections)
Clone(IEnumConnections)

Creates a new enumerator that contains the same enumeration state as the current one.

Next(Int32, CONNECTDATA[], Int32)


Next(Int32, CONNECTDATA[], Int32)

Retrieves a specified number of items in the enumeration sequence.

Reset()
Reset()

Resets the enumeration sequence to the start.

Skip(Int32)
Skip(Int32)

Skips a specified number of items in the enumeration sequence.


[Link] [Link]
I n this Article
Creates a new enumerator that contains the same enumeration state as the current one.
public void Clone (out [Link] ec);
abstract member Clone : -> unit

Parameters
ec IEnumConnections IEnumConnections
When this method returns, contains a reference to the newly created enumerator. This parameter is passed
uninitialized.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Retrieves a specified number of items in the enumeration sequence.
public void Next (int cConnections, out [Link][] cd,
out int cFetched);
abstract member Next : int * * -> unit

Parameters
cConnections Int32 Int32
The number of CONNECTDATA structures to return in cd .
cd CONNECTDATA[]
When this method returns, contains a reference to the enumerated connections. This parameter is passed uninitialized.
cFetched Int32 Int32
When this method returns, contains a reference to the actual number of connections enumerated in cd .

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Resets the enumeration sequence to the start.
public void Reset ();
abstract member Reset : unit -> unit

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Skips a specified number of items in the enumeration sequence.
public void Skip (int cConnections);
abstract member Skip : int -> unit

Parameters
cConnections Int32 Int32
The number of elements to skip in the enumeration.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
ImageListArray ImageListArray Class
Provides a control array of ImageList controls.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class ImageListArray : [Link],
[Link]
type ImageListArray = class
inherit BaseControlArray
interface IExtenderProvider

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component
BaseControlArray BaseControlArray

Remarks
The ImageListArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0 ImageList array.
It does not provide the design-time features of a Visual Basic 6.0 control array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
ImageListArray()
ImageListArray()

Initializes a new instance of the ImageListArray class.

ImageListArray(IContainer)
ImageListArray(IContainer)

Initializes a new instance of the ImageListArray class, specifying its container.

Properties
Item[Int16]
Item[Int16]

Gets a specific element of an ImageListArray by index. Read-only.


Methods
CanExtend(Object)
CanExtend(Object)

Gets a value that determines whether a control is a member of an ImageListArray.

GetControlInstanceType()
GetControlInstanceType()

Overrides GetControlInstanceType().

GetIndex(ImageList)
GetIndex(ImageList)

Gets the index of an ImageList in an ImageListArray.

HookUpControlEvents(Object)
HookUpControlEvents(Object)

Overrides HookUpControlEvents(Object).

ResetIndex(ImageList)
ResetIndex(ImageList)

The ResetIndex method is not supported in the ImageListArray class.

SetIndex(ImageList, Int16)
SetIndex(ImageList, Int16)

Sets the index of the initial ImageList in a ImageListArray.

ShouldSerializeIndex(ImageList)
ShouldSerializeIndex(ImageList)

Returns a value that indicates whether an ImageList is a member of this ImageListArray.


[Link] [Link]
I n this Article
Gets a value that determines whether a control is a member of an ImageListArray.
public bool CanExtend (object target);
abstract member CanExtend : obj -> bool
override [Link] : obj -> bool

Parameters
target Object Object
An ImageList control.
Returns
Boolean Boolean
true if target is a member of the control array; otherwise false .

Remarks
The CanExtend method can be used to determine whether a specific ImageList control is the base element of the
control array from which the other elements were cloned.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ImageListArray.
GetControlInstanceType
I n this Article
Overrides GetControlInstanceType().

protected override Type GetControlInstanceType ();


override [Link] : unit -> Type

Returns
Type Type
The ImageListArray class is the base class for all control arrays that are used in applications upgraded from Visual
Basic 6.0. Because this class is not typically used to create an instance of the class, this Protected method is usually
not called directly but is instead called by a derived class.

Remarks
This method cannot be called from your application's code. Use the GetType method instead.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the index of an ImageList in an ImageListArray.
public short GetIndex ([Link] o);
member [Link] : [Link] -> int16

Parameters
o ImageList ImageList
An ImageList in the control array.
Returns
Int16 Int16
A Short that represents the index of the specified ImageList.

Remarks
This method can be used to retrieve the index for the selected ImageList.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ImageListArray.
HookUpControlEvents
I n this Article
Overrides HookUpControlEvents(Object).

protected override void HookUpControlEvents (object o);


override [Link] : obj -> unit

Parameters
o Object Object
An Object.

Remarks
This method cannot be called from your application's code. Use AddHandler to hook up events for any controls that
are added by using the Load method.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
ImageListArray ImageListArray
I n this Article

Overloads
ImageListArray()
Initializes a new instance of the ImageListArray class.

ImageListArray(IContainer) ImageListArray(IContainer)
Initializes a new instance of the ImageListArray class,
specifying its container.

ImageListArray()
Initializes a new instance of the ImageListArray class.
public ImageListArray ();

Remarks
When you instantiate an ImageListArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

ImageListArray(IContainer) ImageListArray(IContainer)
Initializes a new instance of the ImageListArray class, specifying its container.

public ImageListArray ([Link] Container);


new [Link] : [Link] ->
[Link]

Parameters
Container IContainer IContainer
The IContainer where the control array will be hosted.
Remarks
When you instantiate an ImageListArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link][Int16] [Link][Int16]
I n this Article
Gets a specific element of an ImageListArray by index. Read-only.
public [Link] this[short Index] { get; }
member [Link](int16) : [Link]

Parameters
Index Int16 Int16
A Short that specifies the position of an element of the control array.
Returns
ImageList ImageList
An ImageList at the specified Index in the control array.

Remarks
The Item property is the default property for a control array. Therefore, the following lines of code are equivalent.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
The ResetIndex method is not supported in the ImageListArray class.

public void ResetIndex ([Link] o);


member [Link] : [Link] -> unit

Parameters
o ImageList ImageList
A Control.

Remarks
This method is not supported, and calling it does not raise an exception.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Sets the index of the initial ImageList in a ImageListArray.
public void SetIndex ([Link] o, short Index);
member [Link] : [Link] * int16 -> unit

Parameters
o ImageList ImageList
An ImageList in the control array.
Index Int16 Int16
A Short that represents the index of the specified ImageList.

Remarks
The SetIndex method should only be called when you are creating the initial element in the control array. To add
subsequent elements, call the Load method and specify the Index .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ImageListArray.
ShouldSerializeIndex
I n this Article
Returns a value that indicates whether an ImageList is a member of this ImageListArray.

public bool ShouldSerializeIndex ([Link] o);


member [Link] : [Link] -> bool

Parameters
o ImageList ImageList
An ImageList in the control array.
Returns
Boolean Boolean
true if o is a member of this control array; otherwise, false .

Remarks
If the specified ImageList is a member of a different ImageListArray, ShouldSerializeIndex returns false .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
IRowPosition IRowPosition Interface
Provides an implementation of the OLE DB IRowPosition interface for use by applications upgraded from Visual
Basic 6.0.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
[[Link]("0C733A94-2A1C-11CE-ADE5-00AA0044773D")]
[[Link]([Link]
terfaceIsIUnknown)]
public interface IRowPosition
type IRowPosition = interface

I nheritance H ierarchy
None

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Methods
ClearRowPosition()
ClearRowPosition()

Clears the row position.

GetRowPosition(Int32, Int32, Int32)


GetRowPosition(Int32, Int32, Int32)

Retrieves the current row position.

GetRowset(Guid, Object)
GetRowset(Guid, Object)

Returns the current underlying Rowset .

Initialize(Object)
Initialize(Object)

Initializes the row position object by setting the source rowset.


SetRowPosition(Int32, Int32, Int32)
SetRowPosition(Int32, Int32, Int32)

Sets the current row position.


[Link] [Link]
Position
I n this Article
Clears the row position.

public void ClearRowPosition ();


abstract member ClearRowPosition : unit -> unit

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Position
I n this Article
Retrieves the current row position.

public void GetRowPosition (out int hChapter, out int hRow, out int dbPositionFlags);
abstract member GetRowPosition : * * -> unit

Parameters
hChapter Int32 Int32
A pointer to memory in which to return the chapter associated with the current row. If the rowset is not chaptered,
hChapter is set to DB_NULL_HCHAPTER . If hChapter is a null pointer on input, no chapter value is returned.

hRow Int32 Int32


A pointer to memory in which to return the hRow of the current row position; or DB_NULL_HROW if there is no current
row position.
dbPositionFlags Int32 Int32
A pointer to memory in which to return additional information about the row position.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Returns the current underlying Rowset .

public void GetRowset (ref Guid iid, out object rowset);


abstract member GetRowset : * -> unit

Parameters
iid Guid Guid
The requested IID for the rowset returned in rowset .
rowset Object Object
A pointer to memory in which to return the interface pointer of the underlying rowset.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Initializes the row position object by setting the source rowset.
public void Initialize (object rowset);
abstract member Initialize : obj -> unit

Parameters
rowset Object Object
Pointer to an interface on the source rowset.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Position
I n this Article
Sets the current row position.

public void SetRowPosition (int hChapter, int hRow, int dbPositionFlags);


abstract member SetRowPosition : int * int * int -> unit

Parameters
hChapter Int32 Int32
The chapter associated with the current row, or with DB_NULL_HCHAPTER if the rowset is not chaptered.
hRow Int32 Int32
The new current row.
dbPositionFlags Int32 Int32
A flag indicating additional information about the new row position.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
IRowPositionChange IRowPositionChange Interface
Provides an implementation of the OLE DB IRowPositionChange interface for use by applications upgraded from
Visual Basic 6.0.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
[[Link]("0997A571-126E-11D0-9F8A-00A0C9A0631E")]
[[Link]([Link]
terfaceIsIUnknown)]
public interface IRowPositionChange
type IRowPositionChange = interface

I nheritance H ierarchy
None

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Methods
OnRowPositionChange(Int32, Int32, Int32)
OnRowPositionChange(Int32, Int32, Int32)

Notifies the consumer of a row position object of a change to the current row position.
[Link] IRow
[Link]
I n this Article
Notifies the consumer of a row position object of a change to the current row position.

public int OnRowPositionChange (int dbReason, int eventPhase, int fCantDeny);


abstract member OnRowPositionChange : int * int * int -> int

Parameters
dbReason Int32 Int32
The reason of the event that caused this change.
eventPhase Int32 Int32
The phase of this notification.
fCantDeny Int32 Int32
When this flag is set to true , the consumer cannot veto the event by returning S_FALSE because the provider cannot
undo the event.
Returns
Int32 Int32
An Integer that represents the result.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
IRowset IRowset Interface
Provides an implementation of the OLE DB IRowset interface for use by applications upgraded from Visual Basic 6.0.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
[[Link]("0C733A7C-2A1C-11CE-ADE5-00AA0044773D")]
[[Link]([Link]
terfaceIsIUnknown)]
public interface IRowset
type IRowset = interface

I nheritance H ierarchy
None

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Methods
AddRefRows(Int32, Int32[], Int32[], Int32[])
AddRefRows(Int32, Int32[], Int32[], Int32[])

Adds a reference count to an existing row handle.

GetData(Int32, Int32, IntPtr)


GetData(Int32, Int32, IntPtr)

Retrieves data from the rowset's copy of the row.

GetNextRows(Int32, Int32, Int32, Int32, Int32[])


GetNextRows(Int32, Int32, Int32, Int32, Int32[])

Fetches rows sequentially, remembering the previous position.

ReleaseRows(Int32, Int32[], IntPtr, IntPtr, IntPtr)


ReleaseRows(Int32, Int32[], IntPtr, IntPtr, IntPtr)

Releases rows.

RestartPosition(Int32)
RestartPosition(Int32)

Repositions the next fetch position to its initial position.


[Link] [Link]
I n this Article
Adds a reference count to an existing row handle.
public void AddRefRows (int cRows, int[] hRows, out int[] refCounts, out int[] rowStatus);
abstract member AddRefRows : int * int[] * * -> unit

Parameters
cRows Int32 Int32
The number of rows for which to increment the reference count.
hRows Int32[]
An array of row handles for which to increment the reference count. The reference count of row handles is incremented
by one for each time they appear in the array.
refCounts Int32[]
An array with cRows elements in which to return the new reference count for each row handle. The consumer allocates
memory for this array. If refCounts is a null pointer, no reference counts are returned.
rowStatus Int32[]
An array with cRows elements in which to return values indicating the status of each row specified in hRows .

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Retrieves data from the rowset's copy of the row.
public void GetData (int hRow, int hAccessor, IntPtr pData);
abstract member GetData : int * int * nativeint -> unit

Parameters
hRow Int32 Int32
The handle of the row from which to get the data.
hAccessor Int32 Int32
The handle of the accessor to use.
pData IntPtr IntPtr
A pointer to a buffer in which to return the data.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Fetches rows sequentially, remembering the previous position.
public void GetNextRows (int hChapter, int lRowsOffset, int cRows, out int cRowsObtained, out int[]
hRows);
abstract member GetNextRows : int * int * int * * -> unit

Parameters
hChapter Int32 Int32
The chapter handle designating the rows to fetch.
lRowsOffset Int32 Int32
The signed count of rows to skip before fetching rows. Deleted rows that the provider has removed from the rowset
are not counted in the skip.
cRows Int32 Int32
The number of rows to fetch. A negative number means to fetch backward.
cRowsObtained Int32 Int32
A pointer to memory in which to return the actual number of fetched rows.
hRows Int32[]
A pointer to memory in which to return an array of handles of the fetched rows.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Releases rows.
public int ReleaseRows (int cRows, int[] hRows, IntPtr rowOptions, IntPtr rowRefCounts, IntPtr
rgRowStatus);
abstract member ReleaseRows : int * int[] * nativeint * nativeint * nativeint -> int

Parameters
cRows Int32 Int32
The number of rows to release.
hRows Int32[]
An array of handles of the rows to be released. The row handles do not need to form a logical cluster; they may have
been obtained at separate times and need not be for contiguous underlying rows. Row handles are decremented by
one reference count for each time they appear in the array.
rowOptions IntPtr IntPtr
An array of cRows elements containing bitmasks indicating additional options to be specified when a row is released.
rowRefCounts IntPtr IntPtr
An array with cRows elements in which to return the new reference count of each row.
rgRowStatus IntPtr IntPtr
An array with cRows elements in which to return values indicating the status of each row specified in hRows .
Returns
Int32 Int32
An Integer representing the result.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Repositions the next fetch position to its initial position.
public int RestartPosition (int hChapter);
abstract member RestartPosition : int -> int

Parameters
hChapter Int32 Int32
The chapter handle designating the rows on which to reposition.
Returns
Int32 Int32
An Integer representing the result.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
IRowsetChange IRowsetChange Interface
Provides an implementation of the OLE DB IRowsetChange interface for use by applications upgraded from Visual
Basic 6.0.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
[[Link]("0C733A05-2A1C-11CE-ADE5-00AA0044773D")]
[[Link]([Link]
terfaceIsIUnknown)]
public interface IRowsetChange
type IRowsetChange = interface

I nheritance H ierarchy
None

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Methods
DeleteRows(Int32, Int32, Int32[], Int32[])
DeleteRows(Int32, Int32, Int32[], Int32[])

Deletes rows.

InsertRow(Int32, Int32, IntPtr, Int32)


InsertRow(Int32, Int32, IntPtr, Int32)

Creates and initializes a new row.

SetData(Int32, Int32, IntPtr)


SetData(Int32, Int32, IntPtr)

Sets data values in one or more columns in a row.


[Link] [Link]
I n this Article
Deletes rows.
public void DeleteRows (int hChapterReserved, int cRows, int[] rghRows, out int[] rgRowStatus);
abstract member DeleteRows : int * int * int[] * -> unit

Parameters
hChapterReserved Int32 Int32
The chapter handle.
cRows Int32 Int32
The number of rows to be deleted.
rghRows Int32[]
An array of handles of the rows to be deleted.
rgRowStatus Int32[]
An array with cRows elements in which to return values indicating the status of each row specified in rghRows .

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Creates and initializes a new row.
public void InsertRow (int hChapterReserved, int hAccessor, IntPtr pData, out int hRow);
abstract member InsertRow : int * int * nativeint * -> unit

Parameters
hChapterReserved Int32 Int32
The chapter handle.
hAccessor Int32 Int32
The handle of the accessor to use.
pData IntPtr IntPtr
A pointer to memory containing the new data values, at offsets that correspond to the bindings in the accessor.
hRow Int32 Int32
A pointer to memory in which to return the handle of the new row.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Sets data values in one or more columns in a row.
public void SetData (int hRow, int hAccessor, IntPtr pData);
abstract member SetData : int * int * nativeint -> unit

Parameters
hRow Int32 Int32
The handle of the row in which to set data.
hAccessor Int32 Int32
The handle of the accessor to use.
pData IntPtr IntPtr
A pointer to memory containing the new data values, at offsets that correspond to the bindings in the accessor.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
IRowsetIdentity IRowsetIdentity Interface
Provides an implementation of the OLE DB IRowsetIdentity interface for use by applications upgraded from Visual
Basic 6.0.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
[[Link]("0C733A09-2A1C-11CE-ADE5-00AA0044773D")]
[[Link]([Link]
terfaceIsIUnknown)]
public interface IRowsetIdentity
type IRowsetIdentity = interface

I nheritance H ierarchy
None

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Methods
IsSameRow(Int32, Int32)
IsSameRow(Int32, Int32)

Compares two row handles to see whether they refer to the same row instance.
[Link] [Link]
I n this Article
Compares two row handles to see whether they refer to the same row instance.
public int IsSameRow (int hThisRow, int hThatRow);
abstract member IsSameRow : int * int -> int

Parameters
hThisRow Int32 Int32
The handle of an active row.
hThatRow Int32 Int32
The handle of an active row.
Returns
Int32 Int32
An Integer representing the result.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
IRowsetInfo IRowsetInfo Interface
Provides an implementation of the OLE DB IRowsetInfo interface for use by applications upgraded from Visual Basic
6.0.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
[[Link]("0C733A55-2A1C-11CE-ADE5-00AA0044773D")]
[[Link]([Link]
terfaceIsIUnknown)]
public interface IRowsetInfo
type IRowsetInfo = interface

I nheritance H ierarchy
None

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Methods
GetProperties(Int32, DBPROPIDSET[], Int32, IntPtr)
GetProperties(Int32, DBPROPIDSET[], Int32, IntPtr)

Returns the current settings of all properties supported by the rowset.

GetReferencedRowset(Int32, Guid, Object)


GetReferencedRowset(Int32, Guid, Object)

Returns an interface pointer to the rowset to which a bookmark or chapter applies.

GetSpecification(Guid, Object)
GetSpecification(Guid, Object)

Returns an interface pointer on the object (command or session) that created this rowset.
[Link] [Link]
I n this Article
Returns the current settings of all properties supported by the rowset.
public void GetProperties (int cPropertyIDSets,
[Link][] rgPropertyIDSets, out int cPropertySets, out
IntPtr prgPropertySets);
abstract member GetProperties : int * [Link][] * * ->
unit

Parameters
cPropertyIDSets Int32 Int32
The number of DBPROPIDSET structures in rgPropertyIDSets .

rgPropertyIDSets DBPROPIDSET[]
An array of DBPROPIDSET structures.
cPropertySets Int32 Int32
A pointer to memory in which to return the number of DBPROPSET structures returned in prgPropertySets .
prgPropertySets IntPtr IntPtr
A pointer to memory in which to return an array of DBPROPSET structures.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ReferencedRowset
I n this Article
Returns an interface pointer to the rowset to which a bookmark or chapter applies.

public void GetReferencedRowset (int iOrdinal, Guid riid, out object referencedRowset);
abstract member GetReferencedRowset : int * Guid * -> unit

Parameters
iOrdinal Int32 Int32
The bookmark or chapter column for which to get the related rowset.
riid Guid Guid
The IID of the interface pointer to return in referencedRowset .

referencedRowset Object Object


A pointer to memory in which to return an IUnknown interface pointer on the rowset that interprets values from this
column.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Specification
I n this Article
Returns an interface pointer on the object (command or session) that created this rowset.

public void GetSpecification (Guid riid, out object specification);


abstract member GetSpecification : Guid * -> unit

Parameters
riid Guid Guid
The IID of the interface on which to return a pointer.
specification Object Object
A pointer to memory in which to return the interface pointer.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
IRowsetNotify IRowsetNotify Interface
Provides an implementation of the OLE DB IRowsetNotify interface for use by applications upgraded from Visual
Basic 6.0.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
[[Link]("0c733a83-2a1c-11ce-ade5-00aa0044773d")]
[[Link]([Link]
terfaceIsIUnknown)]
public interface IRowsetNotify
type IRowsetNotify = interface

I nheritance H ierarchy
None

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Methods
OnFieldChange(IRowset, Int32, Int32, Int32[], Int32, Int32, Int32)
OnFieldChange(IRowset, Int32, Int32, Int32[], Int32, Int32, Int32)

Notifies the consumer of any change to the value of a column.

OnRowChange(IRowset, Int32, Int32[], Int32, Int32, Int32)


OnRowChange(IRowset, Int32, Int32[], Int32, Int32, Int32)

Notifies the consumer of the first change to a row or of any change that affects the entire row.

OnRowsetChange(IRowset, Int32, Int32, Int32)


OnRowsetChange(IRowset, Int32, Int32, Int32)

Notifies the consumer of any change affecting the entire rowset.


[Link] [Link]
Change
I n this Article
Notifies the consumer of any change to the value of a column.

public int OnFieldChange ([Link] rowset, int hRow, int


cColumns, int[] rgColumns, int dbReason, int eventPhase, int fCantDeny);
abstract member OnFieldChange : [Link] * int * int * int[]
* int * int * int -> int

Parameters
rowset IRowset IRowset
A pointer to the rowset, because the consumer may be receiving notifications from multiple rowsets and this identifies
which one is calling.
hRow Int32 Int32
The handle of the row in which the column value was changed.
cColumns Int32 Int32
The count of columns in rgColumns .
rgColumns Int32[]
An array of columns in the row for which the value was changed.
dbReason Int32 Int32
The reason for the change, as indicated by the value of DBREASON .
eventPhase Int32 Int32
The phase of this notification.
fCantDeny Int32 Int32
When this flag is set to true , the consumer cannot veto the event by returning S_FALSE because the provider cannot
undo the event.
Returns
Int32 Int32
An Integer representing the result.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Change
I n this Article
Notifies the consumer of the first change to a row or of any change that affects the entire row.

public int OnRowChange ([Link] rowset, int cRows, int[]


rghRows, int dbReason, int eventPhase, int fCantDeny);
abstract member OnRowChange : [Link] * int * int[] * int *
int * int -> int

Parameters
rowset IRowset IRowset
A pointer to the rowset, because the consumer may be receiving notifications from multiple rowsets and this identifies
which one is calling.
cRows Int32 Int32
The count of row handles in rghRows .
rghRows Int32[]
An array of handles of rows that are changing.
dbReason Int32 Int32
The reason for the change, as indicated by the value of DBREASON .
eventPhase Int32 Int32
The phase of this notification.
fCantDeny Int32 Int32
When this flag is set to true , the consumer cannot veto the event by returning S_FALSE because the provider cannot
undo the event.
Returns
Int32 Int32
An Integer representing the result.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
RowsetChange
I n this Article
Notifies the consumer of any change affecting the entire rowset.

public int OnRowsetChange ([Link] rowset, int dbReason, int


eventPhase, int fCantDeny);
abstract member OnRowsetChange : [Link] * int * int * int -
> int

Parameters
rowset IRowset IRowset
A pointer to the rowset, because the consumer may be receiving notifications from multiple rowsets and this identifies
which one is calling.
dbReason Int32 Int32
The reason for the change, as indicated by the value of DBREASON .
eventPhase Int32 Int32
The phase of this notification.
fCantDeny Int32 Int32
When this flag is set to true , the consumer cannot veto the event by returning S_FALSE because the provider cannot
undo the event.
Returns
Int32 Int32
An Integer representing the result.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
LabelArray LabelArray Class
Provides a control array of Label controls.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class LabelArray : [Link],
[Link]
type LabelArray = class
inherit BaseControlArray
interface IExtenderProvider

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component
BaseControlArray BaseControlArray

Remarks
The LabelArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0 Label array. It does
not provide the design-time features of a Visual Basic 6.0 control array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
LabelArray()
LabelArray()

Initializes a new instance of the LabelArray class.

LabelArray(IContainer)
LabelArray(IContainer)

Initializes a new instance of the LabelArray class, specifying its container.

Properties
Item[Int16]
Item[Int16]

Gets a specific element of a LabelArray by index. Read-only.


Methods
CanExtend(Object)
CanExtend(Object)

Gets a value that determines whether a control is a member of a LabelArray.

GetControlInstanceType()
GetControlInstanceType()

Overrides GetControlInstanceType().

GetIndex(Label)
GetIndex(Label)

Gets the index of a Label in a LabelArray.

HookUpControlEvents(Object)
HookUpControlEvents(Object)

Overrides HookUpControlEvents(Object).

ResetIndex(Label)
ResetIndex(Label)

The ResetIndex method is not supported in the LabelArray class.

SetIndex(Label, Int16)
SetIndex(Label, Int16)

Sets the index of the initial Label in a LabelArray.

ShouldSerializeIndex(Label)
ShouldSerializeIndex(Label)

Returns a value that indicates whether a Label is a member of this LabelArray.

Events
AutoSizeChanged
AutoSizeChanged

Occurs when the value of the AutoSize property changes.

BackColorChanged
BackColorChanged

Occurs when the value of the BackColor property changes.

BindingContextChanged
BindingContextChanged

Occurs when the value of the BindingContext property changes.

CausesValidationChanged
CausesValidationChanged

Occurs when the value of the CausesValidation property changes.

ChangeUICues
ChangeUICues

Occurs when the focus or keyboard user interface (UI) cues change.

Click
Click

Occurs when a Label in a LabelArray is clicked.

ClientSizeChanged
ClientSizeChanged

Occurs when the value of the ClientSize property changes.

ContextMenuChanged
ContextMenuChanged

Occurs when the value of the ContextMenu property changes.

ContextMenuStripChanged
ContextMenuStripChanged

Occurs when the value of the ContextMenuStrip property changes.

ControlAdded
ControlAdded

Occurs when a new control is added to the LabelArray.


ControlRemoved
ControlRemoved

Occurs when a control is removed from the LabelArray.

CursorChanged
CursorChanged

Occurs when the value of the Cursor property changes.

DockChanged
DockChanged

Occurs when the value of the Dock property changes.

DoubleClick
DoubleClick

Occurs when a Label control in a LabelArray is double-clicked.

DragDrop
DragDrop

Occurs when a drag-and-drop operation is completed.

DragEnter
DragEnter

Occurs when an object is dragged into the control's bounds.

DragLeave
DragLeave

Occurs when an object is dragged out of the control's bounds.

DragOver
DragOver

Occurs when an object is dragged over the control's bounds.

EnabledChanged
EnabledChanged

Occurs when the value of the Enabled property changes.


Enter
Enter

Occurs when the control is entered.

FontChanged
FontChanged

Occurs when the value of the Font property changes.

ForeColorChanged
ForeColorChanged

Occurs when the value of the ForeColor property changes.

GiveFeedback
GiveFeedback

Occurs during a drag operation.

HelpRequested
HelpRequested

Occurs when the user requests help for a control.

Layout
Layout

Occurs when a control should reposition its child controls.

Leave
Leave

Occurs when the input focus leaves the control.

LocationChanged
LocationChanged

Occurs when the value of the Location property changes.

MarginChanged
MarginChanged

Occurs when the value of the Margin property changes.


MouseCaptureChanged
MouseCaptureChanged

Occurs when the control loses or gains mouse capture.

MouseClick
MouseClick

Occurs when the control is clicked by the mouse.

MouseDoubleClick
MouseDoubleClick

Occurs when the control is double-clicked by the mouse.

MouseDown
MouseDown

Occurs when the mouse pointer is over the control and a mouse button is pressed.

MouseEnter
MouseEnter

Occurs when the mouse pointer enters the control.

MouseHover
MouseHover

Occurs when the mouse pointer rests on the control.

MouseLeave
MouseLeave

Occurs when the mouse pointer leaves the control.

MouseMove
MouseMove

Occurs when the mouse pointer is moved over the control.

MouseUp
MouseUp

Occurs when the mouse pointer is over the control and a mouse button is released.
Move
Move

Occurs when the control is moved.

PaddingChanged
PaddingChanged

Occurs when the control's Padding property changes.

Paint
Paint

Occurs when the control is redrawn.

ParentChanged
ParentChanged

Occurs when the control's Parent property changes.

QueryAccessibilityHelp
QueryAccessibilityHelp

Occurs when an AccessibleObject is providing Help to accessibility applications.

QueryContinueDrag
QueryContinueDrag

Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.

RegionChanged
RegionChanged

Occurs when the value of the Region property changes.

Resize
Resize

Occurs when the control is resized.

RightToLeftChanged
RightToLeftChanged

Occurs when the RightToLeftChanged property value changes.


SizeChanged
SizeChanged

Occurs when the Size property value changes.

StyleChanged
StyleChanged

Occurs when the control style changes.

SystemColorsChanged
SystemColorsChanged

Occurs when the system colors change.

TabIndexChanged
TabIndexChanged

Occurs when the TabIndex property value changes.

TextAlignChanged
TextAlignChanged

Occurs when the TextAlign property value changes.

TextChanged
TextChanged

Occurs when the Text property value changes.

Validated
Validated

Occurs when the control is finished validating.

Validating
Validating

Occurs when the control is validating.

VisibleChanged
VisibleChanged

Occurs when the Visible property value changes.


[Link] [Link]
Changed
I n this Article
Occurs when the value of the AutoSize property changes.

public event EventHandler AutoSizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the AutoSize property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the BackColor property changes.

public event EventHandler BackColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BackColor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ContextChanged
I n this Article
Occurs when the value of the BindingContext property changes.

public event EventHandler BindingContextChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BindingContext property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets a value that determines whether a control is a member of a LabelArray.
public bool CanExtend (object target);
abstract member CanExtend : obj -> bool
override [Link] : obj -> bool

Parameters
target Object Object
A Label control.
Returns
Boolean Boolean
true if target is a member of the control array; otherwise false .

Remarks
The CanExtend method can be used to determine whether a specific Label control is the base element of the control
array from which the other elements were cloned.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ValidationChanged
I n this Article
Occurs when the value of the CausesValidation property changes.

public event EventHandler CausesValidationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the CausesValidation property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the focus or keyboard user interface (UI) cues change.
public event [Link] ChangeUICues;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a Label in a LabelArray is clicked.
public event EventHandler Click;
member [Link] : EventHandler

Remarks
The Click event passes an EventArgs to its event handler. Therefore it only indicates that a click has occurred. If you
need more specific mouse information (button, number of clicks, wheel rotation, or location), use the MouseClick event.
However, the MouseClick event will not be raised if the click is caused by action other than that of the mouse, such as
pressing the ENTER key.
A double-click is determined by the mouse settings of the user's operating system. The user can set the time between
clicks of a mouse button that should be considered a double-click instead of two clicks. The Click event is raised every
time that a control is double-clicked. For example, if you have event handlers for the Click and DoubleClick events of
a control, the Click and DoubleClick events are raised when the control is double-clicked and both methods are
called. If a control is double-clicked and that control does not support the DoubleClick event, the Click event might be
raised two times.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the ClientSize property changes.

public event EventHandler ClientSizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ClientSize property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
MenuChanged
I n this Article
Occurs when the value of the ContextMenu property changes.

[[Link](false)]
public event EventHandler ContextMenuChanged;
member [Link] : EventHandler

Attributes BrowsableAttribute

Remarks
This event is raised if the ContextMenu property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] LabelArray.
ContextMenuStripChanged
I n this Article
Occurs when the value of the ContextMenuStrip property changes.

public event EventHandler ContextMenuStripChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ContextMenuStrip property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a new control is added to the LabelArray.
public event [Link] ControlAdded;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a control is removed from the LabelArray.
public event [Link] ControlRemoved;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the value of the Cursor property changes.
public event EventHandler CursorChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Cursor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the value of the Dock property changes.
public event EventHandler DockChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Dock property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a Label control in a LabelArray is double-clicked.
public event EventHandler DoubleClick;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a drag-and-drop operation is completed.
public event [Link] DragDrop;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged into the control's bounds.
public event [Link] DragEnter;
member [Link] : [Link]

Remarks
The DragEnter event is raised when the user first drags the mouse cursor over the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged out of the control's bounds.
public event EventHandler DragLeave;
member [Link] : EventHandler

Remarks
The DragLeave event is raised when the user drags the cursor out of the control or the user cancels the current drag-
and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged over the control's bounds.
public event [Link] DragOver;
member [Link] : [Link]

Remarks
The DragOver event is raised when the mouse cursor moves within the bounds of the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Enabled property changes.

public event EventHandler EnabledChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Enabled property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is entered.
public event EventHandler Enter;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), or by calling the Select or
SelectNextControl method, focus events occur in the following order:
Enter

GotFocus
Leave
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter

GotFocus
LostFocus
Leave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the value of the Font property changes.
public event EventHandler FontChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Font property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the ForeColor property changes.

public event EventHandler ForeColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ForeColor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ControlInstanceType
I n this Article
Overrides GetControlInstanceType().

protected override Type GetControlInstanceType ();


override [Link] : unit -> Type

Returns
Type Type
This method must be overridden. The LabelArray class is the base class for all control arrays that are used in
applications upgraded from Visual Basic 6.0. Because this class is not typically used to create an instance of the class,
this Protected method is usually not called directly but is instead called by a derived class.

Remarks
This method cannot be called from your application's code. Use the GetType method instead.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the index of a Label in a LabelArray.
public short GetIndex ([Link] o);
member [Link] : [Link] -> int16

Parameters
o Label Label
A Label in the control array.
Returns
Int16 Int16
A Short that represents the index of the specified Label.

Remarks
This method can be used to retrieve the index for the specified Label.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs during a drag operation.
public event [Link] GiveFeedback;
member [Link] : [Link]

Remarks
The GiveFeedback event is raised when a drag-and-drop operation is started. By using the GiveFeedback event, the
source of a drag event can modify the appearance of the mouse pointer in order to give the user visual feedback during
a drag-and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the user requests help for a control.
public event [Link] HelpRequested;
member [Link] : [Link]

Remarks
The HelpRequested event is typically raised when the user presses the F1 key or an associated context-sensitive Help
button is clicked.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ControlEvents
I n this Article
Overrides HookUpControlEvents(Object).

protected override void HookUpControlEvents (object o);


override [Link] : obj -> unit

Parameters
o Object Object
An Object.

Remarks
This method cannot be called from your application's code. Use AddHandler to hook up events for any controls that
are added by using the Load method.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link][Int16] [Link][Int16]
I n this Article
Gets a specific element of a LabelArray by index. Read-only.
public [Link] this[short Index] { get; }
member [Link](int16) : [Link]

Parameters
Index Int16 Int16
A Short that specifies the position of an element of the control array.
Returns
Label Label
A Label at the specified Index in the control array.

Remarks
The Item property is the default property for a control array. Therefore, the following lines of code are equivalent.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
LabelArray LabelArray
I n this Article

Overloads
LabelArray()
Initializes a new instance of the LabelArray class.

LabelArray(IContainer) LabelArray(IContainer)
Initializes a new instance of the LabelArray class, specifying its
container.

LabelArray()
Initializes a new instance of the LabelArray class.
public LabelArray ();

Remarks
When you instantiate a LabelArray, you must also call the SetIndex method to create the initial element in the array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

LabelArray(IContainer) LabelArray(IContainer)
Initializes a new instance of the LabelArray class, specifying its container.
public LabelArray ([Link] Container);
new [Link] : [Link] ->
[Link]

Parameters
Container IContainer IContainer
The IContainer where the control array will be hosted.
Remarks
When you instantiate a LabelArray, you must also call the SetIndex method to create the initial element in the array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a control should reposition its child controls.
public event [Link] Layout;
member [Link] : [Link]

Remarks
The Layout event occurs when child controls are added or removed, when the bounds of the control changes, and
when other changes occur that can affect the layout of the control. The layout event can be suppressed by using the
SuspendLayout and ResumeLayout methods. Suspending layout enables you to perform multiple actions on a control
without having to perform a layout for each change. For example, if you resize and move a control, each operation
would raise a Layout event.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the input focus leaves the control.
public event EventHandler Leave;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), or by calling the Select or
SelectNextControl method, focus events occur in the following order:
Enter
GotFocus
Leave

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Location property changes.

public event EventHandler LocationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Location property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the value of the Margin property changes.
public event EventHandler MarginChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Margin property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
CaptureChanged
I n this Article
Occurs when the control loses or gains mouse capture.

public event EventHandler MouseCaptureChanged;


member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is clicked by the mouse.
public event [Link] MouseClick;
member [Link] : [Link]

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown
Click / MouseClick
MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate an MouseDoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a control. They are often raised by other actions, such as pressing the
ENTER key when the control has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Click
I n this Article
Occurs when the control is double-clicked by the mouse.

public event [Link] MouseDoubleClick;


member [Link] : [Link]

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown
Click
MouseClick
MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate a DoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a shape. They are often raised by other actions, such as pressing the
ENTER key when the shape has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is pressed.
public event [Link] MouseDown;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover
MouseDown

MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer enters the control.
public event EventHandler MouseEnter;
member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter

MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer rests on the control.
public event EventHandler MouseHover;
member [Link] : EventHandler

Remarks
A typical use of MouseHover is to display a tool tip when the mouse pauses on a control within a specified area around
the control (the "hover rectangle"). The pause required for this event to be raised is specified in milliseconds by the
MouseHoverTime property.
The MouseHover event is defined and detected in connection with the MouseHoverSize and MouseHoverTime
properties.
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover

MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer leaves the control.
public event EventHandler MouseLeave;
member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is moved over the control.
public event [Link] MouseMove;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove

MouseHover / MouseDown / MouseWheel


MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is released.
public event [Link] MouseUp;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp

MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is moved.
public event EventHandler Move;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control's Padding property changes.

public event EventHandler PaddingChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Padding property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is redrawn.
public event [Link] Paint;
member [Link] : [Link]

Remarks
The Paint event handler is typically used to perform custom drawing when a control is redrawn.

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control's Parent property changes.
public event EventHandler ParentChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Parent property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
AccessibilityHelp
I n this Article
Occurs when an AccessibleObject is providing Help to accessibility applications.

public event [Link] QueryAccessibilityHelp;


member [Link] : [Link]

Remarks
You should use the HelpProvider class to enable users to invoke Help on your accessible object by pressing the F1 key.
The HelpProvider gives you complete information in the QueryAccessibilityHelpEventArgs.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ContinueDrag
I n this Article
Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.
public event [Link] QueryContinueDrag;
member [Link] : [Link]

Remarks
The QueryContinueDrag event is raised when there is a change in the keyboard or mouse button state during a drag-
and-drop operation. The QueryContinueDrag event enables the drag source to determine whether the drag-and-drop
operation should be canceled.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the value of the Region property changes.
public event EventHandler RegionChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Region property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
The ResetIndex method is not supported in the LabelArray class.

public void ResetIndex ([Link] o);


member [Link] : [Link] -> unit

Parameters
o Label Label
A Control.

Remarks
This method is not supported, and calling it does not raise an exception.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is resized.
public event EventHandler Resize;
member [Link] : EventHandler

Remarks
To determine the Size of the resized control, you can cast the sender parameter of the EventArgs data to a Control and
get its Size property (or Height and Width properties individually).
To handle custom layouts, use the Layout event instead of the Resize event. The Layout event is raised in response to
a Resize event, but also in response to other changes that affect the layout of the control.

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the RightToLeftChanged property value changes.

public event EventHandler RightToLeftChanged;


member [Link] : EventHandler

Remarks
This event is raised if the RightToLeft property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Sets the index of the initial Label in a LabelArray.
public void SetIndex ([Link] o, short Index);
member [Link] : [Link] * int16 -> unit

Parameters
o Label Label
A Label in the control array.
Index Int16 Int16
A Short that represents the index of the specified Label.

Remarks
The SetIndex method should only be called when you are creating the initial element in the control array. To add
subsequent elements, call the Load method and specify the Index .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
SerializeIndex
I n this Article
Returns a value that indicates whether a Label is a member of this LabelArray.

public bool ShouldSerializeIndex ([Link] o);


member [Link] : [Link] -> bool

Parameters
o Label Label
A Label in the control array.
Returns
Boolean Boolean
true if o is a member of this control array; otherwise, false .

Remarks
If the specified Label is a member of a different LabelArray, ShouldSerializeIndex returns false .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the Size property value changes.
public event EventHandler SizeChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Size property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control style changes.
public event EventHandler StyleChanged;
member [Link] : EventHandler

Remarks
The StyleChanged event occurs when ControlStyles flags have been added or changed.

This event is raised if the control style is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ColorsChanged
I n this Article
Occurs when the system colors change.

public event EventHandler SystemColorsChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SystemColors is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the TabIndex property value changes.

public event EventHandler TabIndexChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabIndex property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the TextAlign property value changes.

public event EventHandler TextAlignChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TextAlign property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the Text property value changes.
public event EventHandler TextChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Text property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is finished validating.
public event EventHandler Validated;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated

If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is validating.
public event [Link] Validating;
member [Link] : [Link]

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated
If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the Visible property value changes.
public event EventHandler VisibleChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Visible property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
ListBoxArray ListBoxArray Class
Provides a control array of ListBox controls.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class ListBoxArray : [Link],
[Link]
type ListBoxArray = class
inherit BaseControlArray
interface IExtenderProvider

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component
BaseControlArray BaseControlArray

Remarks
The ListBoxArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0 ListBox array. It
does not provide the design-time features of a Visual Basic 6.0 control array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
ListBoxArray()
ListBoxArray()

Initializes a new instance of the ListBoxArray class.

ListBoxArray(IContainer)
ListBoxArray(IContainer)

Initializes a new instance of the ListBoxArray class, specifying its container.

Properties
Item[Int16]
Item[Int16]

Gets a specific element of a ListBoxArray by index. Read-only.


Methods
CanExtend(Object)
CanExtend(Object)

Gets a value that determines whether a control is a member of a ListBoxArray.

GetControlInstanceType()
GetControlInstanceType()

Overrides GetControlInstanceType().

GetIndex(ListBox)
GetIndex(ListBox)

Gets the index of a ListBox in a ListBoxArray.

HookUpControlEvents(Object)
HookUpControlEvents(Object)

Overrides HookUpControlEvents(Object).

ResetIndex(ListBox)
ResetIndex(ListBox)

The ResetIndex method is not supported in the ListBoxArray class.

SetIndex(ListBox, Int16)
SetIndex(ListBox, Int16)

Sets the index of the initial ListBox in a ListBoxArray.

ShouldSerializeIndex(ListBox)
ShouldSerializeIndex(ListBox)

Returns a value that indicates whether a ListBox is a member of this ListBoxArray.

Events
BackColorChanged
BackColorChanged

Occurs when the value of the BackColor property changes.

BindingContextChanged
BindingContextChanged

Occurs when the value of the BindingContext property changes.

CausesValidationChanged
CausesValidationChanged

Occurs when the value of the CausesValidation property changes.

ChangeUICues
ChangeUICues

Occurs when the focus or keyboard user interface (UI) cues change.

Click
Click

Occurs when a ListBox in a ListBoxArray is clicked.

ClientSizeChanged
ClientSizeChanged

Occurs when the value of the ClientSize property changes.

ContextMenuChanged
ContextMenuChanged

Occurs when the value of the ContextMenu property changes.

ContextMenuStripChanged
ContextMenuStripChanged

Occurs when the value of the ContextMenuStrip property changes.

ControlAdded
ControlAdded

Occurs when a new control is added to the ListBoxArray.

ControlRemoved
ControlRemoved

Occurs when a control is removed from the ListBoxArray.


CursorChanged
CursorChanged

Occurs when the value of the Cursor property changes.

DataSourceChanged
DataSourceChanged

Occurs when the value of the DataSource property changes.

DisplayMemberChanged
DisplayMemberChanged

Occurs when the value of the DisplayMember property changes.

DockChanged
DockChanged

Occurs when the value of the Dock property changes.

DoubleClick
DoubleClick

Occurs when a ListBox control in a ListBoxArray is double-clicked.

DragDrop
DragDrop

Occurs when a drag-and-drop operation is completed.

DragEnter
DragEnter

Occurs when an object is dragged into the control's bounds.

DragLeave
DragLeave

Occurs when an object is dragged out of the control's bounds.

DragOver
DragOver

Occurs when an object is dragged over the control's bounds.


DrawItem
DrawItem

Occurs when a visual aspect of an owner-drawn ListBox changes.

EnabledChanged
EnabledChanged

Occurs when the value of the Enabled property changes.

Enter
Enter

Occurs when the control is entered.

FontChanged
FontChanged

Occurs when the value of the Font property changes.

ForeColorChanged
ForeColorChanged

Occurs when the value of the ForeColor property changes.

Format
Format

Occurs when the control is bound to a data value.

FormatStringChanged
FormatStringChanged

Occurs when value of the FormatString property changes.

FormattingEnabledChanged
FormattingEnabledChanged

Occurs when the value of the FormattingEnabled property changes.

GiveFeedback
GiveFeedback

Occurs during a drag operation.


HelpRequested
HelpRequested

Occurs when the user requests help for a control.

ImeModeChanged
ImeModeChanged

Occurs when the value of the ImeMode property changes.

KeyDown
KeyDown

Occurs when a key is pressed and the control has focus.

KeyPress
KeyPress

Occurs when a key is pressed and the control has focus.

KeyUp
KeyUp

Occurs when a key is released and the control has focus.

Layout
Layout

Occurs when a control should reposition its child controls.

Leave
Leave

Occurs when the input focus leaves the control.

LocationChanged
LocationChanged

Occurs when the value of the Location property changes.

MarginChanged
MarginChanged

Occurs when the value of the Margin property changes.


MeasureItem
MeasureItem

Occurs each time an owner-drawn ListBox item needs to be drawn and when the sizes of the list items are
determined.

MouseCaptureChanged
MouseCaptureChanged

Occurs when the control loses or gains mouse capture.

MouseClick
MouseClick

Occurs when the control is clicked by the mouse.

MouseDoubleClick
MouseDoubleClick

Occurs when the control is double-clicked by the mouse.

MouseDown
MouseDown

Occurs when the mouse pointer is over the control and a mouse button is pressed.

MouseEnter
MouseEnter

Occurs when the mouse pointer enters the control.

MouseHover
MouseHover

Occurs when the mouse pointer rests on the control.

MouseLeave
MouseLeave

Occurs when the mouse pointer leaves the control.

MouseMove
MouseMove

Occurs when the mouse pointer is moved over the control.


MouseUp
MouseUp

Occurs when the mouse pointer is over the control and a mouse button is released.

Move
Move

Occurs when the control is moved.

PaddingChanged
PaddingChanged

Occurs when the control's Padding property changes.

ParentChanged
ParentChanged

Occurs when the control's Parent property changes.

QueryAccessibilityHelp
QueryAccessibilityHelp

Occurs when an AccessibleObject is providing Help to accessibility applications.

QueryContinueDrag
QueryContinueDrag

Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.

RegionChanged
RegionChanged

Occurs when the value of the Region property changes.

Resize
Resize

Occurs when the control is resized.

RightToLeftChanged
RightToLeftChanged

Occurs when the RightToLeftChanged property value changes.


SelectedIndexChanged
SelectedIndexChanged

Occurs when the SelectedIndex property has changed.

SelectedValueChanged
SelectedValueChanged

Occurs when the SelectedValue property has changed.

SizeChanged
SizeChanged

Occurs when the Size property value changes.

StyleChanged
StyleChanged

Occurs when the control style changes.

SystemColorsChanged
SystemColorsChanged

Occurs when the system colors change.

TabIndexChanged
TabIndexChanged

Occurs when the TabIndex property value changes.

TabStopChanged
TabStopChanged

Occurs when the TabStop property value changes.

Validated
Validated

Occurs when the control is finished validating.

Validating
Validating

Occurs when the control is validating.


ValueMemberChanged
ValueMemberChanged

Occurs when the ValueMember property changes.

VisibleChanged
VisibleChanged

Occurs when the Visible property value changes.


[Link] [Link]
Changed
I n this Article
Occurs when the value of the BackColor property changes.

public event EventHandler BackColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BackColor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ListBoxArray.
BindingContextChanged
I n this Article
Occurs when the value of the BindingContext property changes.

public event EventHandler BindingContextChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BindingContext property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets a value that determines whether a control is a member of a ListBoxArray.
public bool CanExtend (object target);
abstract member CanExtend : obj -> bool
override [Link] : obj -> bool

Parameters
target Object Object
A ListBox control.
Returns
Boolean Boolean
true if target is a member of the control array; otherwise, false .

Remarks
The CanExtend method can be used to determine whether a specific ListBox control is the base element of the control
array from which the other elements were cloned.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ListBoxArray.
CausesValidationChanged
I n this Article
Occurs when the value of the CausesValidation property changes.

public event EventHandler CausesValidationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the CausesValidation property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the focus or keyboard user interface (UI) cues change.
public event [Link] ChangeUICues;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a ListBox in a ListBoxArray is clicked.
public event EventHandler Click;
member [Link] : EventHandler

Remarks
The Click event passes an EventArgs to its event handler. Therefore it only indicates that a click has occurred. If you
need more specific mouse information (button, number of clicks, wheel rotation, or location), use the MouseClick event.
However, the MouseClick event will not be raised if the click is caused by action other than that of the mouse, such as
pressing the ENTER key.
A double-click is determined by the mouse settings of the user's operating system. The user can set the time between
clicks of a mouse button that should be considered a double-click instead of two clicks. The Click event is raised every
time that a control is double-clicked. For example, if you have event handlers for the Click and DoubleClick events of
a control, the Click and DoubleClick events are raised when the control is double-clicked and both methods are
called. If a control is double-clicked and that control does not support the DoubleClick event, the Click event might be
raised two times.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the ClientSize property changes.

public event EventHandler ClientSizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ClientSize property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
MenuChanged
I n this Article
Occurs when the value of the ContextMenu property changes.

[[Link](false)]
public event EventHandler ContextMenuChanged;
member [Link] : EventHandler

Attributes BrowsableAttribute

Remarks
This event is raised if the ContextMenu property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ListBoxArray.
ContextMenuStripChanged
I n this Article
Occurs when the value of the ContextMenuStrip property changes.

public event EventHandler ContextMenuStripChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ContextMenuStrip property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a new control is added to the ListBoxArray.
public event [Link] ControlAdded;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Removed
I n this Article
Occurs when a control is removed from the ListBoxArray.

public event [Link] ControlRemoved;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Cursor property changes.

public event EventHandler CursorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Cursor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
SourceChanged
I n this Article
Occurs when the value of the DataSource property changes.

public event EventHandler DataSourceChanged;


member [Link] : EventHandler

Remarks
This event is raised if the DataSource property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ListBoxArray.
DisplayMemberChanged
I n this Article
Occurs when the value of the DisplayMember property changes.

public event EventHandler DisplayMemberChanged;


member [Link] : EventHandler

Remarks
This event is raised if the DisplayMember property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the value of the Dock property changes.
public event EventHandler DockChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Dock property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a ListBox control in a ListBoxArray is double-clicked.
public event EventHandler DoubleClick;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a drag-and-drop operation is completed.
public event [Link] DragDrop;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged into the control's bounds.
public event [Link] DragEnter;
member [Link] : [Link]

Remarks
The DragEnter event is raised when the user first drags the mouse cursor over the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged out of the control's bounds.
public event EventHandler DragLeave;
member [Link] : EventHandler

Remarks
The DragLeave event is raised when the user drags the cursor out of the control or the user cancels the current drag-
and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged over the control's bounds.
public event [Link] DragOver;
member [Link] : [Link]

Remarks
The DragOver event is raised when the mouse cursor moves within the bounds of the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a visual aspect of an owner-drawn ListBox changes.
public event [Link] DrawItem;
member [Link] : [Link]

Remarks
This event is used by an owner-drawn ListBox.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Enabled property changes.

public event EventHandler EnabledChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Enabled property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is entered.
public event EventHandler Enter;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), or by calling the Select or
SelectNextControl method, focus events occur in the following order:
Enter

GotFocus
Leave
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter

GotFocus
LostFocus
Leave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the value of the Font property changes.
public event EventHandler FontChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Font property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the ForeColor property changes.

public event EventHandler ForeColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ForeColor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is bound to a data value.
public event [Link] Format;
member [Link] : [Link]

Remarks
The Format event is raised before each visible item in the ListControl is formatted. Handling this event gives you
access to the string to be displayed for this list item, through the Value property of the ListControlConvertEventArgs.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
StringChanged
I n this Article
Occurs when value of the FormatString property changes.

public event EventHandler FormatStringChanged;


member [Link] : EventHandler

Remarks
This event is raised if the FormatString property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ListBoxArray.
FormattingEnabledChanged
I n this Article
Occurs when the value of the FormattingEnabled property changes.

public event EventHandler FormattingEnabledChanged;


member [Link] : EventHandler

Remarks
This event is raised if the FormattingEnabled property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ControlInstanceType
I n this Article
Overrides GetControlInstanceType().

protected override Type GetControlInstanceType ();


override [Link] : unit -> Type

Returns
Type Type
The type of a control in a control array.

Remarks
This method cannot be called from your application's code. Use the GetType method instead.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the index of a ListBox in a ListBoxArray.
public short GetIndex ([Link] o);
member [Link] : [Link] -> int16

Parameters
o ListBox ListBox
A ListBox in the control array.
Returns
Int16 Int16
A Short that represents the index of the specified ListBox.

Remarks
This method can be used to retrieve the index for the specified ListBox.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs during a drag operation.
public event [Link] GiveFeedback;
member [Link] : [Link]

Remarks
The GiveFeedback event is raised when a drag-and-drop operation is started. By using the GiveFeedback event, the
source of a drag event can modify the appearance of the mouse pointer in order to give the user visual feedback during
a drag-and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the user requests help for a control.
public event [Link] HelpRequested;
member [Link] : [Link]

Remarks
The HelpRequested event is typically raised when the user presses the F1 key or an associated context-sensitive Help
button is clicked.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ControlEvents
I n this Article
Overrides HookUpControlEvents(Object).

protected override void HookUpControlEvents (object o);


override [Link] : obj -> unit

Parameters
o Object Object
An Object.

Remarks
This method cannot be called from your application's code. Use AddHandler to hook up events for any controls that
are added by using the Load method.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the ImeMode property changes.

public event EventHandler ImeModeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ImeMode property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link][Int16] [Link][Int16]
I n this Article
Gets a specific element of a ListBoxArray by index. Read-only.
public [Link] this[short Index] { get; }
member [Link](int16) : [Link]

Parameters
Index Int16 Int16
A Short that specifies the position of an element of the control array.
Returns
ListBox ListBox
A ListBox at the specified Index in the control array.

Remarks
The Item property is the default property for a control array. Therefore, the following lines of code are equivalent.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is pressed and the control has focus.
public event [Link] KeyDown;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown

KeyPress
KeyUp
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is pressed and the control has focus.
public event [Link] KeyPress;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress

KeyUp
The KeyPress event is not raised by non-character keys; however, the non-character keys do raise the KeyDown and
KeyUp events.
Use the KeyChar property to sample keystrokes at run time and to consume or modify a subset of common keystrokes.
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is released and the control has focus.
public event [Link] KeyUp;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress
KeyUp

To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a control should reposition its child controls.
public event [Link] Layout;
member [Link] : [Link]

Remarks
The Layout event occurs when child controls are added or removed, when the bounds of the control changes, and
when other changes occur that can affect the layout of the control. The layout event can be suppressed by using the
SuspendLayout and ResumeLayout methods. Suspending layout enables you to perform multiple actions on a control
without having to perform a layout for each change. For example, if you resize and move a control, each operation
would raise a Layout event.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the input focus leaves the control.
public event EventHandler Leave;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), or by calling the Select or
SelectNextControl method, focus events occur in the following order:
Enter
GotFocus
Leave

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
ListBoxArray ListBoxArray
I n this Article

Overloads
ListBoxArray()
Initializes a new instance of the ListBoxArray class.

ListBoxArray(IContainer) ListBoxArray(IContainer)
Initializes a new instance of the ListBoxArray class, specifying
its container.

ListBoxArray()
Initializes a new instance of the ListBoxArray class.
public ListBoxArray ();

Remarks
When you instantiate a ListBoxArray, you must also call the SetIndex method to create the initial element in the array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

ListBoxArray(IContainer) ListBoxArray(IContainer)
Initializes a new instance of the ListBoxArray class, specifying its container.
public ListBoxArray ([Link] Container);
new [Link] : [Link] ->
[Link]

Parameters
Container IContainer IContainer
The IContainer where the control array will be hosted.
Remarks
When you instantiate a ListBoxArray, you must also call the SetIndex method to create the initial element in the array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Location property changes.

public event EventHandler LocationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Location property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Margin property changes.

public event EventHandler MarginChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Margin property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs each time an owner-drawn ListBox item needs to be drawn and when the sizes of the list items are determined.
public event [Link] MeasureItem;
member [Link] : [Link]

Remarks
You can create an event handler for this event to specify the size an item is made before it is drawn in the DrawItem
event.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
CaptureChanged
I n this Article
Occurs when the control loses or gains mouse capture.

public event EventHandler MouseCaptureChanged;


member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is clicked by the mouse.
public event [Link] MouseClick;
member [Link] : [Link]

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown
Click
MouseClick

MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate an MouseDoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a control. They are often raised by other actions, such as pressing the
ENTER key when the control has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
DoubleClick
I n this Article
Occurs when the control is double-clicked by the mouse.

public event [Link] MouseDoubleClick;


member [Link] : [Link]

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown
Click
MouseClick
MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate a DoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a shape. They are often raised by other actions, such as pressing the
ENTER key when the shape has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is pressed.
public event [Link] MouseDown;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover
MouseDown

MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer enters the control.
public event EventHandler MouseEnter;
member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter

MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer rests on the control.
public event EventHandler MouseHover;
member [Link] : EventHandler

Remarks
A typical use of MouseHover is to display a tool tip when the mouse pauses on a control within a specified area around
the control (the "hover rectangle"). The pause required for this event to be raised is specified in milliseconds by the
MouseHoverTime property.
The MouseHover event is defined and detected in connection with the MouseHoverSize and MouseHoverTime
properties.
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover

MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer leaves the control.
public event EventHandler MouseLeave;
member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is moved over the control.
public event [Link] MouseMove;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove

MouseHover / MouseDown / MouseWheel


MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is released.
public event [Link] MouseUp;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp

MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is moved.
public event EventHandler Move;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control's Padding property changes.

public event EventHandler PaddingChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Padding property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control's Parent property changes.
public event EventHandler ParentChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Parent property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
AccessibilityHelp
I n this Article
Occurs when an AccessibleObject is providing Help to accessibility applications.

public event [Link] QueryAccessibilityHelp;


member [Link] : [Link]

Remarks
You should use the HelpProvider class to enable users to invoke Help on your accessible object by pressing the F1 key.
The HelpProvider gives you complete information in the QueryAccessibilityHelpEventArgs.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ContinueDrag
I n this Article
Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.
public event [Link] QueryContinueDrag;
member [Link] : [Link]

Remarks
The QueryContinueDrag event is raised when there is a change in the keyboard or mouse button state during a drag-
and-drop operation. The QueryContinueDrag event enables the drag source to determine whether the drag-and-drop
operation should be canceled.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Region property changes.

public event EventHandler RegionChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Region property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
The ResetIndex method is not supported in the ListBoxArray class.

public void ResetIndex ([Link] o);


member [Link] : [Link] -> unit

Parameters
o ListBox ListBox
A Control.

Remarks
This method is not supported, and calling it does not raise an exception.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is resized.
public event EventHandler Resize;
member [Link] : EventHandler

Remarks
To determine the Size of the resized control, you can cast the sender parameter of the EventArgs data to a Control and
get its Size property (or Height and Width properties individually).
To handle custom layouts, use the Layout event instead of the Resize event. The Layout event is raised in response to
a Resize event, but also in response to other changes that affect the layout of the control.

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
LeftChanged
I n this Article
Occurs when the RightToLeftChanged property value changes.

public event EventHandler RightToLeftChanged;


member [Link] : EventHandler

Remarks
This event is raised if the RightToLeft property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ListBoxArray.
SelectedIndexChanged
I n this Article
Occurs when the SelectedIndex property has changed.

public event EventHandler SelectedIndexChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SelectedIndex property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ListBoxArray.
SelectedValueChanged
I n this Article
Occurs when the SelectedValue property has changed.

public event EventHandler SelectedValueChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SelectedValue property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Sets the index of the initial ListBox in a ListBoxArray.
public void SetIndex ([Link] o, short Index);
member [Link] : [Link] * int16 -> unit

Parameters
o ListBox ListBox
A ListBox in the control array.
Index Int16 Int16
A Short that represents the index of the specified ListBox.

Remarks
The SetIndex method should only be called when you are creating the initial element in the control array. To add
subsequent elements, call the Load method and specify the Index .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
SerializeIndex
I n this Article
Returns a value that indicates whether a ListBox is a member of this ListBoxArray.

public bool ShouldSerializeIndex ([Link] o);


member [Link] : [Link] -> bool

Parameters
o ListBox ListBox
A ListBox in the control array.
Returns
Boolean Boolean
true if o is a member of this control array; otherwise, false .

Remarks
If the specified ListBox is a member of a different ListBoxArray, ShouldSerializeIndex returns false .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the Size property value changes.
public event EventHandler SizeChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Size property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control style changes.
public event EventHandler StyleChanged;
member [Link] : EventHandler

Remarks
The StyleChanged event occurs when ControlStyles flags have been added or changed.

This event is raised if the control style is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ColorsChanged
I n this Article
Occurs when the system colors change.

public event EventHandler SystemColorsChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SystemColors is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the TabIndex property value changes.

public event EventHandler TabIndexChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabIndex property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the TabStop property value changes.

public event EventHandler TabStopChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabStop property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is finished validating.
public event EventHandler Validated;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated

If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is validating.
public event [Link] Validating;
member [Link] : [Link]

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated
If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
MemberChanged
I n this Article
Occurs when the ValueMember property changes.

public event EventHandler ValueMemberChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ValueMember property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Visible property value changes.

public event EventHandler VisibleChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Visible property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
ListBoxItem ListBoxItem Class
Represents an item in a ListBox or ComboBox control in an application that was upgraded from Visual Basic 6.0.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class ListBoxItem
type ListBoxItem = class

I nheritance H ierarchy
Object Object

Remarks
In Visual Basic 6.0, the ListBox and ComboBox controls use a List property to store list items and an ItemData
property to optionally store an Integer associated with each list item. In Visual Basic, the ListBox and ComboBox
controls use the Items property to store list items, and the ItemData property is no longer supported.
When a Visual Basic 6.0 application is upgraded to Visual Basic, the upgrade tools create a ListBoxItem class for each
item in a ListBox or ComboBox control. The SetItemData and GetItemData functions can then be used to enable any
code that references the ItemData property.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
ListBoxItem(String)
ListBoxItem(String)

Initializes an instance of the ListBoxItem class.

ListBoxItem(String, Int32)
ListBoxItem(String, Int32)

Initializes an instance of the ListBoxItem class.

Fields
ItemData
ItemData

Stores the ItemData value for an item in a ListBox or ComboBox control in an application that was upgraded from
Visual Basic 6.0.
ItemString
ItemString

Stores the List value for an item in a ListBox or ComboBox control in an application that was upgraded from
Visual Basic 6.0.

Methods
ToString()
ToString()

Converts a ListBoxItem to a String.


[Link] [Link]
I n this Article
Stores the ItemData value for an item in a ListBox or ComboBox control in an application that was upgraded from
Visual Basic 6.0.
public int ItemData;
val mutable ItemData : int

Returns
Int32 Int32

Remarks
When a Visual Basic 6.0 application is upgraded to Visual Basic, the upgrade tools create a ListBoxItem class for each
item in a ListBox or ComboBox control. The SetItemData and GetItemData functions can then be used to enable any
code that references the ItemData property.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Stores the List value for an item in a ListBox or ComboBox control in an application that was upgraded from Visual
Basic 6.0.
public string ItemString;
val mutable ItemString : string

Returns
String String

Remarks
When a Visual Basic 6.0 application is upgraded to Visual Basic, the upgrade tools create a ListBoxItem class for each
item in a ListBox or ComboBox control. The SetItemData and GetItemData functions can then be used to enable any
code that references the ItemData property.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
ListBoxItem ListBoxItem
I n this Article

Overloads
ListBoxItem(String) ListBoxItem(String)
Initializes an instance of the ListBoxItem class.

ListBoxItem(String, Int32) ListBoxItem(String, Int32)


Initializes an instance of the ListBoxItem class.

ListBoxItem(String) ListBoxItem(String)
Initializes an instance of the ListBoxItem class.
public ListBoxItem (string ItemString);
new [Link] : string ->
[Link]

Parameters
ItemString String String
A String that contains the list item.
Remarks
When a Visual Basic 6.0 application is upgraded to Visual Basic, the upgrade tools create a ListBoxItem class for each
item in a ListBox or ComboBox control. The SetItemData and GetItemData functions can then be used to enable any
code that references the ItemData property.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

ListBoxItem(String, Int32) ListBoxItem(String, Int32)


Initializes an instance of the ListBoxItem class.
public ListBoxItem (string ItemString, int ItemData);
new [Link] : string * int ->
[Link]

Parameters
ItemString String String
A String that contains the list item.
ItemData Int32 Int32
An Integer that represents the Visual Basic 6.0 ItemData value.
Remarks
When a Visual Basic 6.0 application is upgraded to Visual Basic, the upgrade tools create a ListBoxItem class for each
item in a ListBox or ComboBox control. The SetItemData and GetItemData functions can then be used to enable any
code that references the ItemData property.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Converts a ListBoxItem to a String.
public override string ToString ();
override [Link] : unit -> string

Returns
String String
A String that contains the value of the ListBoxItem.

Remarks
A ListBoxItem cannot be converted to a String; you must call the ToString method to convert the type.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
ListViewArray ListViewArray Class
Provides a control array of ListView controls.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class ListViewArray : [Link],
[Link]
type ListViewArray = class
inherit BaseControlArray
interface IExtenderProvider

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component
BaseControlArray BaseControlArray

Remarks
The ListViewArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0 ListView array. It
does not provide the design-time features of a Visual Basic 6.0 control array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
ListViewArray()
ListViewArray()

Initializes a new instance of the ListViewArray class.

ListViewArray(IContainer)
ListViewArray(IContainer)

Initializes a new instance of the ListViewArray class, specifying its container.

Properties
Item[Int16]
Item[Int16]

Gets a specific element of a ListViewArray by index. Read-only.


Methods
CanExtend(Object)
CanExtend(Object)

Gets a value that determines whether a control is a member of a ListViewArray.

GetControlInstanceType()
GetControlInstanceType()

Overrides GetControlInstanceType().

GetIndex(ListView)
GetIndex(ListView)

Gets the index of a ListView in a ListViewArray.

HookUpControlEvents(Object)
HookUpControlEvents(Object)

Overrides HookUpControlEvents(Object).

ResetIndex(ListView)
ResetIndex(ListView)

The ResetIndex method is not supported in the ListViewArray class.

SetIndex(ListView, Int16)
SetIndex(ListView, Int16)

Sets the index of the initial ListView in a ListViewArray.

ShouldSerializeIndex(ListView)
ShouldSerializeIndex(ListView)

Returns a value that indicates whether a ListView is a member of this ListViewArray.

Events
AfterLabelEdit
AfterLabelEdit

Occurs when the label for an item is edited by the user.

BackColorChanged
BackColorChanged

Occurs when the value of the BackColor property changes.

BackgroundImageChanged
BackgroundImageChanged

Occurs when the value of the BackgroundImage property changes.

BeforeLabelEdit
BeforeLabelEdit

Occurs when the user starts editing the label of an item.

BindingContextChanged
BindingContextChanged

Occurs when the value of the BindingContext property changes.

CacheVirtualItems
CacheVirtualItems

Occurs when the contents of the display area for a ListView in virtual mode has changed and the ListView
determines that a new range of items is needed.

CausesValidationChanged
CausesValidationChanged

Occurs when the value of the CausesValidation property changes.

ChangeUICues
ChangeUICues

Occurs when the focus or keyboard user interface (UI) cues change.

Click
Click

Occurs when a ListView in a ListViewArray is clicked.

ClientSizeChanged
ClientSizeChanged

Occurs when the value of the ClientSize property changes.


ColumnClick
ColumnClick

Occurs when the user clicks a column header within the ListView control.

ColumnReordered
ColumnReordered

Occurs when the column header order is changed.

ColumnWidthChanged
ColumnWidthChanged

Occurs when the value of the Width property for a column changes.

ColumnWidthChanging
ColumnWidthChanging

Occurs when the width of a column is changing.

ContextMenuChanged
ContextMenuChanged

Occurs when the value of the ContextMenu property changes.

ContextMenuStripChanged
ContextMenuStripChanged

Occurs when the value of the ContextMenuStrip property changes.

ControlAdded
ControlAdded

Occurs when a new control is added to the ListViewArray.

ControlRemoved
ControlRemoved

Occurs when a control is removed from the ListViewArray.

CursorChanged
CursorChanged

Occurs when the value of the Cursor property changes.


DockChanged
DockChanged

Occurs when the value of the Dock property changes.

DoubleClick
DoubleClick

Occurs when a ListView control in a ListViewArray is double-clicked.

DragDrop
DragDrop

Occurs when a drag-and-drop operation is completed.

DragEnter
DragEnter

Occurs when an object is dragged into the control's bounds.

DragLeave
DragLeave

Occurs when an object is dragged out of the control's bounds.

DragOver
DragOver

Occurs when an object is dragged over the control's bounds.

DrawColumnHeader
DrawColumnHeader

Occurs when the details view of a ListView is drawn and the OwnerDraw property is set to true .

DrawItem
DrawItem

Occurs when a visual aspect of an owner-drawn ListView changes.

DrawSubItem
DrawSubItem

Occurs when the details view of a ListView is drawn and the OwnerDraw property is set to true .
EnabledChanged
EnabledChanged

Occurs when the value of the Enabled property changes.

Enter
Enter

Occurs when the control is entered.

FontChanged
FontChanged

Occurs when the value of the Font property changes.

ForeColorChanged
ForeColorChanged

Occurs when the value of the ForeColor property changes.

GiveFeedback
GiveFeedback

Occurs during a drag operation.

HelpRequested
HelpRequested

Occurs when the user requests help for a control.

ImeModeChanged
ImeModeChanged

Occurs when the value of the ImeMode property changes.

ItemActivate
ItemActivate

Occurs when an item is activated.

ItemCheck
ItemCheck

Occurs when the checked state of an item changes.


ItemChecked
ItemChecked

Occurs when the checked state of an item changes.

ItemDrag
ItemDrag

Occurs when the user begins dragging an item.

ItemMouseHover
ItemMouseHover

Occurs when the mouse hovers over an item.

ItemSelectionChanged
ItemSelectionChanged

Occurs when the selection state of an item changes.

KeyDown
KeyDown

Occurs when a key is pressed and the control has focus.

KeyPress
KeyPress

Occurs when a key is pressed and the control has focus.

KeyUp
KeyUp

Occurs when a key is released and the control has focus.

Layout
Layout

Occurs when a control should reposition its child controls.

Leave
Leave

Occurs when the input focus leaves the control.


LocationChanged
LocationChanged

Occurs when the value of the Location property changes.

MarginChanged
MarginChanged

Occurs when the value of the Margin property changes.

MouseCaptureChanged
MouseCaptureChanged

Occurs when the control loses or gains mouse capture.

MouseClick
MouseClick

Occurs when the control is clicked by the mouse.

MouseDoubleClick
MouseDoubleClick

Occurs when the control is double-clicked by the mouse.

MouseDown
MouseDown

Occurs when the mouse pointer is over the control and a mouse button is pressed.

MouseEnter
MouseEnter

Occurs when the mouse pointer enters the control.

MouseHover
MouseHover

Occurs when the mouse pointer rests on the control.

MouseLeave
MouseLeave

Occurs when the mouse pointer leaves the control.


MouseMove
MouseMove

Occurs when the mouse pointer is moved over the control.

MouseUp
MouseUp

Occurs when the mouse pointer is over the control and a mouse button is released.

Move
Move

Occurs when the control is moved.

PaddingChanged
PaddingChanged

Occurs when the control's Padding property changes.

ParentChanged
ParentChanged

Occurs when the control's Parent property changes.

QueryAccessibilityHelp
QueryAccessibilityHelp

Occurs when an AccessibleObject is providing Help to accessibility applications.

QueryContinueDrag
QueryContinueDrag

Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.

RegionChanged
RegionChanged

Occurs when the value of the Region property changes.

Resize
Resize

Occurs when the control is resized.


RetrieveVirtualItem
RetrieveVirtualItem

Occurs when the ListView is in virtual mode and requires a ListViewItem.

RightToLeftChanged
RightToLeftChanged

Occurs when the RightToLeftChanged property value changes.

RightToLeftLayoutChanged
RightToLeftLayoutChanged

Occurs when the RightToLeftLayout property changes.

SearchForVirtualItem
SearchForVirtualItem

Occurs when the ListView is in virtual mode and a search is taking place.

SelectedIndexChanged
SelectedIndexChanged

Occurs when the SelectedIndex property has changed.

SizeChanged
SizeChanged

Occurs when the Size property value changes.

StyleChanged
StyleChanged

Occurs when the control style changes.

SystemColorsChanged
SystemColorsChanged

Occurs when the system colors change.

TabIndexChanged
TabIndexChanged

Occurs when the TabIndex property value changes.


TabStopChanged
TabStopChanged

Occurs when the TabStop property value changes.

Validated
Validated

Occurs when the control is finished validating.

Validating
Validating

Occurs when the control is validating.

VirtualItemsSelectionRangeChanged
VirtualItemsSelectionRangeChanged

Occurs when a ListView is in virtual mode and the selection state of a range of items has changed.

VisibleChanged
VisibleChanged

Occurs when the Visible property value changes.


[Link] [Link]
Edit
I n this Article
Occurs when the label for an item is edited by the user.

public event [Link] AfterLabelEdit;


member [Link] : [Link]

Remarks
The AfterLabelEdit event occurs when the user finishes modifying the text for an item. The new string that the user
types for the item is passed to the event, and the event handler can reject the change. If the event handler rejects the
change, the text reverts to the text as it was before the user began editing the item.
In order for the AfterLabelEdit event to be raised, the LabelEdit property of the ListView control must be set to true
.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ColorChanged
I n this Article
Occurs when the value of the BackColor property changes.

public event EventHandler BackColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BackColor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ListViewArray.
BackgroundImageChanged
I n this Article
Occurs when the value of the BackgroundImage property changes.

public event EventHandler BackgroundImageChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BackgroundImage property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Edit
I n this Article
Occurs when the user starts editing the label of an item.

public event [Link] BeforeLabelEdit;


member [Link] : [Link]

Remarks
The BeforeLabelEdit event occurs when the user starts modifying the text for an item. If the event handler cancels
this event, the user cannot change the text. You can use this event to prevent the user from editing specific items in the
ListView control. If the LabelEdit property of the ListView control is set to false , the BeforeLabelEdit event is not
raised; all user attempts to change item labels are automatically rejected.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ListViewArray.
BindingContextChanged
I n this Article
Occurs when the value of the BindingContext property changes.

public event EventHandler BindingContextChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BindingContext property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
VirtualItems
I n this Article
Occurs when the contents of the display area for a ListView in virtual mode has changed and the ListView determines
that a new range of items is needed.
public event [Link] CacheVirtualItems;
member [Link] : [Link]

Remarks
Handling this event enables the ListView to update the item information held in cache so that it is readily available.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets a value that determines whether a control is a member of a ListViewArray.
public bool CanExtend (object target);
abstract member CanExtend : obj -> bool
override [Link] : obj -> bool

Parameters
target Object Object
A ListView control.
Returns
Boolean Boolean
true if target is a member of the control array; otherwise false .

Remarks
The CanExtend method can be used to determine whether a specific ListView control is the base element of the control
array from which the other elements were cloned.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ListViewArray.
CausesValidationChanged
I n this Article
Occurs when the value of the CausesValidation property changes.

public event EventHandler CausesValidationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the CausesValidation property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Cues
I n this Article
Occurs when the focus or keyboard user interface (UI) cues change.

public event [Link] ChangeUICues;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a ListView in a ListViewArray is clicked.
public event EventHandler Click;
member [Link] : EventHandler

Remarks
The Click event passes a EventArgs to its event handler. Therefore it only indicates that a click has occurred. If you
need more specific mouse information (button, number of clicks, wheel rotation, or location), use the MouseClick event.
However, the MouseClick event will not be raised if the click is caused by action other than that of the mouse, such as
pressing the ENTER key.
A double-click is determined by the mouse settings of the user's operating system. The user can set the time between
clicks of a mouse button that should be considered a double-click instead of two clicks. The Click event is raised every
time that a control is double-clicked. For example, if you have event handlers for the Click and DoubleClick events of
a control, the Click and DoubleClick events are raised when the control is double-clicked and both methods are
called. If a control is double-clicked and that control does not support the DoubleClick event, the Click event might be
raised two times.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
SizeChanged
I n this Article
Occurs when the value of the ClientSize property changes.

public event EventHandler ClientSizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ClientSize property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the user clicks a column header within the ListView control.
public event [Link] ColumnClick;
member [Link] : [Link]

Remarks
The ColumnClick event occurs when the user clicks one of the column headers in a details view of the items in a
ListView control (when the View property is set to Details). The ColumnClick event is typically handled to sort the
items in the ListView, using the clicked column as the column to sort by.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Reordered
I n this Article
Occurs when the column header order is changed.

public event [Link] ColumnReordered;


member [Link] : [Link]

Remarks
The ColumnReordered event is a cancelable event and can be canceled by handling the event and setting the
[Link] property to true . However, if the event is canceled, the
NewDisplayIndex of the ColumnReorderedEventArgs will not change to the OldDisplayIndex value.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ListViewArray.
ColumnWidthChanged
I n this Article
Occurs when the value of the Width property for a column changes.

public event [Link] ColumnWidthChanged;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ListViewArray.
ColumnWidthChanging
I n this Article
Occurs when the width of a column is changing.

public event [Link] ColumnWidthChanging;


member [Link] : [Link]

Remarks
This event allows you to check the new column width with the [Link] property,
and cancel the event if you choose by setting the Cancel property to true .

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ListViewArray.
ContextMenuChanged
I n this Article
Occurs when the value of the ContextMenu property changes.

[[Link](false)]
public event EventHandler ContextMenuChanged;
member [Link] : EventHandler

Attributes BrowsableAttribute

Remarks
This event is raised if the ContextMenu property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ListViewArray.
ContextMenuStripChanged
I n this Article
Occurs when the value of the ContextMenuStrip property changes.

public event EventHandler ContextMenuStripChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ContextMenuStrip property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a new control is added to the ListViewArray.
public event [Link] ControlAdded;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Removed
I n this Article
Occurs when a control is removed from the ListViewArray.

public event [Link] ControlRemoved;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Cursor property changes.

public event EventHandler CursorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Cursor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the value of the Dock property changes.
public event EventHandler DockChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Dock property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a ListView control in a ListViewArray is double-clicked.
public event EventHandler DoubleClick;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a drag-and-drop operation is completed.
public event [Link] DragDrop;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged into the control's bounds.
public event [Link] DragEnter;
member [Link] : [Link]

Remarks
The DragEnter event is raised when the user first drags the mouse cursor over the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged out of the control's bounds.
public event EventHandler DragLeave;
member [Link] : EventHandler

Remarks
The DragLeave event is raised when the user drags the cursor out of the control or the user cancels the current drag-
and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged over the control's bounds.
public event [Link] DragOver;
member [Link] : [Link]

Remarks
The DragOver event is raised when the mouse cursor moves within the bounds of the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ColumnHeader
I n this Article
Occurs when the details view of a ListView is drawn and the OwnerDraw property is set to true .

public event [Link] DrawColumnHeader;


member [Link] : [Link]

Remarks
This event lets you customize the appearance of a ListView control using owner drawing. It is raised only when the
OwnerDraw property is set to true and the View property is set to [Link] . This event can occur for each
column header in the control. For more information on owner drawing, see the OwnerDraw property reference topic.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a visual aspect of an owner-drawn ListView changes.
public event [Link] DrawItem;
member [Link] : [Link]

Remarks
This event is used by an owner-drawn ListView.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the details view of a ListView is drawn and the OwnerDraw property is set to true .

public event [Link] DrawSubItem;


member [Link] : [Link]

Remarks
This event lets you customize the appearance of a ListView control using owner drawing. It is raised only when the
OwnerDraw property is set to true and the View property is set to [Link] .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Enabled property changes.

public event EventHandler EnabledChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Enabled property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is entered.
public event EventHandler Enter;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), or by calling the Select or
SelectNextControl method, focus events occur in the following order:
Enter

GotFocus
Leave
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter

GotFocus
LostFocus
Leave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the value of the Font property changes.
public event EventHandler FontChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Font property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ColorChanged
I n this Article
Occurs when the value of the ForeColor property changes.

public event EventHandler ForeColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ForeColor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ControlInstanceType
I n this Article
Overrides GetControlInstanceType().

protected override Type GetControlInstanceType ();


override [Link] : unit -> Type

Returns
Type Type
The type of a control in a control array.

Remarks
This method cannot be called from your application's code. Use the GetType method instead.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the index of a ListView in a ListViewArray.
public short GetIndex ([Link] o);
member [Link] : [Link] -> int16

Parameters
o ListView ListView
A ListView in the control array.
Returns
Int16 Int16
A Short that represents the index of the specified ListView.

Remarks
This method can be used to retrieve the index for the specified ListView.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs during a drag operation.
public event [Link] GiveFeedback;
member [Link] : [Link]

Remarks
The GiveFeedback event is raised when a drag-and-drop operation is started. By using the GiveFeedback event, the
source of a drag event can modify the appearance of the mouse pointer in order to give the user visual feedback during
a drag-and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Requested
I n this Article
Occurs when the user requests help for a control.

public event [Link] HelpRequested;


member [Link] : [Link]

Remarks
The HelpRequested event is typically raised when the user presses the F1 key or an associated context-sensitive Help
button is clicked.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
UpControlEvents
I n this Article
Overrides HookUpControlEvents(Object).

protected override void HookUpControlEvents (object o);


override [Link] : obj -> unit

Parameters
o Object Object
An Object.

Remarks
This method cannot be called from your application's code. Use AddHandler to hook up events for any controls that
are added by using the Load method.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the ImeMode property changes.

public event EventHandler ImeModeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ImeMode property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link][Int16] [Link][Int16]
I n this Article
Gets a specific element of a ListViewArray by index. Read-only.
public [Link] this[short Index] { get; }
member [Link](int16) : [Link]

Parameters
Index Int16 Int16
A Short that specifies the position of an element of the control array.
Returns
ListView ListView
A ListView at the specified Index in the control array.

Remarks
The Item property is the default property for a control array. Therefore, the following lines of code are equivalent.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an item is activated.
public event EventHandler ItemActivate;
member [Link] : EventHandler

Remarks
The ItemActivate event occurs when the user activates one or more items in the ListView control. The user can
activate an item with either a single-click or double-click, depending on the value of the Activation property, or with the
keyboard. From within the event handler for the ItemActivate event, you can reference the SelectedItems or
SelectedIndices properties to access the collection of items selected in the ListView to determine which items are being
activated.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the checked state of an item changes.
public event [Link] ItemCheck;
member [Link] : [Link]

Remarks
The check state is not updated until after the ItemCheck event occurs.

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the checked state of an item changes.
public event [Link] ItemChecked;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the user begins dragging an item.
public event [Link] ItemDrag;
member [Link] : [Link]

Remarks
The ItemDrag event occurs when the user begins dragging an item. Typically the event handler for the ItemDrag event
performs the task of dragging by calling the DoDragDrop method. You can use this event to perform the tasks
necessary to drag items into and out of your application's ListView control.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Hover
I n this Article
Occurs when the mouse hovers over an item.

public event [Link] ItemMouseHover;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
SelectionChanged
I n this Article
Occurs when the selection state of an item changes.

public event [Link] ItemSelectionChanged;


member [Link] : [Link]

Remarks
In virtual mode, the VirtualItemsSelectionRangeChanged event will occur when the selection state of multiple items
changes.
The I temSelectionChanged event occurs whether the item state changes from selected to deselected or deselected to
selected.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is pressed and the control has focus.
public event [Link] KeyDown;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown

KeyPress
KeyUp
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is pressed and the control has focus.
public event [Link] KeyPress;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress

KeyUp
The KeyPress event is not raised by non-character keys; however, the non-character keys do raise the KeyDown and
KeyUp events.
Use the KeyChar property to sample keystrokes at run time and to consume or modify a subset of common keystrokes.
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is released and the control has focus.
public event [Link] KeyUp;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress
KeyUp

To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a control should reposition its child controls.
public event [Link] Layout;
member [Link] : [Link]

Remarks
The Layout event occurs when child controls are added or removed, when the bounds of the control changes, and
when other changes occur that can affect the layout of the control. The layout event can be suppressed by using the
SuspendLayout and ResumeLayout methods. Suspending layout enables you to perform multiple actions on a control
without having to perform a layout for each change. For example, if you resize and move a control, each operation
would raise a Layout event.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the input focus leaves the control.
public event EventHandler Leave;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), or by calling the Select or
SelectNextControl method, focus events occur in the following order:
Enter
GotFocus
Leave

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
ListViewArray ListViewArray
I n this Article

Overloads
ListViewArray()
Initializes a new instance of the ListViewArray class.

ListViewArray(IContainer) ListViewArray(IContainer)
Initializes a new instance of the ListViewArray class, specifying
its container.

ListViewArray()
Initializes a new instance of the ListViewArray class.
public ListViewArray ();

Remarks
When you instantiate a ListViewArray, you must also call the SetIndex method to create the initial element in the array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

ListViewArray(IContainer) ListViewArray(IContainer)
Initializes a new instance of the ListViewArray class, specifying its container.
public ListViewArray ([Link] Container);
new [Link] : [Link] ->
[Link]

Parameters
Container IContainer IContainer
The IContainer where the control array will be hosted.
Remarks
When you instantiate a ListViewArray, you must also call the SetIndex method to create the initial element in the array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Location property changes.

public event EventHandler LocationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Location property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Margin property changes.

public event EventHandler MarginChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Margin property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ListViewArray.
MouseCaptureChanged
I n this Article
Occurs when the control loses or gains mouse capture.

public event EventHandler MouseCaptureChanged;


member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is clicked by the mouse.
public event [Link] MouseClick;
member [Link] : [Link]

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown
Click
MouseClick

MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate an MouseDoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a control. They are often raised by other actions, such as pressing the
ENTER key when the control has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
DoubleClick
I n this Article
Occurs when the control is double-clicked by the mouse.

public event [Link] MouseDoubleClick;


member [Link] : [Link]

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown
Click
MouseClick
MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate a DoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a shape. They are often raised by other actions, such as pressing the
ENTER key when the shape has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is pressed.
public event [Link] MouseDown;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover
MouseDown

MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer enters the control.
public event EventHandler MouseEnter;
member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter

MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer rests on the control.
public event EventHandler MouseHover;
member [Link] : EventHandler

Remarks
A typical use of MouseHover is to display a tool tip when the mouse pauses on a control within a specified area around
the control (the "hover rectangle"). The pause required for this event to be raised is specified in milliseconds by the
MouseHoverTime property.
The MouseHover event is defined and detected in connection with the MouseHoverSize and MouseHoverTime
properties.
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover

MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer leaves the control.
public event EventHandler MouseLeave;
member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is moved over the control.
public event [Link] MouseMove;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove

MouseHover / MouseDown / MouseWheel


MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is released.
public event [Link] MouseUp;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp

MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is moved.
public event EventHandler Move;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control's Padding property changes.

public event EventHandler PaddingChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Padding property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control's Parent property changes.

public event EventHandler ParentChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Parent property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ListViewArray.
QueryAccessibilityHelp
I n this Article
Occurs when an AccessibleObject is providing Help to accessibility applications.

public event [Link] QueryAccessibilityHelp;


member [Link] : [Link]

Remarks
You should use the HelpProvider class to enable users to invoke Help on your accessible object by pressing the F1 key.
The HelpProvider gives you complete information in the QueryAccessibilityHelpEventArgs.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ContinueDrag
I n this Article
Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.
public event [Link] QueryContinueDrag;
member [Link] : [Link]

Remarks
The QueryContinueDrag event is raised when there is a change in the keyboard or mouse button state during a drag-
and-drop operation. The QueryContinueDrag event enables the drag source to determine whether the drag-and-drop
operation should be canceled.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Region property changes.

public event EventHandler RegionChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Region property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
The ResetIndex method is not supported in the ListViewArray class.

public void ResetIndex ([Link] o);


member [Link] : [Link] -> unit

Parameters
o ListView ListView
A Control.

Remarks
This method is not supported, and calling it does not raise an exception.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is resized.
public event EventHandler Resize;
member [Link] : EventHandler

Remarks
To determine the Size of the resized control, you can cast the sender parameter of the EventArgs data to a Control and
get its Size property (or Height and Width properties individually).
To handle custom layouts, use the Layout event instead of the Resize event. The Layout event is raised in response to
a Resize event, but also in response to other changes that affect the layout of the control.

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
VirtualItem
I n this Article
Occurs when the ListView is in virtual mode and requires a ListViewItem.

public event [Link] RetrieveVirtualItem;


member [Link] : [Link]

Remarks
You should set the [Link] property to a valid ListViewItem when handling this event.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
LeftChanged
I n this Article
Occurs when the RightToLeftChanged property value changes.

public event EventHandler RightToLeftChanged;


member [Link] : EventHandler

Remarks
This event is raised if the RightToLeft property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ListViewArray.
RightToLeftLayoutChanged
I n this Article
Occurs when the RightToLeftLayout property changes.

public event EventHandler RightToLeftLayoutChanged;


member [Link] : EventHandler

Remarks
This event is raised if the RightToLeftLayout property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ForVirtualItem
I n this Article
Occurs when the ListView is in virtual mode and a search is taking place.

public event [Link] SearchForVirtualItem;


member [Link] : [Link]

Remarks
This event occurs when a ListView is in virtual mode and the FindNearestItem or FindItemWithText method is called.
When handling this event, you should calculate which item from the list of items supplied by the Items property
matches the search criteria and set the [Link] property to the index of the
ListViewItem. If an item is not provided, FindNearestItem and FindItemWithText will return a null reference (Nothing
in Visual Basic).
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ListViewArray.
SelectedIndexChanged
I n this Article
Occurs when the SelectedIndex property has changed.

public event EventHandler SelectedIndexChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SelectedIndex property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Sets the index of the initial ListView in a ListViewArray.
public void SetIndex ([Link] o, short Index);
member [Link] : [Link] * int16 -> unit

Parameters
o ListView ListView
A ListView in the control array.
Index Int16 Int16
A Short that represents the index of the specified ListView.

Remarks
The SetIndex method should only be called when you are creating the initial element in the control array. To add
subsequent elements, call the Load method and specify the Index .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
SerializeIndex
I n this Article
Returns a value that indicates whether a ListView is a member of this ListViewArray.

public bool ShouldSerializeIndex ([Link] o);


member [Link] : [Link] -> bool

Parameters
o ListView ListView
A ListView in the control array.
Returns
Boolean Boolean
true if o is a member of this control array; otherwise, false .

Remarks
If the specified ListView is a member of a different ListViewArray, ShouldSerializeIndex returns false .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the Size property value changes.
public event EventHandler SizeChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Size property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control style changes.
public event EventHandler StyleChanged;
member [Link] : EventHandler

Remarks
The StyleChanged event occurs when ControlStyles flags have been added or changed.

This event is raised if the control style is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ListViewArray.
SystemColorsChanged
I n this Article
Occurs when the system colors change.

public event EventHandler SystemColorsChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SystemColors is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the TabIndex property value changes.

public event EventHandler TabIndexChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabIndex property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the TabStop property value changes.

public event EventHandler TabStopChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabStop property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is finished validating.
public event EventHandler Validated;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated

If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is validating.
public event [Link] Validating;
member [Link] : [Link]

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated
If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] List
[Link]
I n this Article
Occurs when a ListView is in virtual mode and the selection state of a range of items has changed.

public event [Link]


VirtualItemsSelectionRangeChanged;
member [Link] :
[Link]

Remarks
If the ListView is not in virtual mode, the ItemSelectionChanged event will occur.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Visible property value changes.

public event EventHandler VisibleChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Visible property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
LoadResConstants LoadResConstants Enum
Provides constants for compatibility with the Visual Basic 6.0 LoadResPicture function.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public enum LoadResConstants
type LoadResConstants =

I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum

Remarks
In Visual Basic 6.0, the LoadResPicture function was used to load a resource from a file; the LoadResPicture
constants specified the type of resource to load. In Visual Basic, the LoadResPicture function is no longer supported.
These constants enable code that has been upgraded from Visual Basic 6.0 to continue to run without additional
modification.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Fields
ResBitmap ResBitmap Equivalent to the Visual Basic 6.0 constant vbResBitmap .

ResCursor ResCursor Equivalent to the Visual Basic 6.0 constant vbResCursor .

ResIcon ResIcon Equivalent to the Visual Basic 6.0 constant vbResIcon .

See Also
MaskedTextBoxArray MaskedTextBoxArray Class
Provides a control array of MaskedTextBox controls.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class MaskedTextBoxArray : [Link],
[Link]
type MaskedTextBoxArray = class
inherit BaseControlArray
interface IExtenderProvider

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component
BaseControlArray BaseControlArray

Remarks
The MaskedTextBoxArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0
MaskedTextBox array. It does not provide the design-time features of a Visual Basic 6.0 control array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
MaskedTextBoxArray()
MaskedTextBoxArray()

Initializes a new instance of the MaskedTextBoxArray class.

MaskedTextBoxArray(IContainer)
MaskedTextBoxArray(IContainer)

Initializes a new instance of the MaskedTextBoxArray class, specifying its container.

Properties
Item[Int16]
Item[Int16]

Gets a specific element of a MaskedTextBoxArray by index. Read-only.


Methods
CanExtend(Object)
CanExtend(Object)

Gets a value that determines whether a control is a member of a MaskedTextBoxArray.

GetControlInstanceType()
GetControlInstanceType()

Overrides GetControlInstanceType().

GetIndex(MaskedTextBox)
GetIndex(MaskedTextBox)

Gets the index of a MaskedTextBox in a MaskedTextBoxArray.

HookUpControlEvents(Object)
HookUpControlEvents(Object)

Overrides HookUpControlEvents(Object).

ResetIndex(MaskedTextBox)
ResetIndex(MaskedTextBox)

Not supported in the MaskedTextBoxArray class.

SetIndex(MaskedTextBox, Int16)
SetIndex(MaskedTextBox, Int16)

Sets the index of the initial MaskedTextBox in a MaskedTextBoxArray.

ShouldSerializeIndex(MaskedTextBox)
ShouldSerializeIndex(MaskedTextBox)

Returns a value that indicates whether a MaskedTextBox is a member of this MaskedTextBoxArray.

Events
BackColorChanged
BackColorChanged

Occurs when the value of the AutoSize property changes.

BindingContextChanged
BindingContextChanged

Occurs when the value of the BindingContext property changes.

BorderStyleChanged
BorderStyleChanged

Occurs when the value of the BorderStyle property changes.

CausesValidationChanged
CausesValidationChanged

Occurs when the value of the CausesValidation property changes.

ChangeUICues
ChangeUICues

Occurs when the focus or keyboard user interface (UI) cues change.

Click
Click

Occurs when a MaskedTextBox in a MaskedTextBoxArray is clicked.

ClientSizeChanged
ClientSizeChanged

Occurs when the value of the ClientSize property changes.

ContextMenuChanged
ContextMenuChanged

Occurs when the value of the ContextMenu property changes.

ContextMenuStripChanged
ContextMenuStripChanged

Occurs when the value of the ContextMenuStrip property changes.

ControlAdded
ControlAdded

Occurs when a new control is added to the MaskedTextBoxArray.


ControlRemoved
ControlRemoved

Occurs when a control is removed from the MaskedTextBoxArray.

CursorChanged
CursorChanged

Occurs when the value of the Cursor property changes.

DockChanged
DockChanged

Occurs when the value of the Dock property changes.

DoubleClick
DoubleClick

Occurs when a MaskedTextBox control in a MaskedTextBoxArray is double-clicked.

DragDrop
DragDrop

Occurs when a drag-and-drop operation is completed.

DragEnter
DragEnter

Occurs when an object is dragged into the control's bounds.

DragLeave
DragLeave

Occurs when an object is dragged out of the control's bounds.

DragOver
DragOver

Occurs when an object is dragged over the control's bounds.

EnabledChanged
EnabledChanged

Occurs when the value of the Enabled property changes.


Enter
Enter

Occurs when the control is entered.

FontChanged
FontChanged

Occurs when the value of the Font property changes.

ForeColorChanged
ForeColorChanged

Occurs when the value of the ForeColor property changes.

GiveFeedback
GiveFeedback

Occurs during a drag operation.

HelpRequested
HelpRequested

Occurs when the user requests help for a control.

HideSelectionChanged
HideSelectionChanged

Occurs when the value of the HideSelection property changes.

ImeModeChanged
ImeModeChanged

Occurs when the value of the ImeMode property changes.

IsOverwriteModeChanged
IsOverwriteModeChanged

Occurs after the insert mode has changed.

KeyDown
KeyDown

Occurs when a key is pressed and the control has focus.


KeyPress
KeyPress

Occurs when a key is pressed and the control has focus.

KeyUp
KeyUp

Occurs when a key is released and the control has focus.

Layout
Layout

Occurs when a control should reposition its child controls.

Leave
Leave

Occurs when the input focus leaves the control.

LocationChanged
LocationChanged

Occurs when the value of the Location property changes.

MarginChanged
MarginChanged

Occurs when the value of the Margin property changes.

MaskChanged
MaskChanged

Occurs after the input mask is changed.

MaskInputRejected
MaskInputRejected

Occurs when the user's input or assigned character does not match the corresponding format element of the input
mask.

ModifiedChanged
ModifiedChanged

Occurs when the value of the Modified property has changed.


MouseCaptureChanged
MouseCaptureChanged

Occurs when the control loses or gains mouse capture.

MouseClick
MouseClick

Occurs when the control is clicked by the mouse.

MouseDoubleClick
MouseDoubleClick

Occurs when the control is double-clicked by the mouse.

MouseDown
MouseDown

Occurs when the mouse pointer is over the control and a mouse button is pressed.

MouseEnter
MouseEnter

Occurs when the mouse pointer enters the control.

MouseHover
MouseHover

Occurs when the mouse pointer rests on the control.

MouseLeave
MouseLeave

Occurs when the mouse pointer leaves the control.

MouseMove
MouseMove

Occurs when the mouse pointer is moved over the control.

MouseUp
MouseUp

Occurs when the mouse pointer is over the control and a mouse button is released.
Move
Move

Occurs when the control is moved.

ParentChanged
ParentChanged

Occurs when the control's Parent property changes.

QueryAccessibilityHelp
QueryAccessibilityHelp

Occurs when an AccessibleObject is providing Help to accessibility applications.

QueryContinueDrag
QueryContinueDrag

Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.

ReadOnlyChanged
ReadOnlyChanged

Occurs when the value of the ReadOnly property changes.

RegionChanged
RegionChanged

Occurs when the value of the Region property changes.

Resize
Resize

Occurs when the control is resized.

RightToLeftChanged
RightToLeftChanged

Occurs when the RightToLeftChanged property value changes.

SizeChanged
SizeChanged

Occurs when the Size property value changes.


StyleChanged
StyleChanged

Occurs when the control style changes.

SystemColorsChanged
SystemColorsChanged

Occurs when the system colors change.

TabIndexChanged
TabIndexChanged

Occurs when the TabIndex property value changes.

TabStopChanged
TabStopChanged

Occurs when the TabStop property value changes.

TextAlignChanged
TextAlignChanged

Occurs when the TextAlign property value changes.

TextChanged
TextChanged

Occurs when the Text property value changes.

TypeValidationCompleted
TypeValidationCompleted

Occurs when MaskedTextBox has finished parsing the current value by using the ValidatingType property.

Validated
Validated

Occurs when the control is finished validating.

Validating
Validating

Occurs when the control is validating.


VisibleChanged
VisibleChanged

Occurs when the Visible property value changes.


[Link] MaskedTextBox
[Link]
I n this Article
Occurs when the value of the AutoSize property changes.

public event EventHandler BackColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the AutoSize property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] Masked
[Link]
I n this Article
Occurs when the value of the BindingContext property changes.

public event EventHandler BindingContextChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BindingContext property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBox
[Link]
I n this Article
Occurs when the value of the BorderStyle property changes.

public event EventHandler BorderStyleChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BorderStyle property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Extend
I n this Article
Gets a value that determines whether a control is a member of a MaskedTextBoxArray.

public bool CanExtend (object target);


abstract member CanExtend : obj -> bool
override [Link] : obj -> bool

Parameters
target Object Object
A MaskedTextBox control.
Returns
Boolean Boolean
true if target is a member of the control array; otherwise false .

Remarks
The CanExtend method can be used to determine whether a specific MaskedTextBox control is the base element of the
control array from which the other elements were cloned.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] Masked
[Link]
I n this Article
Occurs when the value of the CausesValidation property changes.

public event EventHandler CausesValidationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the CausesValidation property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBoxArray.
ChangeUICues
I n this Article
Occurs when the focus or keyboard user interface (UI) cues change.

public event [Link] ChangeUICues;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a MaskedTextBox in a MaskedTextBoxArray is clicked.
public event EventHandler Click;
member [Link] : EventHandler

Remarks
The Click event passes an EventArgs to its event handler. Therefore it only indicates that a click has occurred. If you
need more specific mouse information (button, number of clicks, wheel rotation, or location), use the MouseClick event.
However, the MouseClick event will not be raised if the click is caused by action other than that of the mouse, such as
pressing the ENTER key.
A double-click is determined by the mouse settings of the user's operating system. The user can set the time between
clicks of a mouse button that should be considered a double-click instead of two clicks. The Click event is raised every
time that a control is double-clicked. For example, if you have event handlers for the Click and DoubleClick events of
a control, the Click and DoubleClick events are raised when the control is double-clicked and both methods are
called. If a control is double-clicked and that control does not support the DoubleClick event, the Click event might be
raised two times.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBox
[Link]
I n this Article
Occurs when the value of the ClientSize property changes.

public event EventHandler ClientSizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ClientSize property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedText
[Link]
I n this Article
Occurs when the value of the ContextMenu property changes.

[[Link](false)]
public event EventHandler ContextMenuChanged;
member [Link] : EventHandler

Attributes BrowsableAttribute

Remarks
This event is raised if the ContextMenu property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] Masked
[Link]
I n this Article
Occurs when the value of the ContextMenuStrip property changes.

public event EventHandler ContextMenuStripChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ContextMenuStrip property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBoxArray.
ControlAdded
I n this Article
Occurs when a new control is added to the MaskedTextBoxArray.

public event [Link] ControlAdded;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBox
[Link]
I n this Article
Occurs when a control is removed from the MaskedTextBoxArray.

public event [Link] ControlRemoved;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBox
[Link]
I n this Article
Occurs when the value of the Cursor property changes.

public event EventHandler CursorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Cursor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBoxArray.
DockChanged
I n this Article
Occurs when the value of the Dock property changes.

public event EventHandler DockChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Dock property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBoxArray.
DoubleClick
I n this Article
Occurs when a MaskedTextBox control in a MaskedTextBoxArray is double-clicked.

public event EventHandler DoubleClick;


member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBoxArray.
DragDrop
I n this Article
Occurs when a drag-and-drop operation is completed.

public event [Link] DragDrop;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBoxArray.
DragEnter
I n this Article
Occurs when an object is dragged into the control's bounds.

public event [Link] DragEnter;


member [Link] : [Link]

Remarks
The DragEnter event is raised when the user first drags the mouse pointer over the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBoxArray.
DragLeave
I n this Article
Occurs when an object is dragged out of the control's bounds.

public event EventHandler DragLeave;


member [Link] : EventHandler

Remarks
The DragLeave event is raised when the user drags the mouse pointer out of the control or the user cancels the current
drag-and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBoxArray.
DragOver
I n this Article
Occurs when an object is dragged over the control's bounds.

public event [Link] DragOver;


member [Link] : [Link]

Remarks
The DragOver event is raised when the mouse pointer moves within the bounds of the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBox
[Link]
I n this Article
Occurs when the value of the Enabled property changes.

public event EventHandler EnabledChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Enabled property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is entered.
public event EventHandler Enter;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), or by calling the Select or
SelectNextControl method, focus events occur in the following order:
Enter

GotFocus
Leave
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter

GotFocus
LostFocus
Leave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBoxArray.
FontChanged
I n this Article
Occurs when the value of the Font property changes.

public event EventHandler FontChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Font property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBox
[Link]
I n this Article
Occurs when the value of the ForeColor property changes.

public event EventHandler ForeColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ForeColor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedText
[Link]
I n this Article
Overrides GetControlInstanceType().

protected override Type GetControlInstanceType ();


override [Link] : unit -> Type

Returns
Type Type
The type of a control in a control array.

Remarks
This method cannot be called from your application's code. Use the GetType method instead.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Index
I n this Article
Gets the index of a MaskedTextBox in a MaskedTextBoxArray.

public short GetIndex ([Link] o);


member [Link] : [Link] -> int16

Parameters
o MaskedTextBox MaskedTextBox
A MaskedTextBox in the control array.
Returns
Int16 Int16
A Short that represents the index of the specified MaskedTextBox.

Remarks
This method can be used to retrieve the index for the specified MaskedTextBox.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBoxArray.
GiveFeedback
I n this Article
Occurs during a drag operation.

public event [Link] GiveFeedback;


member [Link] : [Link]

Remarks
The GiveFeedback event is raised when a drag-and-drop operation is started. By using the GiveFeedback event, the
source of a drag event can modify the appearance of the mouse pointer in order to give the user visual feedback during
a drag-and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBox
[Link]
I n this Article
Occurs when the user requests help for a control.

public event [Link] HelpRequested;


member [Link] : [Link]

Remarks
The HelpRequested event is typically raised when the user presses the F1 key or an associated context-sensitive Help
button is clicked.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedText
[Link]
I n this Article
Occurs when the value of the HideSelection property changes.

public event EventHandler HideSelectionChanged;


member [Link] : EventHandler

Remarks
This event is raised if the HideSelection property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedText
[Link]
I n this Article
Overrides HookUpControlEvents(Object).

protected override void HookUpControlEvents (object o);


override [Link] : obj -> unit

Parameters
o Object Object
An Object.

Remarks
This method cannot be called from your application's code. Use AddHandler to hook up events for any controls that
are added by using the Load method.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBox
[Link]
I n this Article
Occurs when the value of the ImeMode property changes.

public event EventHandler ImeModeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ImeMode property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] Masked
[Link]
I n this Article
Occurs after the insert mode has changed.

public event EventHandler IsOverwriteModeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the IsOverwriteMode property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link][Int16] MaskedTextBoxArray.
Item[Int16]
I n this Article
Gets a specific element of a MaskedTextBoxArray by index. Read-only.

public [Link] this[short Index] { get; }


member [Link](int16) : [Link]

Parameters
Index Int16 Int16
A Short that specifies the position of an element of the control array.
Returns
MaskedTextBox MaskedTextBox
A MaskedTextBox at the specified Index in the control array.

Remarks
The Item property is the default property for a control array. Therefore, the following lines of code are equivalent.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Down
I n this Article
Occurs when a key is pressed and the control has focus.

public event [Link] KeyDown;


member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown

KeyPress
KeyUp
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Press
I n this Article
Occurs when a key is pressed and the control has focus.

public event [Link] KeyPress;


member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress

KeyUp
The KeyPress event is not raised by noncharacter keys; however, the noncharacter keys do raise the KeyDown and
KeyUp events.
Use the KeyChar property to sample keystrokes at run time and to consume or modify a subset of common keystrokes.
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is released and the control has focus.
public event [Link] KeyUp;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress
KeyUp

To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a control should reposition its child controls.
public event [Link] Layout;
member [Link] : [Link]

Remarks
The Layout event occurs when child controls are added or removed, when the bounds of the control changes, and
when other changes occur that can affect the layout of the control. The layout event can be suppressed by using the
SuspendLayout and ResumeLayout methods. Suspending layout enables you to perform multiple actions on a control
without having to perform a layout for each change. For example, if you resize and move a control, each operation
would raise a Layout event.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the input focus leaves the control.
public event EventHandler Leave;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), or by calling the Select or
SelectNextControl method, focus events occur in the following order:
Enter
GotFocus
Leave

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBox
[Link]
I n this Article
Occurs when the value of the Location property changes.

public event EventHandler LocationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Location property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBox
[Link]
I n this Article
Occurs when the value of the Margin property changes.

public event EventHandler MarginChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Margin property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBoxArray.
MaskChanged
I n this Article
Occurs after the input mask is changed.

public event EventHandler MaskChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Mask property is changed by either a programmatic modification or user interaction. This
event is also raised if the MaskedTextProvider is indirectly changed by a member such as Mask, AllowPromptAsInput,
AsciiOnly, and Culture.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
MaskedTextBoxArray MaskedTextBoxArray
I n this Article

Overloads
MaskedTextBoxArray()
Initializes a new instance of the MaskedTextBoxArray class.

MaskedTextBoxArray(IContainer) MaskedTextBoxArray(
IContainer) Initializes a new instance of the MaskedTextBoxArray class,
specifying its container.

MaskedTextBoxArray()
Initializes a new instance of the MaskedTextBoxArray class.
public MaskedTextBoxArray ();

Remarks
When you instantiate a MaskedTextBoxArray, you must also call the SetIndex method to create the initial element in
the array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

MaskedTextBoxArray(IContainer)
MaskedTextBoxArray(IContainer)
Initializes a new instance of the MaskedTextBoxArray class, specifying its container.

public MaskedTextBoxArray ([Link] Container);


new [Link] : [Link] ->
[Link]

Parameters
Container IContainer IContainer
The IContainer where the control array will be hosted.
Remarks
When you instantiate a MaskedTextBoxArray, you must also call the SetIndex method to create the initial element in
the array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBox
[Link]
I n this Article
Occurs when the user's input or assigned character does not match the corresponding format element of the input
mask.
public event [Link] MaskInputRejected;
member [Link] : [Link]

Remarks
The MaskInputRejected event occurs when a character is rejected by the input mask. The input mask, represented by
the Mask property, is interpreted by the masked text provider associated with the control through the
MaskedTextProvider property.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBox
[Link]
I n this Article
Occurs when the value of the Modified property has changed.

public event EventHandler ModifiedChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Modified property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedText
[Link]
I n this Article
Occurs when the control loses or gains mouse capture.

public event EventHandler MouseCaptureChanged;


member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBoxArray.
MouseClick
I n this Article
Occurs when the control is clicked by the mouse.

public event [Link] MouseClick;


member [Link] : [Link]

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown
Click / MouseClick
MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate an MouseDoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a control. They are often raised by other actions, such as pressing the
ENTER key when the control has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBox
[Link]
I n this Article
Occurs when the control is double-clicked by the mouse.

public event [Link] MouseDoubleClick;


member [Link] : [Link]

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown
Click
MouseClick
MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate a DoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a control. They are often raised by other actions, such as pressing the
ENTER key when the control has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBoxArray.
MouseDown
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is pressed.

public event [Link] MouseDown;


member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel

MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBoxArray.
MouseEnter
I n this Article
Occurs when the mouse pointer enters the control.

public event EventHandler MouseEnter;


member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter

MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBoxArray.
MouseHover
I n this Article
Occurs when the mouse pointer rests on the control.

public event EventHandler MouseHover;


member [Link] : EventHandler

Remarks
A typical use of MouseHover is to display a tool tip when the mouse pauses on a control within a specified area around
the control (the "hover rectangle"). The pause required for this event to be raised is specified in milliseconds by the
MouseHoverTime property.
The MouseHover event is defined and detected in connection with the MouseHoverSize and MouseHoverTime
properties.
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBoxArray.
MouseLeave
I n this Article
Occurs when the mouse pointer leaves the control.

public event EventHandler MouseLeave;


member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBoxArray.
MouseMove
I n this Article
Occurs when the mouse pointer is moved over the control.

public event [Link] MouseMove;


member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove

MouseHover / MouseDown / MouseWheel


MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBoxArray.
MouseUp
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is released.

public event [Link] MouseUp;


member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp

MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is moved.
public event EventHandler Move;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBox
[Link]
I n this Article
Occurs when the control's Parent property changes.

public event EventHandler ParentChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Parent property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedText
[Link]
I n this Article
Occurs when an AccessibleObject is providing Help to accessibility applications.

public event [Link] QueryAccessibilityHelp;


member [Link] : [Link]

Remarks
You should use the HelpProvider class to enable users to invoke Help on your accessible object by pressing the F1 key.
The HelpProvider gives you complete information in the QueryAccessibilityHelpEventArgs.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBox
[Link]
I n this Article
Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.
public event [Link] QueryContinueDrag;
member [Link] : [Link]

Remarks
The QueryContinueDrag event is raised when there is a change in the keyboard or mouse button state during a drag-
and-drop operation. The QueryContinueDrag event enables the drag source to determine whether the drag-and-drop
operation should be canceled.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBox
[Link]
I n this Article
Occurs when the value of the ReadOnly property changes.

public event EventHandler ReadOnlyChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ReadOnly property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBox
[Link]
I n this Article
Occurs when the value of the Region property changes.

public event EventHandler RegionChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Region property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBoxArray.
ResetIndex
I n this Article
Not supported in the MaskedTextBoxArray class.

public void ResetIndex ([Link] o);


member [Link] : [Link] -> unit

Parameters
o MaskedTextBox MaskedTextBox
A Control.

Remarks
This method is not supported, and calling it does not raise an exception.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is resized.
public event EventHandler Resize;
member [Link] : EventHandler

Remarks
To determine the Size of the resized control, you can cast the sender parameter of the EventArgs data to a Control and
get its Size property (or Height and Width properties individually).
To handle custom layouts, use the Layout event instead of the Resize event. The Layout event is raised in response to
a Resize event, but also in response to other changes that affect the layout of the control.

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBox
[Link]
I n this Article
Occurs when the RightToLeftChanged property value changes.

public event EventHandler RightToLeftChanged;


member [Link] : EventHandler

Remarks
This event is raised if the RightToLeft property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Index
I n this Article
Sets the index of the initial MaskedTextBox in a MaskedTextBoxArray.

public void SetIndex ([Link] o, short Index);


member [Link] : [Link] * int16 -> unit

Parameters
o MaskedTextBox MaskedTextBox
A MaskedTextBox in the control array.
Index Int16 Int16
A Short that represents the index of the specified MaskedTextBox.

Remarks
The SetIndex method should be called only when you are creating the initial element in the control array. To add
subsequent elements, call the Load method and specify the Index .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBox
[Link]
I n this Article
Returns a value that indicates whether a MaskedTextBox is a member of this MaskedTextBoxArray.

public bool ShouldSerializeIndex ([Link] o);


member [Link] : [Link] -> bool

Parameters
o MaskedTextBox MaskedTextBox
A MaskedTextBox in the control array.
Returns
Boolean Boolean
true if o is a member of this control array; otherwise, false .

Remarks
If the specified MaskedTextBox is a member of a different MaskedTextBoxArray, ShouldSerializeIndex returns false
.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBoxArray.
SizeChanged
I n this Article
Occurs when the Size property value changes.

public event EventHandler SizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Size property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBoxArray.
StyleChanged
I n this Article
Occurs when the control style changes.

public event EventHandler StyleChanged;


member [Link] : EventHandler

Remarks
The StyleChanged event occurs when ControlStyles flags have been added or changed.
This event is raised if the control style is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedText
[Link]
I n this Article
Occurs when the system colors change.

public event EventHandler SystemColorsChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SystemColors is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBox
[Link]
I n this Article
Occurs when the TabIndex property value changes.

public event EventHandler TabIndexChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabIndex property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBox
[Link]
I n this Article
Occurs when the TabStop property value changes.

public event EventHandler TabStopChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabStop property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBox
[Link]
I n this Article
Occurs when the TextAlign property value changes.

public event EventHandler TextAlignChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TextAlign property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBoxArray.
TextChanged
I n this Article
Occurs when the Text property value changes.

public event EventHandler TextChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Text property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] Masked
[Link]
I n this Article
Occurs when MaskedTextBox has finished parsing the current value by using the ValidatingType property.

public event [Link] TypeValidationCompleted;


member [Link] : [Link]

Remarks
The MaskedTextBox control will optionally validate user input against the type defined by its ValidatingType property.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBoxArray.
Validated
I n this Article
Occurs when the control is finished validating.

public event EventHandler Validated;


member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated

If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBoxArray.
Validating
I n this Article
Occurs when the control is validating.

public event [Link] Validating;


member [Link] : [Link]

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated
If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MaskedTextBox
[Link]
I n this Article
Occurs when the Visible property value changes.

public event EventHandler VisibleChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Visible property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
MBinding MBinding Class
Enables Windows Forms controls to be bound to ADO recordsets. This type is a managed equivalent of the Visual
Basic 6.0 msbind library.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
[[Link]("7619A54D-8919-4f21-BE7D-C8E5ACE5FC0D")]
public class MBinding : IDisposable, [Link]
type MBinding = class
interface DBinding
interface IDisposable

I nheritance H ierarchy
Object Object

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Properties
DataChanged
DataChanged

Gets or sets a value indicating whether data has changed.

DataField
DataField

Gets a data field.

DataFormat
DataFormat

Gets or sets the data format for a data field.

Key
Key

Gets the key value for a data field.

Object
Object

Gets a data object.

PropertyName
PropertyName

Gets the name of a property from a data object.

Methods
Dispose()
Dispose()

Releases the unmanaged resources that are used by an MBinding.

Dispose(Boolean)
Dispose(Boolean)

Releases the unmanaged resources that are used by an MBinding and, optionally, releases the managed resources.
[Link] [Link]
I n this Article
Gets or sets a value indicating whether data has changed.
public bool DataChanged { get; set; }
member [Link] : bool with get, set

Returns
Boolean Boolean
true if data has changed; otherwise, false .

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets a data field.
public string DataField { get; }
member [Link] : string

Returns
String String
A String that contains the data.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets or sets the data format for a data field.
public [Link] DataFormat { get; set; }
member [Link] : [Link] with get, set

Returns
IDataFormatDisp IDataFormatDisp
An IDataFormatDisp interface.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article

Overloads
Dispose() Dispose()
Releases the unmanaged resources that are used by an
MBinding.

Dispose(Boolean) Dispose(Boolean)
Releases the unmanaged resources that are used by an
MBinding and, optionally, releases the managed resources.

Dispose() Dispose()
Releases the unmanaged resources that are used by an MBinding.
public void Dispose ();
abstract member Dispose : unit -> unit
override [Link] : unit -> unit

Remarks
This method is called by the public Dispose() method and the Finalize method.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Dispose(Boolean) Dispose(Boolean)
Releases the unmanaged resources that are used by an MBinding and, optionally, releases the managed resources.
protected virtual void Dispose (bool disposing);
abstract member Dispose : bool -> unit
override [Link] : bool -> unit

Parameters
disposing Boolean Boolean
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Remarks
This method is called by the public Dispose() method and the Finalize method. Dispose() invokes the protected
Dispose(Boolean) method with the disposing parameter set to true . Finalize invokes Dispose with the disposing
parameter set to false .
When the disposing parameter is true , this method releases all resources held by any managed objects that this
control references. This method invokes the Dispose() method of each referenced object.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the key value for a data field.
public string Key { get; }
member [Link] : string

Returns
String String
A String that contains the key value.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets a data object.
public object Object { get; }
member [Link] : obj

Returns
Object Object
An Object that contains data.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the name of a property from a data object.
public string PropertyName { get; }
member [Link] : string

Returns
String String
A String that contains the property name.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
MBindingCollection MBindingCollection Class
Provides an interface to replace COM -based data binding in an application upgraded from Visual Basic 6.0.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class MBindingCollection : IDisposable,
[Link]
type MBindingCollection = class
interface DBindingCollection
interface IDisposable

I nheritance H ierarchy
Object Object

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
MBindingCollection()
MBindingCollection()

Initializes an instance of a MBindingCollection.

Properties
Count
Count

Gets the total number of bindings in the MBindingCollection.

DataMember
DataMember

Gets or sets the data member for a MBindingCollection.

DataSource
DataSource

Gets or sets the data source for a MBindingCollection.


Item[Object]
Item[Object]

Gets the MBinding at the specified index.

UpdateMode
UpdateMode

Gets or sets the UpdateMode for a MBindingCollection.

Methods
Add(Object, String, String, IDataFormatDisp, String)
Add(Object, String, String, IDataFormatDisp, String)

Adds a MBinding to a MBindingCollection.

Add(Object, String, String, IDataFormatDisp, String, Boolean)


Add(Object, String, String, IDataFormatDisp, String, Boolean)

Adds a MBinding to a MBindingCollection.

Clear()
Clear()

Clears the collection of binding objects.

Dispose()
Dispose()

Releases the unmanaged resources that are used by a MBindingCollection.

Dispose(Boolean)
Dispose(Boolean)

Releases the unmanaged resources that are used by a MBindingCollection and optionally releases the managed
resources.

GetEnumerator()
GetEnumerator()

Gets an enumerator for a MBindingCollection.

Remove(Object)
Remove(Object)
Removes a MBinding interface from a MBindingCollection.

SavePendingChanges()
SavePendingChanges()

Determines whether to save changes in a MBindingCollection.

UpdateControls()
UpdateControls()

Gets the current row from the data source of the MBindingCollection object and resets the contents of controls
bound through the object.
[Link] [Link]
I n this Article

Overloads
Add(Object, String, String, IDataFormatDisp, String) Add(
Object, String, String, IDataFormatDisp, String) Adds a MBinding to a MBindingCollection.

Add(Object, String, String, IDataFormatDisp, String, Boolean)


Add(Object, String, String, IDataFormatDisp, String, Boolean) Adds a MBinding to a MBindingCollection.

Add(Object, String, String, IDataFormatDisp, String) Add(Object,


String, String, IDataFormatDisp, String)
Adds a MBinding to a MBindingCollection.
public [Link] Add (object obj, string propertyName, string
dataField, [Link] dataFormat = null, string key =
null);
abstract member Add : obj * string * string *
[Link] * string ->
[Link]
override [Link] : obj * string * string * [Link]
* string -> [Link]

Parameters
obj Object Object
An Object that contains data.
propertyName String String
A String that contains a property name.
dataField String String
A String that contains the name of a data field.
dataFormat IDataFormatDisp IDataFormatDisp
Optional. An IDataFormatDisp interface.
key String String
Optional. A String that contains the key value.
Returns
DBinding DBinding
A MBinding interface.
Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Add(Object, String, String, IDataFormatDisp, String, Boolean)


Add(Object, String, String, IDataFormatDisp, String, Boolean)
Adds a MBinding to a MBindingCollection.
public [Link] Add (object obj, string propertyName, string
dataField, [Link] dataFormat, string key, bool
immediateBind);
member [Link] : obj * string * string * [Link] *
string * bool -> [Link]

Parameters
obj Object Object
An Object that contains data.
propertyName String String
A String that contains a property name.

dataField String String


A String that contains the name of a data field.

dataFormat IDataFormatDisp IDataFormatDisp


An IDataFormatDisp interface.
key String String
A String that contains the key value.
immediateBind Boolean Boolean
true to bind immediately; otherwise false .
Returns
DBinding DBinding
A MBinding interface.
Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Clears the collection of binding objects.
public void Clear ();
abstract member Clear : unit -> unit
override [Link] : unit -> unit

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the total number of bindings in the MBindingCollection.
public int Count { get; }
member [Link] : int

Returns
Int32 Int32
An Integer that contains the count.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MBindingCollection.
DataMember
I n this Article
Gets or sets the data member for a MBindingCollection.

public string DataMember { get; set; }


member [Link] : string with get, set

Returns
String String
A String that contains the name of the data member.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MBindingCollection.
DataSource
I n this Article

This API is not CLS-compliant.


CLS- [Link]
compliant
alternative

Gets or sets the data source for a MBindingCollection.


[[Link](false)]
public [Link] DataSource { get; set; }
member [Link] : [Link] with get, set

Returns
[Link] [Link]
A COM -based [Link] object.
Attributes CLSCompliantAttribute

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article

Overloads
Dispose() Dispose()
Releases the unmanaged resources that are used by a
MBindingCollection.

Dispose(Boolean) Dispose(Boolean)
Releases the unmanaged resources that are used by a
MBindingCollection and optionally releases the managed
resources.

Dispose() Dispose()
Releases the unmanaged resources that are used by a MBindingCollection.
public void Dispose ();
abstract member Dispose : unit -> unit
override [Link] : unit -> unit

Remarks
This method is called by the public Dispose() method and the Finalize method.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Dispose(Boolean) Dispose(Boolean)
Releases the unmanaged resources that are used by a MBindingCollection and optionally releases the managed
resources.
protected void Dispose (bool disposing);
member [Link] : bool -> unit

Parameters
disposing Boolean Boolean
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Remarks
This method is called by the public Dispose() method and the Finalize method. Dispose() invokes the protected
Dispose(Boolean) method with the disposing parameter set to true . Finalize invokes Dispose with the disposing
parameter set to false .
When the disposing parameter is true , this method releases all resources held by any managed objects that this
control references. This method invokes the Dispose() method of each referenced object.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MBindingCollection.
GetEnumerator
I n this Article
Gets an enumerator for a MBindingCollection.

public [Link] GetEnumerator ();


abstract member GetEnumerator : unit -> [Link]
override [Link] : unit -> [Link]

Returns
IEnumerator IEnumerator
An IEnumerator for the collection.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link][Object] MBindingCollection.
Item[Object]
I n this Article
Gets the MBinding at the specified index.

public [Link] this[object index] { get; }


member [Link](obj) : [Link]

Parameters
index Object Object
An Object that represents the index.
Returns
DBinding DBinding
A MBinding interface.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
MBindingCollection
I n this Article
Initializes an instance of a MBindingCollection.
public MBindingCollection ();

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Removes a MBinding interface from a MBindingCollection.
public void Remove (object index);
abstract member Remove : obj -> unit
override [Link] : obj -> unit

Parameters
index Object Object
An Object that represents the index.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MBinding
[Link]
I n this Article
Determines whether to save changes in a MBindingCollection.

public void SavePendingChanges ();


member [Link] : unit -> unit

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MBindingCollection.
UpdateControls
I n this Article
Gets the current row from the data source of the MBindingCollection object and resets the contents of controls bound
through the object.
public void UpdateControls ();
abstract member UpdateControls : unit -> unit
override [Link] : unit -> unit

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MBindingCollection.
UpdateMode
I n this Article
Gets or sets the UpdateMode for a MBindingCollection.

public [Link] UpdateMode { get; set; }


member [Link] : [Link] with get, set

Returns
UpdateMode UpdateMode
A UpdateMode enumeration.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
MenuItemArray MenuItemArray Class
Provides a control array of MenuItem controls.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class MenuItemArray : [Link],
[Link]
type MenuItemArray = class
inherit BaseControlArray
interface IExtenderProvider

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component
BaseControlArray BaseControlArray

Remarks
The MenuItemArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0 MenuItem array. It
does not provide the design-time features of a Visual Basic 6.0 control array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
MenuItemArray()
MenuItemArray()

Initializes a new instance of the MenuItemArray class.

MenuItemArray(IContainer)
MenuItemArray(IContainer)

Initializes a new instance of the MenuItemArray class, specifying its container.

Properties
Item[Int16]
Item[Int16]

Gets a specific element of a MenuItemArray by index. Read-only.


Methods
CanExtend(Object)
CanExtend(Object)

Gets a value that determines whether a control is a member of a MenuItemArray.

GetControlInstanceType()
GetControlInstanceType()

Overrides GetControlInstanceType().

GetIndex(MenuItem)
GetIndex(MenuItem)

Gets the index of a MenuItem in a MenuItemArray.

HookUpControlEvents(Object)
HookUpControlEvents(Object)

Overrides HookUpControlEvents(Object).

ResetIndex(MenuItem)
ResetIndex(MenuItem)

The ResetIndex method is not supported in the MenuItemArray class.

SetIndex(MenuItem, Int16)
SetIndex(MenuItem, Int16)

Sets the index of the initial MenuItem in a MenuItemArray.

ShouldSerializeIndex(MenuItem)
ShouldSerializeIndex(MenuItem)

Returns a value that indicates whether a MenuItem is a member of this MenuItemArray.

Events
Click
Click

Occurs when a MenuItem in a MenuItemArray is clicked.

DrawItem
DrawItem

Occurs when a visual aspect of an owner-drawn MenuItem changes.

MeasureItem
MeasureItem

Occurs each time an owner-drawn MenuItem needs to be drawn.

Popup
Popup

Occurs before a menu item's list of menu items is displayed.

Select
Select

Occurs when the user rests the mouse pointer over a menu item.
[Link] [Link]
I n this Article
Gets a value that determines whether a control is a member of a MenuItemArray.
public bool CanExtend (object target);
abstract member CanExtend : obj -> bool
override [Link] : obj -> bool

Parameters
target Object Object
A MenuItem control.
Returns
Boolean Boolean
true if target is a member of the control array; otherwise false .

Remarks
The CanExtend method can be used to determine whether a specific MenuItem control is the base element of the
control array from which the other elements were cloned.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a MenuItem in a MenuItemArray is clicked.
public event EventHandler Click;
member [Link] : EventHandler

Remarks
The Click event passes an EventArgs to its event handler. Therefore it only indicates that a click has occurred. If you
need more specific mouse information (button, number of clicks, wheel rotation, or location), use the MouseClick event.
However, the MouseClick event will not be raised if the click is caused by action other than that of the mouse, such as
pressing the ENTER key.
A double-click is determined by the mouse settings of the user's operating system. The user can set the time between
clicks of a mouse button that should be considered a double-click instead of two clicks. The Click event is raised every
time that a control is double-clicked. For example, if you have event handlers for the Click and DoubleClick events of
a control, the Click and DoubleClick events are raised when the control is double-clicked and both methods are
called. If a control is double-clicked and that control does not support the DoubleClick event, the Click event might be
raised two times.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a visual aspect of an owner-drawn MenuItem changes.
public event [Link] DrawItem;
member [Link] : [Link]

Remarks
This event is used by an owner-drawn MenuItem.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MenuItemArray.
GetControlInstanceType
I n this Article
Overrides GetControlInstanceType().

protected override Type GetControlInstanceType ();


override [Link] : unit -> Type

Returns
Type Type
The MenuItemArray class is the base class for all control arrays that are used in applications upgraded from Visual
Basic 6.0. Because this class is not typically used to create an instance of the class, this Protected method is usually
not called directly but is instead called by a derived class.

Remarks
This method cannot be called from your application's code. Use the GetType method instead.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the index of a MenuItem in a MenuItemArray.
public short GetIndex ([Link] o);
member [Link] : [Link] -> int16

Parameters
o MenuItem MenuItem
A MenuItem in the control array.
Returns
Int16 Int16
A Short that represents the index of the specified MenuItem.

Remarks
This method can be used to retrieve the index for the specified MenuItem.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MenuItemArray.
HookUpControlEvents
I n this Article
Overrides HookUpControlEvents(Object).

protected override void HookUpControlEvents (object o);


override [Link] : obj -> unit

Parameters
o Object Object
An Object.

Remarks
This method cannot be called from your application's code. Use AddHandler to hook up events for any controls that
are added by using the Load method.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link][Int16] [Link][Int16]
I n this Article
Gets a specific element of a MenuItemArray by index. Read-only.
public [Link] this[short Index] { get; }
member [Link](int16) : [Link]

Parameters
Index Int16 Int16
A Short that specifies the position of an element of the control array.
Returns
MenuItem MenuItem
A MenuItem at the specified Index in the control array.

Remarks
The Item property is the default property for a control array. Therefore, the following lines of code are equivalent.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Item
I n this Article
Occurs each time an owner-drawn MenuItem needs to be drawn.

public event [Link] MeasureItem;


member [Link] : [Link]

Remarks
You can create an event handler for this event to specify the size an item is made before it is drawn in the DrawItem
event.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
MenuItemArray MenuItemArray
I n this Article

Overloads
MenuItemArray()
Initializes a new instance of the MenuItemArray class.

MenuItemArray(IContainer) MenuItemArray(IContainer)
Initializes a new instance of the MenuItemArray class,
specifying its container.

MenuItemArray()
Initializes a new instance of the MenuItemArray class.
public MenuItemArray ();

Remarks
When you instantiate a MenuItemArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

MenuItemArray(IContainer) MenuItemArray(IContainer)
Initializes a new instance of the MenuItemArray class, specifying its container.

public MenuItemArray ([Link] Container);


new [Link] : [Link] ->
[Link]

Parameters
Container IContainer IContainer
The IContainer where the control array will be hosted.
Remarks
When you instantiate a MenuItemArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs before a menu item's list of menu items is displayed.
public event EventHandler Popup;
member [Link] : EventHandler

Remarks
This event occurs only when a menu item has submenu items to display. You can use this event handler to add, remove,
enable, disable, check, or uncheck menu items based on the state of your application before they are displayed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
The ResetIndex method is not supported in the MenuItemArray class.

public void ResetIndex ([Link] o);


member [Link] : [Link] -> unit

Parameters
o MenuItem MenuItem
A Control.

Remarks
This method is not supported, and calling it does not raise an exception.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the user rests the mouse pointer over a menu item.
public event EventHandler Select;
member [Link] : EventHandler

Remarks
This event is typically raised when the user rests the mouse pointer over the menu item. The event can also be raised
when the user highlights a menu item by using the keyboard to scroll to the menu item with the arrow keys. You can
use this event to display a detailed Help string pertaining to this menu item in an application's status bar.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Sets the index of the initial MenuItem in a MenuItemArray.
public void SetIndex ([Link] o, short Index);
member [Link] : [Link] * int16 -> unit

Parameters
o MenuItem MenuItem
A MenuItem in the control array.
Index Int16 Int16
A Short that represents the index of the specified MenuItem.

Remarks
The SetIndex method should only be called when you are creating the initial element in the control array. To add
subsequent elements, call the Load method and specify the Index .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] MenuItemArray.
ShouldSerializeIndex
I n this Article
Returns a value that indicates whether a MenuItem is a member of this MenuItemArray.

public bool ShouldSerializeIndex ([Link] o);


member [Link] : [Link] -> bool

Parameters
o MenuItem MenuItem
A MenuItem in the control array.
Returns
Boolean Boolean
true if o is a member of this control array; otherwise, false .

Remarks
If the specified MenuItem is a member of a different MenuItemArray, ShouldSerializeIndex returns false .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
MouseButtonConstants MouseButtonConstants Enum
Provides constants for compatibility with the shift parameter mask constants in Visual Basic 6.0.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public enum MouseButtonConstants
type MouseButtonConstants =

I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum

Remarks
In Visual Basic 6.0, mouse button parameter mask constants were used to represent the state of mouse buttons in the
Button parameter of various mouse event handlers. In Visual Basic, the parameters for mouse events have changed
and these constants are no longer necessary. These constants enable code that has been upgraded from Visual Basic
6.0 to continue to run without further modification.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Fields
LeftButton LeftButton Equivalent to the Visual Basic 6.0 constant vbLeftButton .

MiddleButton MiddleButton Equivalent to the Visual Basic 6.0 constant vbMiddleButton .

RightButton RightButton Equivalent to the Visual Basic 6.0 constant vbRightButton .


OpenFileDialogArray OpenFileDialogArray Class
Provides a control array of OpenFileDialog controls.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class OpenFileDialogArray : [Link],
[Link]
type OpenFileDialogArray = class
inherit BaseControlArray
interface IExtenderProvider

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component
BaseControlArray BaseControlArray

Remarks
The OpenFileDialogArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0
OpenFileDialog array. It does not provide the design-time features of a Visual Basic 6.0 control array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
OpenFileDialogArray()
OpenFileDialogArray()

Initializes a new instance of the OpenFileDialogArray class.

OpenFileDialogArray(IContainer)
OpenFileDialogArray(IContainer)

Initializes a new instance of the OpenFileDialogArray class, specifying its container.

Properties
Item[Int16]
Item[Int16]

Gets a specific element of an OpenFileDialogArray by index. Read-only.


Methods
CanExtend(Object)
CanExtend(Object)

Gets a value that determines whether a control is a member of an OpenFileDialogArray.

GetControlInstanceType()
GetControlInstanceType()

Overrides GetControlInstanceType().

GetIndex(OpenFileDialog)
GetIndex(OpenFileDialog)

Gets the index of an OpenFileDialog in an OpenFileDialogArray.

HookUpControlEvents(Object)
HookUpControlEvents(Object)

Overrides HookUpControlEvents(Object).

ResetIndex(OpenFileDialog)
ResetIndex(OpenFileDialog)

The ResetIndex method is not supported in the OpenFileDialogArray class.

SetIndex(OpenFileDialog, Int16)
SetIndex(OpenFileDialog, Int16)

Sets the index of the initial OpenFileDialog in an OpenFileDialogArray.

ShouldSerializeIndex(OpenFileDialog)
ShouldSerializeIndex(OpenFileDialog)

Returns a value that indicates whether an OpenFileDialog is a member of this OpenFileDialogArray.

Events
FileOk
FileOk

Occurs when the user clicks on the Open or Save button on an OpenFileDialog dialog box.

HelpRequest
HelpRequest

Occurs when the user clicks the Help button on an OpenFileDialog dialog box.
[Link] OpenFileDialogArray.
CanExtend
I n this Article
Gets a value that determines whether a control is a member of an OpenFileDialogArray.

public bool CanExtend (object target);


abstract member CanExtend : obj -> bool
override [Link] : obj -> bool

Parameters
target Object Object
An OpenFileDialog control.
Returns
Boolean Boolean
true if target is a member of the control array; otherwise false .

Remarks
The CanExtend method can be used to determine whether a specific OpenFileDialog control is the base element of the
control array from which the other elements were cloned.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the user clicks on the Open or Save button on an OpenFileDialog dialog box.

public event [Link] FileOk;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] OpenFile
[Link]
I n this Article
Overrides GetControlInstanceType().

protected override Type GetControlInstanceType ();


override [Link] : unit -> Type

Returns
Type Type
The type of a control in a control array.

Remarks
This method cannot be called from your application's code. Use the GetType method instead.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Index
I n this Article
Gets the index of an OpenFileDialog in an OpenFileDialogArray.

public short GetIndex ([Link] o);


member [Link] : [Link] -> int16

Parameters
o OpenFileDialog OpenFileDialog
An OpenFileDialog in the control array.
Returns
Int16 Int16
A Short that represents the index of the specified OpenFileDialog.

Remarks
This method can be used to retrieve the index for the specified OpenFileDialog.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] OpenFileDialogArray.
HelpRequest
I n this Article
Occurs when the user clicks the Help button on an OpenFileDialog dialog box.

public event EventHandler HelpRequest;


member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] OpenFile
[Link]
I n this Article
Overrides HookUpControlEvents(Object).

protected override void HookUpControlEvents (object o);


override [Link] : obj -> unit

Parameters
o Object Object
An Object.

Remarks
This method cannot be called from your application's code. Use AddHandler to hook up events for any controls that
are added by using the Load method.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link][Int16] OpenFileDialogArray.
Item[Int16]
I n this Article
Gets a specific element of an OpenFileDialogArray by index. Read-only.

public [Link] this[short Index] { get; }


member [Link](int16) : [Link]

Parameters
Index Int16 Int16
A Short that specifies the position of an element of the control array.
Returns
OpenFileDialog OpenFileDialog
An OpenFileDialog at the specified Index in the control array.

Remarks
The Item property is the default property for a control array. Therefore, the following lines of code are equivalent.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
OpenFileDialogArray OpenFileDialogArray
I n this Article

Overloads
OpenFileDialogArray()
Initializes a new instance of the OpenFileDialogArray class.

OpenFileDialogArray(IContainer) OpenFileDialogArray(
IContainer) Initializes a new instance of the OpenFileDialogArray class,
specifying its container.

OpenFileDialogArray()
Initializes a new instance of the OpenFileDialogArray class.
public OpenFileDialogArray ();

Remarks
When you instantiate an OpenFileDialogArray, you must also call the SetIndex method to create the initial element in
the array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

OpenFileDialogArray(IContainer) OpenFileDialogArray(IContainer)
Initializes a new instance of the OpenFileDialogArray class, specifying its container.

public OpenFileDialogArray ([Link] Container);


new [Link] : [Link] -
> [Link]

Parameters
Container IContainer IContainer
The IContainer where the control array will be hosted.
Remarks
When you instantiate an OpenFileDialogArray, you must also call the SetIndex method to create the initial element in
the array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] OpenFileDialogArray.
ResetIndex
I n this Article
The ResetIndex method is not supported in the OpenFileDialogArray class.

public void ResetIndex ([Link] o);


member [Link] : [Link] -> unit

Parameters
o OpenFileDialog OpenFileDialog
A Control.

Remarks
This method is not supported, and calling it does not raise an exception.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Index
I n this Article
Sets the index of the initial OpenFileDialog in an OpenFileDialogArray.

public void SetIndex ([Link] o, short Index);


member [Link] : [Link] * int16 -> unit

Parameters
o OpenFileDialog OpenFileDialog
An OpenFileDialog in the control array.
Index Int16 Int16
A Short that represents the index of the specified OpenFileDialog.

Remarks
The SetIndex method should only be called when you are creating the initial element in the control array. To add
subsequent elements, call the Load method and specify the Index .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] OpenFile
[Link]
I n this Article
Returns a value that indicates whether an OpenFileDialog is a member of this OpenFileDialogArray.

public bool ShouldSerializeIndex ([Link] o);


member [Link] : [Link] -> bool

Parameters
o OpenFileDialog OpenFileDialog
An OpenFileDialog in the control array.
Returns
Boolean Boolean
true if o is a member of this control array; otherwise, false .

Remarks
If the specified OpenFileDialog is a member of a different OpenFileDialogArray, ShouldSerializeIndex returns
false .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
PanelArray PanelArray Class
Provides a control array of Panel controls.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class PanelArray : [Link],
[Link]
type PanelArray = class
inherit BaseControlArray
interface IExtenderProvider

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component
BaseControlArray BaseControlArray

Remarks
The PanelArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0 Panel array. It does
not provide the design-time features of a Visual Basic 6.0 control array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
PanelArray()
PanelArray()

Initializes a new instance of the PanelArray class.

PanelArray(IContainer)
PanelArray(IContainer)

Initializes a new instance of the PanelArray class, specifying its container.

Properties
Item[Int16]
Item[Int16]

Gets a specific element of a PanelArray by index. Read-only.


Methods
CanExtend(Object)
CanExtend(Object)

Gets a value that determines whether a control is a member of a PanelArray.

GetControlInstanceType()
GetControlInstanceType()

Overrides GetControlInstanceType().

GetIndex(Panel)
GetIndex(Panel)

Gets the index of a Panel in a PanelArray.

HookUpControlEvents(Object)
HookUpControlEvents(Object)

Overrides HookUpControlEvents(Object).

ResetIndex(Panel)
ResetIndex(Panel)

The ResetIndex method is not supported in the PanelArray class.

SetIndex(Panel, Int16)
SetIndex(Panel, Int16)

Sets the index of the initial Panel in a PanelArray.

ShouldSerializeIndex(Panel)
ShouldSerializeIndex(Panel)

Returns a value that indicates whether a Panel is a member of this PanelArray.

Events
AutoSizeChanged
AutoSizeChanged

Occurs when the value of the AutoSize property changes.

BackColorChanged
BackColorChanged

Occurs when the value of the BackColor property changes.

BackgroundImageChanged
BackgroundImageChanged

Occurs when the value of the BackgroundImage property changes.

BackgroundImageLayoutChanged
BackgroundImageLayoutChanged

Occurs when the value of the BackgroundImageLayout property changes.

BindingContextChanged
BindingContextChanged

Occurs when the value of the BindingContext property changes.

CausesValidationChanged
CausesValidationChanged

Occurs when the value of the CausesValidation property changes.

ChangeUICues
ChangeUICues

Occurs when the focus or keyboard user interface (UI) cues change.

Click
Click

Occurs when a Panel in a PanelArray is clicked.

ClientSizeChanged
ClientSizeChanged

Occurs when the value of the ClientSize property changes.

ContextMenuChanged
ContextMenuChanged

Occurs when the value of the ContextMenu property changes.


ContextMenuStripChanged
ContextMenuStripChanged

Occurs when the value of the ContextMenuStrip property changes.

ControlAdded
ControlAdded

Occurs when a new control is added to the PanelArray.

ControlRemoved
ControlRemoved

Occurs when a control is removed from the PanelArray.

CursorChanged
CursorChanged

Occurs when the value of the Cursor property changes.

DockChanged
DockChanged

Occurs when the value of the Dock property changes.

DoubleClick
DoubleClick

Occurs when a Panel control in a PanelArray is double-clicked.

DragDrop
DragDrop

Occurs when a drag-and-drop operation is completed.

DragEnter
DragEnter

Occurs when an object is dragged into the control's bounds.

DragLeave
DragLeave

Occurs when an object is dragged out of the control's bounds.


DragOver
DragOver

Occurs when an object is dragged over the control's bounds.

EnabledChanged
EnabledChanged

Occurs when the value of the Enabled property changes.

Enter
Enter

Occurs when the control is entered.

FontChanged
FontChanged

Occurs when the value of the Font property changes.

ForeColorChanged
ForeColorChanged

Occurs when the value of the ForeColor property changes.

GiveFeedback
GiveFeedback

Occurs during a drag operation.

HelpRequested
HelpRequested

Occurs when the user requests help for a control.

ImeModeChanged
ImeModeChanged

Occurs when the value of the ImeMode property changes.

Layout
Layout

Occurs when a control should reposition its child controls.


Leave
Leave

Occurs when the input focus leaves the control.

LocationChanged
LocationChanged

Occurs when the value of the Location property changes.

MarginChanged
MarginChanged

Occurs when the value of the Margin property changes.

MouseCaptureChanged
MouseCaptureChanged

Occurs when the control loses or gains mouse capture.

MouseClick
MouseClick

Occurs when the control is clicked by the mouse.

MouseDoubleClick
MouseDoubleClick

Occurs when the control is double-clicked by the mouse.

MouseDown
MouseDown

Occurs when the mouse pointer is over the control and a mouse button is pressed.

MouseEnter
MouseEnter

Occurs when the mouse pointer enters the control.

MouseHover
MouseHover

Occurs when the mouse pointer rests on the control.


MouseLeave
MouseLeave

Occurs when the mouse pointer leaves the control.

MouseMove
MouseMove

Occurs when the mouse pointer is moved over the control.

MouseUp
MouseUp

Occurs when the mouse pointer is over the control and a mouse button is released.

Move
Move

Occurs when the control is moved.

PaddingChanged
PaddingChanged

Occurs when the control's Padding property changes.

Paint
Paint

Occurs when the control is redrawn.

ParentChanged
ParentChanged

Occurs when the control's Parent property changes.

QueryAccessibilityHelp
QueryAccessibilityHelp

Occurs when an AccessibleObject is providing Help to accessibility applications.

QueryContinueDrag
QueryContinueDrag

Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.
RegionChanged
RegionChanged

Occurs when the value of the Region property changes.

Resize
Resize

Occurs when the control is resized.

RightToLeftChanged
RightToLeftChanged

Occurs when the RightToLeftChanged property value changes.

Scroll
Scroll

Occurs when the user scrolls the Panel control.

SizeChanged
SizeChanged

Occurs when the Size property value changes.

StyleChanged
StyleChanged

Occurs when the control style changes.

SystemColorsChanged
SystemColorsChanged

Occurs when the system colors change.

TabIndexChanged
TabIndexChanged

Occurs when the TabIndex property value changes.

TabStopChanged
TabStopChanged

Occurs when the TabStop property value changes.


Validated
Validated

Occurs when the control is finished validating.

Validating
Validating

Occurs when the control is validating.

VisibleChanged
VisibleChanged

Occurs when the Visible property value changes.


[Link] [Link]
Changed
I n this Article
Occurs when the value of the AutoSize property changes.

public event EventHandler AutoSizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the AutoSize property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the BackColor property changes.

public event EventHandler BackColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BackColor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] PanelArray.
BackgroundImageChanged
I n this Article
Occurs when the value of the BackgroundImage property changes.

public event EventHandler BackgroundImageChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BackgroundImage property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] PanelArray.
BackgroundImageLayoutChanged
I n this Article
Occurs when the value of the BackgroundImageLayout property changes.

public event EventHandler BackgroundImageLayoutChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BackgroundImageLayout property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ContextChanged
I n this Article
Occurs when the value of the BindingContext property changes.

public event EventHandler BindingContextChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BindingContext property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets a value that determines whether a control is a member of a PanelArray.
public bool CanExtend (object target);
abstract member CanExtend : obj -> bool
override [Link] : obj -> bool

Parameters
target Object Object
A Panel control.
Returns
Boolean Boolean
true if target is a member of the control array; otherwise, false .

Remarks
The CanExtend method can be used to determine whether a specific Panel control is the base element of the control
array from which the other elements were cloned.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ValidationChanged
I n this Article
Occurs when the value of the CausesValidation property changes.

public event EventHandler CausesValidationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the CausesValidation property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the focus or keyboard user interface (UI) cues change.
public event [Link] ChangeUICues;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a Panel in a PanelArray is clicked.
public event EventHandler Click;
member [Link] : EventHandler

Remarks
The Click event passes an EventArgs to its event handler. Therefore it only indicates that a click has occurred. If you
need more specific mouse information (button, number of clicks, wheel rotation, or location), use the MouseClick event.
However, the MouseClick event will not be raised if the click is caused by action other than that of the mouse, such as
pressing the ENTER key.
A double-click is determined by the mouse settings of the user's operating system. The user can set the time between
clicks of a mouse button that should be considered a double-click instead of two clicks. The Click event is raised every
time that a control is double-clicked. For example, if you have event handlers for the Click and DoubleClick events of
a control, the Click and DoubleClick events are raised when the control is double-clicked and both methods are
called. If a control is double-clicked and that control does not support the DoubleClick event, the Click event might be
raised two times.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the ClientSize property changes.

public event EventHandler ClientSizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ClientSize property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
MenuChanged
I n this Article
Occurs when the value of the ContextMenu property changes.

[[Link](false)]
public event EventHandler ContextMenuChanged;
member [Link] : EventHandler

Attributes BrowsableAttribute

Remarks
This event is raised if the ContextMenu property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] PanelArray.
ContextMenuStripChanged
I n this Article
Occurs when the value of the ContextMenuStrip property changes.

public event EventHandler ContextMenuStripChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ContextMenuStrip property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a new control is added to the PanelArray.
public event [Link] ControlAdded;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a control is removed from the PanelArray.
public event [Link] ControlRemoved;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the value of the Cursor property changes.
public event EventHandler CursorChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Cursor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the value of the Dock property changes.
public event EventHandler DockChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Dock property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a Panel control in a PanelArray is double-clicked.
public event EventHandler DoubleClick;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a drag-and-drop operation is completed.
public event [Link] DragDrop;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged into the control's bounds.
public event [Link] DragEnter;
member [Link] : [Link]

Remarks
The DragEnter event is raised when the user first drags the mouse cursor over the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged out of the control's bounds.
public event EventHandler DragLeave;
member [Link] : EventHandler

Remarks
The DragLeave event is raised when the user drags the cursor out of the control or the user cancels the current drag-
and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged over the control's bounds.
public event [Link] DragOver;
member [Link] : [Link]

Remarks
The DragOver event is raised when the mouse cursor moves within the bounds of the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Enabled property changes.

public event EventHandler EnabledChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Enabled property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is entered.
public event EventHandler Enter;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), or by calling the Select or
SelectNextControl method, focus events occur in the following order:
Enter

GotFocus
Leave
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter

GotFocus
LostFocus
Leave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the value of the Font property changes.
public event EventHandler FontChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Font property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the ForeColor property changes.

public event EventHandler ForeColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ForeColor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ControlInstanceType
I n this Article
Overrides GetControlInstanceType().

protected override Type GetControlInstanceType ();


override [Link] : unit -> Type

Returns
Type Type
The type of a control in a control array.

Remarks
This method cannot be called from your application's code. Use the GetType method instead.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the index of a Panel in a PanelArray.
public short GetIndex ([Link] o);
member [Link] : [Link] -> int16

Parameters
o Panel Panel
A Panel in the control array.
Returns
Int16 Int16
A Short that represents the index of the specified Panel.

Remarks
This method can be used to retrieve the index for the specified Panel.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs during a drag operation.
public event [Link] GiveFeedback;
member [Link] : [Link]

Remarks
The GiveFeedback event is raised when a drag-and-drop operation is started. By using the GiveFeedback event, the
source of a drag event can modify the appearance of the mouse pointer in order to give the user visual feedback during
a drag-and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the user requests help for a control.
public event [Link] HelpRequested;
member [Link] : [Link]

Remarks
The HelpRequested event is typically raised when the user presses the F1 key or an associated context-sensitive Help
button is clicked.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ControlEvents
I n this Article
Overrides HookUpControlEvents(Object).

protected override void HookUpControlEvents (object o);


override [Link] : obj -> unit

Parameters
o Object Object
An Object.

Remarks
This method cannot be called from your application's code. Use AddHandler to hook up events for any controls that
are added by using the Load method.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the ImeMode property changes.

public event EventHandler ImeModeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ImeMode property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link][Int16] [Link][Int16]
I n this Article
Gets a specific element of a PanelArray by index. Read-only.
public [Link] this[short Index] { get; }
member [Link](int16) : [Link]

Parameters
Index Int16 Int16
A Short that specifies the position of an element of the control array.
Returns
Panel Panel
A Panel at the specified Index in the control array.

Remarks
The Item property is the default property for a control array. Therefore, the following lines of code are equivalent.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a control should reposition its child controls.
public event [Link] Layout;
member [Link] : [Link]

Remarks
The Layout event occurs when child controls are added or removed, when the bounds of the control changes, and
when other changes occur that can affect the layout of the control. The layout event can be suppressed by using the
SuspendLayout and ResumeLayout methods. Suspending layout enables you to perform multiple actions on a control
without having to perform a layout for each change. For example, if you resize and move a control, each operation
would raise a Layout event.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the input focus leaves the control.
public event EventHandler Leave;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), or by calling the Select or
SelectNextControl method, focus events occur in the following order:
Enter
GotFocus
Leave

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Location property changes.

public event EventHandler LocationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Location property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the value of the Margin property changes.
public event EventHandler MarginChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Margin property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
CaptureChanged
I n this Article
Occurs when the control loses or gains mouse capture.

public event EventHandler MouseCaptureChanged;


member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is clicked by the mouse.
public event [Link] MouseClick;
member [Link] : [Link]

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown
Click / MouseClick
MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate an MouseDoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a control. They are often raised by other actions, such as pressing the
ENTER key when the control has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Click
I n this Article
Occurs when the control is double-clicked by the mouse.

public event [Link] MouseDoubleClick;


member [Link] : [Link]

Remarks
Clicking a mouse button when the pointer is over a control typically raises the following series of events from the
control:
MouseDown
Click
MouseClick
MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate a DoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a control. They are often raised by other actions, such as pressing the
ENTER key when the control has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is pressed.
public event [Link] MouseDown;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer enters the control.
public event EventHandler MouseEnter;
member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter

MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer rests on the control.
public event EventHandler MouseHover;
member [Link] : EventHandler

Remarks
A typical use of MouseHover is to display a tool tip when the mouse pauses on a control within a specified area around
the control (the "hover rectangle"). The pause required for this event to be raised is specified in milliseconds by the
MouseHoverTime property.
The MouseHover event is defined and detected in connection with the MouseHoverSize and MouseHoverTime
properties.
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer leaves the control.
public event EventHandler MouseLeave;
member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is moved over the control.
public event [Link] MouseMove;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove

MouseHover / MouseDown / MouseWheel


MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is released.
public event [Link] MouseUp;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp

MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is moved.
public event EventHandler Move;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control's Padding property changes.

public event EventHandler PaddingChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Padding property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is redrawn.
public event [Link] Paint;
member [Link] : [Link]

Remarks
The Paint event handler is typically used to perform custom drawing when a control is redrawn.

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
PanelArray PanelArray
I n this Article

Overloads
PanelArray()
Initializes a new instance of the PanelArray class.

PanelArray(IContainer) PanelArray(IContainer)
Initializes a new instance of the PanelArray class, specifying its
container.

PanelArray()
Initializes a new instance of the PanelArray class.
public PanelArray ();

Remarks
When you instantiate a PanelArray, you must also call the SetIndex method to create the initial element in the array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

PanelArray(IContainer) PanelArray(IContainer)
Initializes a new instance of the PanelArray class, specifying its container.
public PanelArray ([Link] Container);
new [Link] : [Link] ->
[Link]

Parameters
Container IContainer IContainer
The IContainer where the control array will be hosted.
Remarks
When you instantiate a PanelArray, you must also call the SetIndex method to create the initial element in the array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control's Parent property changes.
public event EventHandler ParentChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Parent property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
AccessibilityHelp
I n this Article
Occurs when an AccessibleObject is providing Help to accessibility applications.

public event [Link] QueryAccessibilityHelp;


member [Link] : [Link]

Remarks
You should use the HelpProvider class to enable users to invoke Help on your accessible object by pressing the F1 key.
The HelpProvider gives you complete information in the QueryAccessibilityHelpEventArgs.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ContinueDrag
I n this Article
Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.
public event [Link] QueryContinueDrag;
member [Link] : [Link]

Remarks
The QueryContinueDrag event is raised when there is a change in the keyboard or mouse button state during a drag-
and-drop operation. The QueryContinueDrag event enables the drag source to determine whether the drag-and-drop
operation should be canceled.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the value of the Region property changes.
public event EventHandler RegionChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Region property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
The ResetIndex method is not supported in the PanelArray class.

public void ResetIndex ([Link] o);


member [Link] : [Link] -> unit

Parameters
o Panel Panel
A Control.

Remarks
This method is not supported, and calling it does not raise an exception.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is resized.
public event EventHandler Resize;
member [Link] : EventHandler

Remarks
To determine the Size of the resized control, you can cast the sender parameter of the EventArgs data to a Control and
get its Size property (or Height and Width properties individually).
To handle custom layouts, use the Layout event instead of the Resize event. The Layout event is raised in response to
a Resize event, but also in response to other changes that affect the layout of the control.

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the RightToLeftChanged property value changes.

public event EventHandler RightToLeftChanged;


member [Link] : EventHandler

Remarks
This event is raised if the RightToLeft property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the user scrolls the Panel control.
public event [Link] Scroll;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Sets the index of the initial Panel in a PanelArray.
public void SetIndex ([Link] o, short Index);
member [Link] : [Link] * int16 -> unit

Parameters
o Panel Panel
A Panel in the control array.
Index Int16 Int16
A Short that represents the index of the specified Panel.

Remarks
The SetIndex method should be called only when you are creating the initial element in the control array. To add
subsequent elements, call the Load method and specify the Index .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
SerializeIndex
I n this Article
Returns a value that indicates whether a Panel is a member of this PanelArray.

public bool ShouldSerializeIndex ([Link] o);


member [Link] : [Link] -> bool

Parameters
o Panel Panel
A Panel in the control array.
Returns
Boolean Boolean
true if o is a member of this control array; otherwise, false .

Remarks
If the specified Panel is a member of a different PanelArray, ShouldSerializeIndex returns false .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the Size property value changes.
public event EventHandler SizeChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Size property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control style changes.
public event EventHandler StyleChanged;
member [Link] : EventHandler

Remarks
The StyleChanged event occurs when ControlStyles flags have been added or changed.

This event is raised if the control style is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ColorsChanged
I n this Article
Occurs when the system colors change.

public event EventHandler SystemColorsChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SystemColors is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the TabIndex property value changes.

public event EventHandler TabIndexChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabIndex property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the TabStop property value changes.

public event EventHandler TabStopChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabStop property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is finished validating.
public event EventHandler Validated;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated

If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is validating.
public event [Link] Validating;
member [Link] : [Link]

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated
If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the Visible property value changes.
public event EventHandler VisibleChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Visible property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
PictureBoxArray PictureBoxArray Class
Provides a control array of PictureBox controls.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class PictureBoxArray : [Link],
[Link]
type PictureBoxArray = class
inherit BaseControlArray
interface IExtenderProvider

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component
BaseControlArray BaseControlArray

Remarks
The PictureBoxArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0 PictureBox
array. It does not provide the design-time features of a Visual Basic 6.0 control array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
PictureBoxArray()
PictureBoxArray()

Initializes a new instance of the PictureBoxArray class.

PictureBoxArray(IContainer)
PictureBoxArray(IContainer)

Initializes a new instance of the PictureBoxArray class, specifying its container.

Properties
Item[Int16]
Item[Int16]

Gets a specific element of a PictureBoxArray by index. Read-only.


Methods
CanExtend(Object)
CanExtend(Object)

Gets a value that determines whether a control is a member of a PictureBoxArray.

GetControlInstanceType()
GetControlInstanceType()

Overrides GetControlInstanceType().

GetIndex(PictureBox)
GetIndex(PictureBox)

Gets the index of a PictureBox in a PictureBoxArray.

HookUpControlEvents(Object)
HookUpControlEvents(Object)

Overrides HookUpControlEvents(Object).

ResetIndex(PictureBox)
ResetIndex(PictureBox)

The ResetIndex method is not supported in the PictureBoxArray class.

SetIndex(PictureBox, Int16)
SetIndex(PictureBox, Int16)

Sets the index of the initial PictureBox in a PictureBoxArray.

ShouldSerializeIndex(PictureBox)
ShouldSerializeIndex(PictureBox)

Returns a value that indicates whether a PictureBox is a member of this PictureBoxArray.

Events
BackColorChanged
BackColorChanged

Occurs when the value of the BackColor property changes.

BackgroundImageChanged
BackgroundImageChanged

Occurs when the value of the BackgroundImage property changes.

BackgroundImageLayoutChanged
BackgroundImageLayoutChanged

Occurs when the value of the BackgroundImageLayout property changes.

BindingContextChanged
BindingContextChanged

Occurs when the value of the BindingContext property changes.

ChangeUICues
ChangeUICues

Occurs when the focus or keyboard user interface (UI) cues change.

Click
Click

Occurs when a PictureBox in a PictureBoxArray is clicked.

ClientSizeChanged
ClientSizeChanged

Occurs when the value of the ClientSize property changes.

ContextMenuChanged
ContextMenuChanged

Occurs when the value of the ContextMenu property changes.

ContextMenuStripChanged
ContextMenuStripChanged

Occurs when the value of the ContextMenuStrip property changes.

ControlAdded
ControlAdded

Occurs when a new control is added to the PictureBoxArray.


ControlRemoved
ControlRemoved

Occurs when a control is removed from the PictureBoxArray.

CursorChanged
CursorChanged

Occurs when the value of the Cursor property changes.

DockChanged
DockChanged

Occurs when the value of the Dock property changes.

DoubleClick
DoubleClick

Occurs when a PictureBox control in a PictureBoxArray is double-clicked.

DragDrop
DragDrop

Occurs when a drag-and-drop operation is completed.

DragEnter
DragEnter

Occurs when an object is dragged into the control's bounds.

DragLeave
DragLeave

Occurs when an object is dragged out of the control's bounds.

DragOver
DragOver

Occurs when an object is dragged over the control's bounds.

EnabledChanged
EnabledChanged

Occurs when the value of the Enabled property changes.


GiveFeedback
GiveFeedback

Occurs during a drag operation.

HelpRequested
HelpRequested

Occurs when the user requests help for a control.

Layout
Layout

Occurs when a control should reposition its child controls.

LoadCompleted
LoadCompleted

Occurs when the asynchronous image-load operation is completed, been canceled, or raised an exception.

LoadProgressChanged
LoadProgressChanged

Occurs when the progress of an asynchronous image-loading operation has changed.

LocationChanged
LocationChanged

Occurs when the value of the Location property changes.

MarginChanged
MarginChanged

Occurs when the value of the Margin property changes.

MouseCaptureChanged
MouseCaptureChanged

Occurs when the control loses or gains mouse capture.

MouseClick
MouseClick

Occurs when the control is clicked by the mouse.


MouseDoubleClick
MouseDoubleClick

Occurs when the control is double-clicked by the mouse.

MouseDown
MouseDown

Occurs when the mouse pointer is over the control and a mouse button is pressed.

MouseEnter
MouseEnter

Occurs when the mouse pointer enters the control.

MouseHover
MouseHover

Occurs when the mouse pointer rests on the control.

MouseLeave
MouseLeave

Occurs when the mouse pointer leaves the control.

MouseMove
MouseMove

Occurs when the mouse pointer is moved over the control.

MouseUp
MouseUp

Occurs when the mouse pointer is over the control and a mouse button is released.

Move
Move

Occurs when the control is moved.

PaddingChanged
PaddingChanged

Occurs when the control's Padding property changes.


Paint
Paint

Occurs when the control is redrawn.

ParentChanged
ParentChanged

Occurs when the control's Parent property changes.

QueryAccessibilityHelp
QueryAccessibilityHelp

Occurs when an AccessibleObject is providing Help to accessibility applications.

QueryContinueDrag
QueryContinueDrag

Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.

RegionChanged
RegionChanged

Occurs when the value of the Region property changes.

Resize
Resize

Occurs when the control is resized.

SizeChanged
SizeChanged

Occurs when the Size property value changes.

SizeModeChanged
SizeModeChanged

Occurs when the SizeMode property value changes.

StyleChanged
StyleChanged

Occurs when the control style changes.


SystemColorsChanged
SystemColorsChanged

Occurs when the system colors change.

Validated
Validated

Occurs when the control is finished validating.

Validating
Validating

Occurs when the control is validating.

VisibleChanged
VisibleChanged

Occurs when the Visible property value changes.


[Link] [Link]
ColorChanged
I n this Article
Occurs when the value of the BackColor property changes.

public event EventHandler BackColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BackColor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] PictureBox
[Link]
I n this Article
Occurs when the value of the BackgroundImage property changes.

public event EventHandler BackgroundImageChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BackgroundImage property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link]
[Link]
I n this Article
Occurs when the value of the BackgroundImageLayout property changes.

public event EventHandler BackgroundImageLayoutChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BackgroundImageLayout property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] PictureBox
[Link]
I n this Article
Occurs when the value of the BindingContext property changes.

public event EventHandler BindingContextChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BindingContext property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets a value that determines whether a control is a member of a PictureBoxArray.
public bool CanExtend (object target);
abstract member CanExtend : obj -> bool
override [Link] : obj -> bool

Parameters
target Object Object
A PictureBox control.
Returns
Boolean Boolean
true if target is a member of the control array; otherwise false .

Remarks
The CanExtend method can be used to determine whether a specific PictureBox control is the base element of the
control array from which the other elements were cloned.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
UICues
I n this Article
Occurs when the focus or keyboard user interface (UI) cues change.

public event [Link] ChangeUICues;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a PictureBox in a PictureBoxArray is clicked.
public event EventHandler Click;
member [Link] : EventHandler

Remarks
The Click event passes an EventArgs to its event handler. Therefore it only indicates that a click has occurred. If you
need more specific mouse information (button, number of clicks, wheel rotation, or location), use the MouseClick event.
However, the MouseClick event will not be raised if the click is caused by action other than that of the mouse, such as
pressing the ENTER key.
A double-click is determined by the mouse settings of the user's operating system. The user can set the time between
clicks of a mouse button that should be considered a double-click instead of two clicks. The Click event is raised every
time that a control is double-clicked. For example, if you have event handlers for the Click and DoubleClick events of
a control, the Click and DoubleClick events are raised when the control is double-clicked and both methods are
called. If a control is double-clicked and that control does not support the DoubleClick event, the Click event might be
raised two times.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] PictureBoxArray.
ClientSizeChanged
I n this Article
Occurs when the value of the ClientSize property changes.

public event EventHandler ClientSizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ClientSize property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] PictureBoxArray.
ContextMenuChanged
I n this Article
Occurs when the value of the ContextMenu property changes.

[[Link](false)]
public event EventHandler ContextMenuChanged;
member [Link] : EventHandler

Attributes BrowsableAttribute

Remarks
This event is raised if the ContextMenu property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] PictureBox
[Link]
I n this Article
Occurs when the value of the ContextMenuStrip property changes.

public event EventHandler ContextMenuStripChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ContextMenuStrip property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Added
I n this Article
Occurs when a new control is added to the PictureBoxArray.

public event [Link] ControlAdded;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] PictureBoxArray.
ControlRemoved
I n this Article
Occurs when a control is removed from the PictureBoxArray.

public event [Link] ControlRemoved;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Cursor property changes.

public event EventHandler CursorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Cursor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Dock property changes.

public event EventHandler DockChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Dock property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a PictureBox control in a PictureBoxArray is double-clicked.
public event EventHandler DoubleClick;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a drag-and-drop operation is completed.
public event [Link] DragDrop;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged into the control's bounds.
public event [Link] DragEnter;
member [Link] : [Link]

Remarks
The DragEnter event is raised when the user first drags the mouse cursor over the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged out of the control's bounds.
public event EventHandler DragLeave;
member [Link] : EventHandler

Remarks
The DragLeave event is raised when the user drags the cursor out of the control or the user cancels the current drag-
and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged over the control's bounds.
public event [Link] DragOver;
member [Link] : [Link]

Remarks
The DragOver event is raised when the mouse cursor moves within the bounds of the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] PictureBoxArray.
EnabledChanged
I n this Article
Occurs when the value of the Enabled property changes.

public event EventHandler EnabledChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Enabled property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] PictureBoxArray.
GetControlInstanceType
I n this Article
Overrides GetControlInstanceType().

protected override Type GetControlInstanceType ();


override [Link] : unit -> Type

Returns
Type Type
The PictureBoxArray class is the base class for all control arrays that are used in applications upgraded from Visual
Basic 6.0. Because this class is not typically used to create an instance of the class, this Protected method is usually
not called directly but is instead called by a derived class.

Remarks
This method cannot be called from your application's code. Use the GetType method instead.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the index of a PictureBox in a PictureBoxArray.
public short GetIndex ([Link] o);
member [Link] : [Link] -> int16

Parameters
o PictureBox PictureBox
A PictureBox in the control array.
Returns
Int16 Int16
A Short that represents the index of the specified PictureBox.

Remarks
This method can be used to retrieve the index for the specified PictureBox.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Feedback
I n this Article
Occurs during a drag operation.

public event [Link] GiveFeedback;


member [Link] : [Link]

Remarks
The GiveFeedback event is raised when a drag-and-drop operation is started. By using the GiveFeedback event, the
source of a drag event can modify the appearance of the mouse pointer in order to give the user visual feedback during
a drag-and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Requested
I n this Article
Occurs when the user requests help for a control.

public event [Link] HelpRequested;


member [Link] : [Link]

Remarks
The HelpRequested event is typically raised when the user presses the F1 key or an associated context-sensitive Help
button is clicked.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] PictureBoxArray.
HookUpControlEvents
I n this Article
Overrides HookUpControlEvents(Object).

protected override void HookUpControlEvents (object o);


override [Link] : obj -> unit

Parameters
o Object Object
An Object.

Remarks
This method cannot be called from your application's code. Use AddHandler to hook up events for any controls that
are added by using the Load method.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link][Int16] [Link][Int16]
I n this Article
Gets a specific element of a PictureBoxArray by index. Read-only.
public [Link] this[short Index] { get; }
member [Link](int16) : [Link]

Parameters
Index Int16 Int16
A Short that specifies the position of an element of the control array.
Returns
PictureBox PictureBox
A PictureBox at the specified Index in the control array.

Remarks
The Item property is the default property for a control array. Therefore, the following lines of code are equivalent.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a control should reposition its child controls.
public event [Link] Layout;
member [Link] : [Link]

Remarks
The Layout event occurs when child controls are added or removed, when the bounds of the control changes, and
when other changes occur that can affect the layout of the control. The layout event can be suppressed by using the
SuspendLayout and ResumeLayout methods. Suspending layout enables you to perform multiple actions on a control
without having to perform a layout for each change. For example, if you resize and move a control, each operation
would raise a Layout event.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Completed
I n this Article
Occurs when the asynchronous image-load operation is completed, been canceled, or raised an exception.

public event [Link] LoadCompleted;


member [Link] : [Link]

Remarks
The LoadCompleted event occurs only when the image is loaded asynchronously by using one of the LoadAsync
methods, and WaitOnLoad is false. If the image-load is canceled by calling the CancelAsync method the Cancelled
property of the AsyncCompletedEventArgs will be set to true. If an exception or error occurs during the load process, it
will be caught and the Error property of the AsyncCompletedEventArgs will contain the exception information.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] PictureBoxArray.
LoadProgressChanged
I n this Article
Occurs when the progress of an asynchronous image-loading operation has changed.

public event [Link] LoadProgressChanged;


member [Link] : [Link]

Remarks
The LoadProgressChanged event occurs only when the image is loaded asynchronously by using one of the
LoadAsync methods. The progress percentage of the image load is reported with the ProgressPercentage property of
the ProgressChangedEventArgs.
Handle the LoadProgressChanged event if you want to reflect the progress of an asynchronous image-loading
operation in a ProgressBar or similar control. Use the ProgressPercentage property of the ProgressChangedEventArgs
to update the progress value.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] PictureBoxArray.
LocationChanged
I n this Article
Occurs when the value of the Location property changes.

public event EventHandler LocationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Location property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Margin property changes.

public event EventHandler MarginChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Margin property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] PictureBoxArray.
MouseCaptureChanged
I n this Article
Occurs when the control loses or gains mouse capture.

public event EventHandler MouseCaptureChanged;


member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is clicked by the mouse.
public event [Link] MouseClick;
member [Link] : [Link]

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown
Click / MouseClick
MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate an MouseDoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a control. They are often raised by other actions, such as pressing the
ENTER key when the control has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] PictureBoxArray.
MouseDoubleClick
I n this Article
Occurs when the control is double-clicked by the mouse.

public event [Link] MouseDoubleClick;


member [Link] : [Link]

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown
Click
MouseClick
MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate a DoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a shape. They are often raised by other actions, such as pressing the
ENTER key when the shape has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Down
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is pressed.

public event [Link] MouseDown;


member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel

MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer enters the control.
public event EventHandler MouseEnter;
member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter

MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Hover
I n this Article
Occurs when the mouse pointer rests on the control.

public event EventHandler MouseHover;


member [Link] : EventHandler

Remarks
A typical use of MouseHover is to display a tool tip when the mouse pauses on a control within a specified area around
the control (the "hover rectangle"). The pause required for this event to be raised is specified in milliseconds by the
MouseHoverTime property.
The MouseHover event is defined and detected in connection with the MouseHoverSize and MouseHoverTime
properties.
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Leave
I n this Article
Occurs when the mouse pointer leaves the control.

public event EventHandler MouseLeave;


member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Move
I n this Article
Occurs when the mouse pointer is moved over the control.

public event [Link] MouseMove;


member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove

MouseHover / MouseDown / MouseWheel


MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is released.
public event [Link] MouseUp;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp

MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is moved.
public event EventHandler Move;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] PictureBoxArray.
PaddingChanged
I n this Article
Occurs when the control's Padding property changes.

public event EventHandler PaddingChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Padding property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is redrawn.
public event [Link] Paint;
member [Link] : [Link]

Remarks
The Paint event handler is typically used to perform custom drawing when a control is redrawn.

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control's Parent property changes.

public event EventHandler ParentChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Parent property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
PictureBoxArray PictureBoxArray
I n this Article

Overloads
PictureBoxArray()
Initializes a new instance of the PictureBoxArray class.

PictureBoxArray(IContainer) PictureBoxArray(IContainer)
Initializes a new instance of the PictureBoxArray class,
specifying its container.

PictureBoxArray()
Initializes a new instance of the PictureBoxArray class.
public PictureBoxArray ();

Remarks
When you instantiate a PictureBoxArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

PictureBoxArray(IContainer) PictureBoxArray(IContainer)
Initializes a new instance of the PictureBoxArray class, specifying its container.

public PictureBoxArray ([Link] Container);


new [Link] : [Link] ->
[Link]

Parameters
Container IContainer IContainer
The IContainer where the control array will be hosted.
Remarks
When you instantiate a PictureBoxArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] PictureBoxArray.
QueryAccessibilityHelp
I n this Article
Occurs when an AccessibleObject is providing Help to accessibility applications.

public event [Link] QueryAccessibilityHelp;


member [Link] : [Link]

Remarks
You should use the HelpProvider class to enable users to invoke Help on your accessible object by pressing the F1 key.
The HelpProvider gives you complete information in the QueryAccessibilityHelpEventArgs.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] PictureBoxArray.
QueryContinueDrag
I n this Article
Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.
public event [Link] QueryContinueDrag;
member [Link] : [Link]

Remarks
The QueryContinueDrag event is raised when there is a change in the keyboard or mouse button state during a drag-
and-drop operation. The QueryContinueDrag event enables the drag source to determine whether the drag-and-drop
operation should be canceled.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Region property changes.

public event EventHandler RegionChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Region property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
The ResetIndex method is not supported in the PictureBoxArray class.

public void ResetIndex ([Link] o);


member [Link] : [Link] -> unit

Parameters
o PictureBox PictureBox
A Control.

Remarks
This method is not supported, and calling it does not raise an exception.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is resized.
public event EventHandler Resize;
member [Link] : EventHandler

Remarks
To determine the Size of the resized control, you can cast the sender parameter of the EventArgs data to a Control and
get its Size property (or Height and Width properties individually).
To handle custom layouts, use the Layout event instead of the Resize event. The Layout event is raised in response to
a Resize event, but also in response to other changes that affect the layout of the control.

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Sets the index of the initial PictureBox in a PictureBoxArray.
public void SetIndex ([Link] o, short Index);
member [Link] : [Link] * int16 -> unit

Parameters
o PictureBox PictureBox
A PictureBox in the control array.
Index Int16 Int16
A Short that represents the index of the specified PictureBox.

Remarks
The SetIndex method should only be called when you are creating the initial element in the control array. To add
subsequent elements, call the Load method and specify the Index .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] PictureBoxArray.
ShouldSerializeIndex
I n this Article
Returns a value that indicates whether a PictureBox is a member of this PictureBoxArray.

public bool ShouldSerializeIndex ([Link] o);


member [Link] : [Link] -> bool

Parameters
o PictureBox PictureBox
A PictureBox in the control array.
Returns
Boolean Boolean
true if o is a member of this control array; otherwise, false .

Remarks
If the specified PictureBox is a member of a different PictureBoxArray, ShouldSerializeIndex returns false .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Size property value changes.

public event EventHandler SizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Size property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ModeChanged
I n this Article
Occurs when the SizeMode property value changes.

public event EventHandler SizeModeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SizeMode property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control style changes.

public event EventHandler StyleChanged;


member [Link] : EventHandler

Remarks
The StyleChanged event occurs when ControlStyles flags have been added or changed.
This event is raised if the control style is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] PictureBoxArray.
SystemColorsChanged
I n this Article
Occurs when the system colors change.

public event EventHandler SystemColorsChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SystemColors is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is finished validating.
public event EventHandler Validated;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated

If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is validating.
public event [Link] Validating;
member [Link] : [Link]

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating

Validated
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating

Validated
If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Visible property value changes.

public event EventHandler VisibleChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Visible property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
PrintDialogArray PrintDialogArray Class
Provides a control array of PrintDialog controls.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class PrintDialogArray : [Link],
[Link]
type PrintDialogArray = class
inherit BaseControlArray
interface IExtenderProvider

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component
BaseControlArray BaseControlArray

Remarks
The PrintDialogArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0 PrintDialog
array. It does not provide the design-time features of a Visual Basic 6.0 control array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
PrintDialogArray()
PrintDialogArray()

Initializes a new instance of the PrintDialogArray class.

PrintDialogArray(IContainer)
PrintDialogArray(IContainer)

Initializes a new instance of the PrintDialogArray class, specifying its container.

Properties
Item[Int16]
Item[Int16]

Gets a specific element of a PrintDialogArray by index. Read-only.


Methods
CanExtend(Object)
CanExtend(Object)

Gets a value that determines whether a control is a member of a PrintDialogArray.

GetControlInstanceType()
GetControlInstanceType()

Overrides GetControlInstanceType().

GetIndex(PrintDialog)
GetIndex(PrintDialog)

Gets the index of a PrintDialog in a PrintDialogArray.

HookUpControlEvents(Object)
HookUpControlEvents(Object)

Overrides HookUpControlEvents(Object).

ResetIndex(PrintDialog)
ResetIndex(PrintDialog)

The ResetIndex method is not supported in the PrintDialogArray class.

SetIndex(PrintDialog, Int16)
SetIndex(PrintDialog, Int16)

Sets the index of the initial PrintDialog in a PrintDialogArray.

ShouldSerializeIndex(PrintDialog)
ShouldSerializeIndex(PrintDialog)

Returns a value that indicates whether a PrintDialog is a member of this PrintDialogArray.

Events
HelpRequest
HelpRequest

Occurs when the user requests help for a control.


[Link] [Link]
I n this Article
Gets a value that determines whether a control is a member of a PrintDialogArray.
public bool CanExtend (object target);
abstract member CanExtend : obj -> bool
override [Link] : obj -> bool

Parameters
target Object Object
A PrintDialog control.
Returns
Boolean Boolean
true if target is a member of the control array; otherwise false .

Remarks
The CanExtend method can be used to determine whether a specific PrintDialog control is the base element of the
control array from which the other elements were cloned.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] PrintDialog
[Link]
I n this Article
Overrides GetControlInstanceType().

protected override Type GetControlInstanceType ();


override [Link] : unit -> Type

Returns
Type Type
The type of a control in a control array.

Remarks
This method cannot be called from your application's code. Use the GetType method instead.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the index of a PrintDialog in a PrintDialogArray.
public short GetIndex ([Link] o);
member [Link] : [Link] -> int16

Parameters
o PrintDialog PrintDialog
A PrintDialog in the control array.
Returns
Int16 Int16
A Short that represents the index of the specified PrintDialog.

Remarks
This method can be used to retrieve the index for the specified PrintDialog.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Request
I n this Article
Occurs when the user requests help for a control.

public event EventHandler HelpRequest;


member [Link] : EventHandler

Remarks
The HelpRequested event is typically raised when the user presses the F1 key or an associated context-sensitive Help
button is clicked.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] PrintDialogArray.
HookUpControlEvents
I n this Article
Overrides HookUpControlEvents(Object).

protected override void HookUpControlEvents (object o);


override [Link] : obj -> unit

Parameters
o Object Object
An Object.

Remarks
This method cannot be called from your application's code. Use AddHandler to hook up events for any controls that
are added by using the Load method.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link][Int16] [Link][Int16]
I n this Article
Gets a specific element of a PrintDialogArray by index. Read-only.
public [Link] this[short Index] { get; }
member [Link](int16) : [Link]

Parameters
Index Int16 Int16
A Short that specifies the position of an element of the control array.
Returns
PrintDialog PrintDialog
A PrintDialog at the specified Index in the control array.

Remarks
The Item property is the default property for a control array. Therefore, the following lines of code are equivalent.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
PrintDialogArray PrintDialogArray
I n this Article

Overloads
PrintDialogArray()
Initializes a new instance of the PrintDialogArray class.

PrintDialogArray(IContainer) PrintDialogArray(IContainer)
Initializes a new instance of the PrintDialogArray class,
specifying its container.

PrintDialogArray()
Initializes a new instance of the PrintDialogArray class.
public PrintDialogArray ();

Remarks
When you instantiate a PrintDialogArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

PrintDialogArray(IContainer) PrintDialogArray(IContainer)
Initializes a new instance of the PrintDialogArray class, specifying its container.

public PrintDialogArray ([Link] Container);


new [Link] : [Link] ->
[Link]

Parameters
Container IContainer IContainer
The IContainer where the control array will be hosted.
Remarks
When you instantiate a PrintDialogArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
The ResetIndex method is not supported in the PrintDialogArray class.

public void ResetIndex ([Link] o);


member [Link] : [Link] -> unit

Parameters
o PrintDialog PrintDialog
A Control.

Remarks
This method is not supported, and calling it does not raise an exception.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Sets the index of the initial PrintDialog in a PrintDialogArray.
public void SetIndex ([Link] o, short Index);
member [Link] : [Link] * int16 -> unit

Parameters
o PrintDialog PrintDialog
A PrintDialog in the control array.
Index Int16 Int16
A Short that represents the index of the specified PrintDialog.

Remarks
The SetIndex method should only be called when you are creating the initial element in the control array. To add
subsequent elements, call the Load method and specify the Index .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] PrintDialogArray.
ShouldSerializeIndex
I n this Article
Returns a value that indicates whether a PrintDialog is a member of this PrintDialogArray.

public bool ShouldSerializeIndex ([Link] o);


member [Link] : [Link] -> bool

Parameters
o PrintDialog PrintDialog
A PrintDialog in the control array.
Returns
Boolean Boolean
true if o is a member of this control array; otherwise, false .

Remarks
If the specified PrintDialog is a member of a different PrintDialogArray, ShouldSerializeIndex returns false .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
ProgressBarArray ProgressBarArray Class
Provides a control array of ProgressBar controls.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class ProgressBarArray : [Link],
[Link]
type ProgressBarArray = class
inherit BaseControlArray
interface IExtenderProvider

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component
BaseControlArray BaseControlArray

Remarks
The ProgressBarArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0 ProgressBar
array. It does not provide the design-time features of a Visual Basic 6.0 control array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
ProgressBarArray()
ProgressBarArray()

Initializes a new instance of the ProgressBarArray class.

ProgressBarArray(IContainer)
ProgressBarArray(IContainer)

Initializes a new instance of the ProgressBarArray class, specifying its container.

Properties
Item[Int16]
Item[Int16]

Gets a specific element of a ProgressBarArray by index. Read-only.


Methods
CanExtend(Object)
CanExtend(Object)

Gets a value that determines whether a control is a member of a ProgressBarArray.

GetControlInstanceType()
GetControlInstanceType()

Overrides GetControlInstanceType().

GetIndex(ProgressBar)
GetIndex(ProgressBar)

Gets the index of a ProgressBar in a ProgressBarArray.

HookUpControlEvents(Object)
HookUpControlEvents(Object)

Overrides HookUpControlEvents(Object).

ResetIndex(ProgressBar)
ResetIndex(ProgressBar)

The ResetIndex method is not supported in the ProgressBarArray class.

SetIndex(ProgressBar, Int16)
SetIndex(ProgressBar, Int16)

Sets the index of the initial ProgressBar in a ProgressBarArray.

ShouldSerializeIndex(ProgressBar)
ShouldSerializeIndex(ProgressBar)

Returns a value that indicates whether a ProgressBar is a member of this ProgressBarArray.

Events
BackColorChanged
BackColorChanged

Occurs when the value of the BackColor property changes.

BindingContextChanged
BindingContextChanged

Occurs when the value of the BindingContext property changes.

ChangeUICues
ChangeUICues

Occurs when the focus or keyboard user interface (UI) cues change.

Click
Click

Occurs when a ProgressBar in a ProgressBarArray is clicked.

ClientSizeChanged
ClientSizeChanged

Occurs when the value of the ClientSize property changes.

ContextMenuChanged
ContextMenuChanged

Occurs when the value of the ContextMenu property changes.

ContextMenuStripChanged
ContextMenuStripChanged

Occurs when the value of the ContextMenuStrip property changes.

ControlAdded
ControlAdded

Occurs when a new control is added to the ProgressBarArray.

ControlRemoved
ControlRemoved

Occurs when a control is removed from the ProgressBarArray.

CursorChanged
CursorChanged

Occurs when the value of the Cursor property changes.


DockChanged
DockChanged

Occurs when the value of the Dock property changes.

DragDrop
DragDrop

Occurs when a drag-and-drop operation is completed.

DragEnter
DragEnter

Occurs when an object is dragged into the control's bounds.

DragLeave
DragLeave

Occurs when an object is dragged out of the control's bounds.

DragOver
DragOver

Occurs when an object is dragged over the control's bounds.

EnabledChanged
EnabledChanged

Occurs when the value of the Enabled property changes.

ForeColorChanged
ForeColorChanged

Occurs when the value of the ForeColor property changes.

GiveFeedback
GiveFeedback

Occurs during a drag operation.

HelpRequested
HelpRequested

Occurs when the user requests help for a control.


Layout
Layout

Occurs when a control should reposition its child controls.

LocationChanged
LocationChanged

Occurs when the value of the Location property changes.

MarginChanged
MarginChanged

Occurs when the value of the Margin property changes.

MouseCaptureChanged
MouseCaptureChanged

Occurs when the control loses or gains mouse capture.

MouseClick
MouseClick

Occurs when the control is clicked by the mouse.

MouseDown
MouseDown

Occurs when the mouse pointer is over the control and a mouse button is pressed.

MouseEnter
MouseEnter

Occurs when the mouse pointer enters the control.

MouseHover
MouseHover

Occurs when the mouse pointer rests on the control.

MouseLeave
MouseLeave

Occurs when the mouse pointer leaves the control.


MouseMove
MouseMove

Occurs when the mouse pointer is moved over the control.

MouseUp
MouseUp

Occurs when the mouse pointer is over the control and a mouse button is released.

Move
Move

Occurs when the control is moved.

PaddingChanged
PaddingChanged

Occurs when the control's Padding property changes.

ParentChanged
ParentChanged

Occurs when the control's Parent property changes.

QueryAccessibilityHelp
QueryAccessibilityHelp

Occurs when an AccessibleObject is providing Help to accessibility applications.

QueryContinueDrag
QueryContinueDrag

Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.

RegionChanged
RegionChanged

Occurs when the value of the Region property changes.

Resize
Resize

Occurs when the control is resized.


RightToLeftChanged
RightToLeftChanged

Occurs when the RightToLeftChanged property value changes.

RightToLeftLayoutChanged
RightToLeftLayoutChanged

Occurs when the RightToLeftLayout property changes.

SizeChanged
SizeChanged

Occurs when the Size property value changes.

StyleChanged
StyleChanged

Occurs when the control style changes.

SystemColorsChanged
SystemColorsChanged

Occurs when the system colors change.

TabIndexChanged
TabIndexChanged

Occurs when the TabIndex property value changes.

Validated
Validated

Occurs when the control is finished validating.

Validating
Validating

Occurs when the control is validating.

VisibleChanged
VisibleChanged

Occurs when the Visible property value changes.


[Link] ProgressBarArray.
BackColorChanged
I n this Article
Occurs when the value of the BackColor property changes.

public event EventHandler BackColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BackColor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ProgressBar
[Link]
I n this Article
Occurs when the value of the BindingContext property changes.

public event EventHandler BindingContextChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BindingContext property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Extend
I n this Article
Gets a value that determines whether a control is a member of a ProgressBarArray.

public bool CanExtend (object target);


abstract member CanExtend : obj -> bool
override [Link] : obj -> bool

Parameters
target Object Object
A ProgressBar control.
Returns
Boolean Boolean
true if target is a member of the control array; otherwise, false .

Remarks
The CanExtend method can be used to determine whether a specific ProgressBar control is the base element of the
control array from which the other elements were cloned.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ProgressBarArray.
ChangeUICues
I n this Article
Occurs when the focus or keyboard user interface (UI) cues change.

public event [Link] ChangeUICues;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a ProgressBar in a ProgressBarArray is clicked.
public event EventHandler Click;
member [Link] : EventHandler

Remarks
The Click event passes an EventArgs to its event handler. Therefore it only indicates that a click has occurred. If you
need more specific mouse information (button, number of clicks, wheel rotation, or location), use the MouseClick event.
However, the MouseClick event will not be raised if the click is caused by action other than that of the mouse, such as
pressing the ENTER key.
A double-click is determined by the mouse settings of the user's operating system. The user can set the time between
clicks of a mouse button that should be considered a double-click instead of two clicks. The Click event is raised every
time that a control is double-clicked. For example, if you have event handlers for the Click and DoubleClick events of
a control, the Click and DoubleClick events are raised when the control is double-clicked and both methods are
called. If a control is double-clicked and that control does not support the DoubleClick event, the Click event might be
raised two times.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ProgressBarArray.
ClientSizeChanged
I n this Article
Occurs when the value of the ClientSize property changes.

public event EventHandler ClientSizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ClientSize property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ProgressBar
[Link]
I n this Article
Occurs when the value of the ContextMenu property changes.

[[Link](false)]
public event EventHandler ContextMenuChanged;
member [Link] : EventHandler

Attributes BrowsableAttribute

Remarks
This event is raised if the ContextMenu property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] Progress
[Link]
I n this Article
Occurs when the value of the ContextMenuStrip property changes.

public event EventHandler ContextMenuStripChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ContextMenuStrip property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ProgressBarArray.
ControlAdded
I n this Article
Occurs when a new control is added to the ProgressBarArray.

public event [Link] ControlAdded;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ProgressBarArray.
ControlRemoved
I n this Article
Occurs when a control is removed from the ProgressBarArray.

public event [Link] ControlRemoved;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ProgressBarArray.
CursorChanged
I n this Article
Occurs when the value of the Cursor property changes.

public event EventHandler CursorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Cursor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Dock property changes.

public event EventHandler DockChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Dock property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a drag-and-drop operation is completed.
public event [Link] DragDrop;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged into the control's bounds.
public event [Link] DragEnter;
member [Link] : [Link]

Remarks
The DragEnter event is raised when the user first drags the mouse cursor over the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Leave
I n this Article
Occurs when an object is dragged out of the control's bounds.

public event EventHandler DragLeave;


member [Link] : EventHandler

Remarks
The DragLeave event is raised when the user drags the cursor out of the control or the user cancels the current drag-
and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged over the control's bounds.
public event [Link] DragOver;
member [Link] : [Link]

Remarks
The DragOver event is raised when the mouse cursor moves within the bounds of the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ProgressBarArray.
EnabledChanged
I n this Article
Occurs when the value of the Enabled property changes.

public event EventHandler EnabledChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Enabled property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ProgressBarArray.
ForeColorChanged
I n this Article
Occurs when the value of the ForeColor property changes.

public event EventHandler ForeColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ForeColor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ProgressBar
[Link]
I n this Article
Overrides GetControlInstanceType().

protected override Type GetControlInstanceType ();


override [Link] : unit -> Type

Returns
Type Type
The type of a control in a control array.

Remarks
This method cannot be called from your application's code. Use the GetType method instead.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the index of a ProgressBar in a ProgressBarArray.
public short GetIndex ([Link] o);
member [Link] : [Link] -> int16

Parameters
o ProgressBar ProgressBar
A ProgressBar in the control array.
Returns
Int16 Int16
A Short that represents the index of the specified ProgressBar.

Remarks
This method can be used to retrieve the index for the specified ProgressBar.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Feedback
I n this Article
Occurs during a drag operation.

public event [Link] GiveFeedback;


member [Link] : [Link]

Remarks
The GiveFeedback event is raised when a drag-and-drop operation is started. By using the GiveFeedback event, the
source of a drag event can modify the appearance of the mouse pointer in order to give the user visual feedback during
a drag-and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Requested
I n this Article
Occurs when the user requests help for a control.

public event [Link] HelpRequested;


member [Link] : [Link]

Remarks
The HelpRequested event is typically raised when the user presses the F1 key or an associated context-sensitive Help
button is clicked.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ProgressBar
[Link]
I n this Article
Overrides HookUpControlEvents(Object).

protected override void HookUpControlEvents (object o);


override [Link] : obj -> unit

Parameters
o Object Object
An Object.

Remarks
This method cannot be called from your application's code. Use AddHandler to hook up events for any controls that
are added by using the Load method.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link][Int16] [Link][Int16]
I n this Article
Gets a specific element of a ProgressBarArray by index. Read-only.
public [Link] this[short Index] { get; }
member [Link](int16) : [Link]

Parameters
Index Int16 Int16
A Short that specifies the position of an element of the control array.
Returns
ProgressBar ProgressBar
A ProgressBar at the specified Index in the control array.

Remarks
The Item property is the default property for a control array. Therefore, the following lines of code are equivalent.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a control should reposition its child controls.
public event [Link] Layout;
member [Link] : [Link]

Remarks
The Layout event occurs when child controls are added or removed, when the bounds of the control changes, and
when other changes occur that can affect the layout of the control. The layout event can be suppressed by using the
SuspendLayout and ResumeLayout methods. Suspending layout enables you to perform multiple actions on a control
without having to perform a layout for each change. For example, if you resize and move a control, each operation
would raise a Layout event.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ProgressBarArray.
LocationChanged
I n this Article
Occurs when the value of the Location property changes.

public event EventHandler LocationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Location property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ProgressBarArray.
MarginChanged
I n this Article
Occurs when the value of the Margin property changes.

public event EventHandler MarginChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Margin property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ProgressBar
[Link]
I n this Article
Occurs when the control loses or gains mouse capture.

public event EventHandler MouseCaptureChanged;


member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Click
I n this Article
Occurs when the control is clicked by the mouse.

public event [Link] MouseClick;


member [Link] : [Link]

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown
Click / MouseClick
MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate an MouseDoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a control. They are often raised by other actions, such as pressing the
ENTER key when the control has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Down
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is pressed.

public event [Link] MouseDown;


member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel

MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Enter
I n this Article
Occurs when the mouse pointer enters the control.

public event EventHandler MouseEnter;


member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter

MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Hover
I n this Article
Occurs when the mouse pointer rests on the control.

public event EventHandler MouseHover;


member [Link] : EventHandler

Remarks
A typical use of MouseHover is to display a tool tip when the mouse pauses on a control within a specified area around
the control (the "hover rectangle"). The pause required for this event to be raised is specified in milliseconds by the
MouseHoverTime property.
The MouseHover event is defined and detected in connection with the MouseHoverSize and MouseHoverTime
properties.
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Leave
I n this Article
Occurs when the mouse pointer leaves the control.

public event EventHandler MouseLeave;


member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Move
I n this Article
Occurs when the mouse pointer is moved over the control.

public event [Link] MouseMove;


member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove

MouseHover / MouseDown / MouseWheel


MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is released.
public event [Link] MouseUp;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp

MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is moved.
public event EventHandler Move;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ProgressBarArray.
PaddingChanged
I n this Article
Occurs when the control's Padding property changes.

public event EventHandler PaddingChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Padding property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ProgressBarArray.
ParentChanged
I n this Article
Occurs when the control's Parent property changes.

public event EventHandler ParentChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Parent property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
ProgressBarArray ProgressBarArray
I n this Article

Overloads
ProgressBarArray()
Initializes a new instance of the ProgressBarArray class.

ProgressBarArray(IContainer) ProgressBarArray(IContainer)
Initializes a new instance of the ProgressBarArray class,
specifying its container.

ProgressBarArray()
Initializes a new instance of the ProgressBarArray class.
public ProgressBarArray ();

Remarks
When you instantiate a ProgressBarArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

ProgressBarArray(IContainer) ProgressBarArray(IContainer)
Initializes a new instance of the ProgressBarArray class, specifying its container.

public ProgressBarArray ([Link] Container);


new [Link] : [Link] ->
[Link]

Parameters
Container IContainer IContainer
The IContainer where the control array will be hosted.
Remarks
When you instantiate a ProgressBarArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ProgressBar
[Link]
I n this Article
Occurs when an AccessibleObject is providing Help to accessibility applications.

public event [Link] QueryAccessibilityHelp;


member [Link] : [Link]

Remarks
You should use the HelpProvider class to enable users to invoke Help on your accessible object by pressing the F1 key.
The HelpProvider gives you complete information in the QueryAccessibilityHelpEventArgs.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ProgressBarArray.
QueryContinueDrag
I n this Article
Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.
public event [Link] QueryContinueDrag;
member [Link] : [Link]

Remarks
The QueryContinueDrag event is raised when there is a change in the keyboard or mouse button state during a drag-
and-drop operation. The QueryContinueDrag event enables the drag source to determine whether the drag-and-drop
operation should be canceled.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ProgressBarArray.
RegionChanged
I n this Article
Occurs when the value of the Region property changes.

public event EventHandler RegionChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Region property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Index
I n this Article
The ResetIndex method is not supported in the ProgressBarArray class.

public void ResetIndex ([Link] o);


member [Link] : [Link] -> unit

Parameters
o ProgressBar ProgressBar
A Control.

Remarks
This method is not supported, and calling it does not raise an exception.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is resized.
public event EventHandler Resize;
member [Link] : EventHandler

Remarks
To determine the Size of the resized control, you can cast the sender parameter of the EventArgs data to a Control and
get its Size property (or Height and Width properties individually).
To handle custom layouts, use the Layout event instead of the Resize event. The Layout event is raised in response to
a Resize event, but also in response to other changes that affect the layout of the control.

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ProgressBarArray.
RightToLeftChanged
I n this Article
Occurs when the RightToLeftChanged property value changes.

public event EventHandler RightToLeftChanged;


member [Link] : EventHandler

Remarks
This event is raised if the RightToLeft property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] Progress
[Link]
I n this Article
Occurs when the RightToLeftLayout property changes.

public event EventHandler RightToLeftLayoutChanged;


member [Link] : EventHandler

Remarks
This event is raised if the RightToLeftLayout property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Sets the index of the initial ProgressBar in a ProgressBarArray.
public void SetIndex ([Link] o, short Index);
member [Link] : [Link] * int16 -> unit

Parameters
o ProgressBar ProgressBar
A ProgressBar in the control array.
Index Int16 Int16
A Short that represents the index of the specified ProgressBar.

Remarks
The SetIndex method should only be called when you are creating the initial element in the control array. To add
subsequent elements, call the Load method and specify the Index .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ProgressBarArray.
ShouldSerializeIndex
I n this Article
Returns a value that indicates whether a ProgressBar is a member of this ProgressBarArray.

public bool ShouldSerializeIndex ([Link] o);


member [Link] : [Link] -> bool

Parameters
o ProgressBar ProgressBar
A ProgressBar in the control array.
Returns
Boolean Boolean
true if o is a member of this control array; otherwise, false .

Remarks
If the specified ProgressBar is a member of a different ProgressBarArray, ShouldSerializeIndex returns false .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Size property value changes.

public event EventHandler SizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Size property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control style changes.

public event EventHandler StyleChanged;


member [Link] : EventHandler

Remarks
The StyleChanged event occurs when ControlStyles flags have been added or changed.
This event is raised if the control style is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ProgressBar
[Link]
I n this Article
Occurs when the system colors change.

public event EventHandler SystemColorsChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SystemColors is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
IndexChanged
I n this Article
Occurs when the TabIndex property value changes.

public event EventHandler TabIndexChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabIndex property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is finished validating.
public event EventHandler Validated;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated

If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is validating.
public event [Link] Validating;
member [Link] : [Link]

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating

Validated
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating

Validated
If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ProgressBarArray.
VisibleChanged
I n this Article
Occurs when the Visible property value changes.

public event EventHandler VisibleChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Visible property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
RadioButtonArray RadioButtonArray Class
Provides a control array of RadioButton controls.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class RadioButtonArray : [Link],
[Link]
type RadioButtonArray = class
inherit BaseControlArray
interface IExtenderProvider

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component
BaseControlArray BaseControlArray

Remarks
The RadioButtonArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0 RadioButton
array. It does not provide the design-time features of a Visual Basic 6.0 control array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
RadioButtonArray()
RadioButtonArray()

Initializes a new instance of the RadioButtonArray class.

RadioButtonArray(IContainer)
RadioButtonArray(IContainer)

Initializes a new instance of the RadioButtonArray class, specifying its container.

Properties
Item[Int16]
Item[Int16]

Gets a specific element of a RadioButtonArray by index. Read-only.


Methods
CanExtend(Object)
CanExtend(Object)

Gets a value that determines whether a control is a member of a RadioButtonArray.

GetControlInstanceType()
GetControlInstanceType()

Overrides GetControlInstanceType().

GetIndex(RadioButton)
GetIndex(RadioButton)

Gets the index of a RadioButton in a RadioButtonArray.

HookUpControlEvents(Object)
HookUpControlEvents(Object)

Overrides HookUpControlEvents(Object).

ResetIndex(RadioButton)
ResetIndex(RadioButton)

The ResetIndex method is not supported in the RadioButtonArray class.

SetIndex(RadioButton, Int16)
SetIndex(RadioButton, Int16)

Sets the index of the initial RadioButton in a RadioButtonArray.

ShouldSerializeIndex(RadioButton)
ShouldSerializeIndex(RadioButton)

Returns a value that indicates whether a RadioButton is a member of this RadioButtonArray.

Events
AppearanceChanged
AppearanceChanged

Occurs when the value of the Appearance property changes.

AutoSizeChanged
AutoSizeChanged

Occurs when the value of the AutoSize property changes.

BackColorChanged
BackColorChanged

Occurs when the value of the BackColor property changes.

BackgroundImageChanged
BackgroundImageChanged

Occurs when the value of the BackgroundImage property changes.

BackgroundImageLayoutChanged
BackgroundImageLayoutChanged

Occurs when the value of the BackgroundImageLayout property changes.

BindingContextChanged
BindingContextChanged

Occurs when the value of the BindingContext property changes.

CausesValidationChanged
CausesValidationChanged

Occurs when the value of the CausesValidation property changes.

ChangeUICues
ChangeUICues

Occurs when the focus or keyboard user interface (UI) cues change.

CheckedChanged
CheckedChanged

Occurs when the value of the Checked property changes.

Click
Click

Occurs when a RadioButton in a RadioButtonArray is clicked.


ClientSizeChanged
ClientSizeChanged

Occurs when the value of the ClientSize property changes.

ContextMenuChanged
ContextMenuChanged

Occurs when the value of the ContextMenu property changes.

ContextMenuStripChanged
ContextMenuStripChanged

Occurs when the value of the ContextMenuStrip property changes.

ControlAdded
ControlAdded

Occurs when a new control is added to the RadioButtonArray.

ControlRemoved
ControlRemoved

Occurs when a control is removed from the RadioButtonArray.

CursorChanged
CursorChanged

Occurs when the value of the Cursor property changes.

DockChanged
DockChanged

Occurs when the value of the Dock property changes.

DragDrop
DragDrop

Occurs when a drag-and-drop operation is completed.

DragEnter
DragEnter

Occurs when an object is dragged into the control's bounds.


DragLeave
DragLeave

Occurs when an object is dragged out of the control's bounds.

DragOver
DragOver

Occurs when an object is dragged over the control's bounds.

EnabledChanged
EnabledChanged

Occurs when the value of the Enabled property changes.

Enter
Enter

Occurs when the control is entered.

FontChanged
FontChanged

Occurs when the value of the Font property changes.

ForeColorChanged
ForeColorChanged

Occurs when the value of the ForeColor property changes.

GiveFeedback
GiveFeedback

Occurs during a drag operation.

HelpRequested
HelpRequested

Occurs when the user requests help for a control.

KeyDown
KeyDown

Occurs when a key is pressed and the control has focus.


KeyPress
KeyPress

Occurs when a key is pressed and the control has focus.

KeyUp
KeyUp

Occurs when a key is released and the control has focus.

Layout
Layout

Occurs when a control should reposition its child controls.

Leave
Leave

Occurs when the input focus leaves the control.

LocationChanged
LocationChanged

Occurs when the value of the Location property changes.

MarginChanged
MarginChanged

Occurs when the value of the Margin property changes.

MouseCaptureChanged
MouseCaptureChanged

Occurs when the control loses or gains mouse capture.

MouseClick
MouseClick

Occurs when the control is clicked by the mouse.

MouseDown
MouseDown

Occurs when the mouse pointer is over the control and a mouse button is pressed.
MouseEnter
MouseEnter

Occurs when the mouse pointer enters the control.

MouseHover
MouseHover

Occurs when the mouse pointer rests on the control.

MouseLeave
MouseLeave

Occurs when the mouse pointer leaves the control.

MouseMove
MouseMove

Occurs when the mouse pointer is moved over the control.

MouseUp
MouseUp

Occurs when the mouse pointer is over the control and a mouse button is released.

Move
Move

Occurs when the control is moved.

PaddingChanged
PaddingChanged

Occurs when the control's Padding property changes.

Paint
Paint

Occurs when the control is redrawn.

ParentChanged
ParentChanged

Occurs when the control's Parent property changes.


QueryAccessibilityHelp
QueryAccessibilityHelp

Occurs when an AccessibleObject is providing Help to accessibility applications.

QueryContinueDrag
QueryContinueDrag

Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.

RegionChanged
RegionChanged

Occurs when the value of the Region property changes.

Resize
Resize

Occurs when the control is resized.

RightToLeftChanged
RightToLeftChanged

Occurs when the RightToLeftChanged property value changes.

SizeChanged
SizeChanged

Occurs when the Size property value changes.

StyleChanged
StyleChanged

Occurs when the control style changes.

SystemColorsChanged
SystemColorsChanged

Occurs when the system colors change.

TabIndexChanged
TabIndexChanged

Occurs when the TabIndex property value changes.


TabStopChanged
TabStopChanged

Occurs when the TabStop property value changes.

TextChanged
TextChanged

Occurs when the Text property value changes.

Validated
Validated

Occurs when the control is finished validating.

Validating
Validating

Occurs when the control is validating.

VisibleChanged
VisibleChanged

Occurs when the Visible property value changes.


[Link] RadioButton
[Link]
I n this Article
Occurs when the value of the Appearance property changes.

public event EventHandler AppearanceChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Appearance property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RadioButtonArray.
AutoSizeChanged
I n this Article
Occurs when the value of the AutoSize property changes.

public event EventHandler AutoSizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the AutoSize property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RadioButtonArray.
BackColorChanged
I n this Article
Occurs when the value of the BackColor property changes.

public event EventHandler BackColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BackColor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] Radio
[Link]
I n this Article
Occurs when the value of the BackgroundImage property changes.

public event EventHandler BackgroundImageChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BackgroundImage property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link]
[Link]
I n this Article
Occurs when the value of the BackgroundImageLayout property changes.

public event EventHandler BackgroundImageLayoutChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BackgroundImageLayout property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RadioButton
[Link]
I n this Article
Occurs when the value of the BindingContext property changes.

public event EventHandler BindingContextChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BindingContext property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Extend
I n this Article
Gets a value that determines whether a control is a member of a RadioButtonArray.

public bool CanExtend (object target);


abstract member CanExtend : obj -> bool
override [Link] : obj -> bool

Parameters
target Object Object
A RadioButton control.
Returns
Boolean Boolean
true if target is a member of the control array; otherwise, false .

Remarks
The CanExtend method can be used to determine whether a specific RadioButton control is the base element of the
control array from which the other elements were cloned.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] Radio
[Link]
I n this Article
Occurs when the value of the CausesValidation property changes.

public event EventHandler CausesValidationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the CausesValidation property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RadioButtonArray.
ChangeUICues
I n this Article
Occurs when the focus or keyboard user interface (UI) cues change.

public event [Link] ChangeUICues;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RadioButtonArray.
CheckedChanged
I n this Article
Occurs when the value of the Checked property changes.

public event EventHandler CheckedChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Checked property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a RadioButton in a RadioButtonArray is clicked.
public event EventHandler Click;
member [Link] : EventHandler

Remarks
The Click event passes an EventArgs to its event handler. Therefore it only indicates that a click has occurred. If you
need more specific mouse information (button, number of clicks, wheel rotation, or location), use the MouseClick event.
However, the MouseClick event will not be raised if the click is caused by action other than that of the mouse, such as
pressing the ENTER key.
A double-click is determined by the mouse settings of the user's operating system. The user can set the time between
clicks of a mouse button that should be considered a double-click instead of two clicks. The Click event is raised every
time that a control is double-clicked. For example, if you have event handlers for the Click and DoubleClick events of
a control, the Click and DoubleClick events are raised when the control is double-clicked and both methods are
called. If a control is double-clicked and that control does not support the DoubleClick event, the Click event might be
raised two times.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RadioButtonArray.
ClientSizeChanged
I n this Article
Occurs when the value of the ClientSize property changes.

public event EventHandler ClientSizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ClientSize property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RadioButton
[Link]
I n this Article
Occurs when the value of the ContextMenu property changes.

[[Link](false)]
public event EventHandler ContextMenuChanged;
member [Link] : EventHandler

Attributes BrowsableAttribute

Remarks
This event is raised if the ContextMenu property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] Radio
[Link]
I n this Article
Occurs when the value of the ContextMenuStrip property changes.

public event EventHandler ContextMenuStripChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ContextMenuStrip property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RadioButtonArray.
ControlAdded
I n this Article
Occurs when a new control is added to the RadioButtonArray.

public event [Link] ControlAdded;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RadioButtonArray.
ControlRemoved
I n this Article
Occurs when a control is removed from the RadioButtonArray.

public event [Link] ControlRemoved;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RadioButtonArray.
CursorChanged
I n this Article
Occurs when the value of the Cursor property changes.

public event EventHandler CursorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Cursor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Dock property changes.

public event EventHandler DockChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Dock property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Drop
I n this Article
Occurs when a drag-and-drop operation is completed.

public event [Link] DragDrop;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Enter
I n this Article
Occurs when an object is dragged into the control's bounds.

public event [Link] DragEnter;


member [Link] : [Link]

Remarks
The DragEnter event is raised when the user first drags the mouse cursor over the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Leave
I n this Article
Occurs when an object is dragged out of the control's bounds.

public event EventHandler DragLeave;


member [Link] : EventHandler

Remarks
The DragLeave event is raised when the user drags the cursor out of the control or the user cancels the current drag-
and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged over the control's bounds.
public event [Link] DragOver;
member [Link] : [Link]

Remarks
The DragOver event is raised when the mouse cursor moves within the bounds of the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RadioButtonArray.
EnabledChanged
I n this Article
Occurs when the value of the Enabled property changes.

public event EventHandler EnabledChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Enabled property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is entered.
public event EventHandler Enter;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), or by calling the Select or
SelectNextControl method, focus events occur in the following order:
Enter

GotFocus
Leave
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter

GotFocus
LostFocus
Leave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Font property changes.

public event EventHandler FontChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Font property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RadioButtonArray.
ForeColorChanged
I n this Article
Occurs when the value of the ForeColor property changes.

public event EventHandler ForeColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ForeColor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RadioButton
[Link]
I n this Article
Overrides GetControlInstanceType().

protected override Type GetControlInstanceType ();


override [Link] : unit -> Type

Returns
Type Type
The type of a control in a control array.

Remarks
This method cannot be called from your application's code. Use the GetType method instead.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the index of a RadioButton in a RadioButtonArray.
public short GetIndex ([Link] o);
member [Link] : [Link] -> int16

Parameters
o RadioButton RadioButton
A RadioButton in the control array.
Returns
Int16 Int16
A Short that represents the index of the specified RadioButton.

Remarks
This method can be used to retrieve the index for a RadioButton.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Feedback
I n this Article
Occurs during a drag operation.

public event [Link] GiveFeedback;


member [Link] : [Link]

Remarks
The GiveFeedback event is raised when a drag-and-drop operation is started. By using the GiveFeedback event, the
source of a drag event can modify the appearance of the mouse pointer in order to give the user visual feedback during
a drag-and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Requested
I n this Article
Occurs when the user requests help for a control.

public event [Link] HelpRequested;


member [Link] : [Link]

Remarks
The HelpRequested event is typically raised when the user presses the F1 key or an associated context-sensitive Help
button is clicked.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RadioButton
[Link]
I n this Article
Overrides HookUpControlEvents(Object).

protected override void HookUpControlEvents (object o);


override [Link] : obj -> unit

Parameters
o Object Object
An Object.

Remarks
This method cannot be called from your application's code. Use AddHandler to hook up events for any controls that
are added by using the Load method.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link][Int16] [Link][
Int16]
I n this Article
Gets a specific element of a RadioButtonArray by index. Read-only.

public [Link] this[short Index] { get; }


member [Link](int16) : [Link]

Parameters
Index Int16 Int16
A Short that specifies the position of an element of the control array.
Returns
RadioButton RadioButton
A RadioButton at the specified Index in the control array.

Remarks
The Item property is the default property for a control array. Therefore, the following lines of code are equivalent.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is pressed and the control has focus.
public event [Link] KeyDown;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown

KeyPress
KeyUp
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is pressed and the control has focus.
public event [Link] KeyPress;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress

KeyUp
The KeyPress event is not raised by noncharacter keys; however, the noncharacter keys do raise the KeyDown and
KeyUp events.
Use the KeyChar property to sample keystrokes at run time and to consume or modify a subset of common keystrokes.
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is released and the control has focus.
public event [Link] KeyUp;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress
KeyUp

To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a control should reposition its child controls.
public event [Link] Layout;
member [Link] : [Link]

Remarks
The Layout event occurs when child controls are added or removed, when the bounds of the control changes, and
when other changes occur that can affect the layout of the control. The layout event can be suppressed by using the
SuspendLayout and ResumeLayout methods. Suspending layout enables you to perform multiple actions on a control
without having to perform a layout for each change. For example, if you resize and move a control, each operation
would raise a Layout event.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the input focus leaves the control.
public event EventHandler Leave;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), or by calling the Select or
SelectNextControl method, focus events occur in the following order:
Enter
GotFocus
Leave

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RadioButtonArray.
LocationChanged
I n this Article
Occurs when the value of the Location property changes.

public event EventHandler LocationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Location property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RadioButtonArray.
MarginChanged
I n this Article
Occurs when the value of the Margin property changes.

public event EventHandler MarginChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Margin property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RadioButton
[Link]
I n this Article
Occurs when the control loses or gains mouse capture.

public event EventHandler MouseCaptureChanged;


member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Click
I n this Article
Occurs when the control is clicked by the mouse.

public event [Link] MouseClick;


member [Link] : [Link]

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown
Click
MouseClick

MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate an MouseDoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a control. They are often raised by other actions, such as pressing the
ENTER key when the control has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Down
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is pressed.

public event [Link] MouseDown;


member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel

MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Enter
I n this Article
Occurs when the mouse pointer enters the control.

public event EventHandler MouseEnter;


member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter

MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Hover
I n this Article
Occurs when the mouse pointer rests on the control.

public event EventHandler MouseHover;


member [Link] : EventHandler

Remarks
A typical use of MouseHover is to display a tool tip when the mouse pauses on a control within a specified area around
the control (the "hover rectangle"). The pause required for this event to be raised is specified in milliseconds by the
MouseHoverTime property.
The MouseHover event is defined and detected in connection with the MouseHoverSize and MouseHoverTime
properties.
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Leave
I n this Article
Occurs when the mouse pointer leaves the control.

public event EventHandler MouseLeave;


member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Move
I n this Article
Occurs when the mouse pointer is moved over the control.

public event [Link] MouseMove;


member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove

MouseHover / MouseDown / MouseWheel


MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is released.
public event [Link] MouseUp;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp

MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is moved.
public event EventHandler Move;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RadioButtonArray.
PaddingChanged
I n this Article
Occurs when the control's Padding property changes.

public event EventHandler PaddingChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Padding property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is redrawn.
public event [Link] Paint;
member [Link] : [Link]

Remarks
The Paint event handler is typically used to perform custom drawing when a control is redrawn.

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RadioButtonArray.
ParentChanged
I n this Article
Occurs when the control's Parent property changes.

public event EventHandler ParentChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Parent property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RadioButton
[Link]
I n this Article
Occurs when an AccessibleObject is providing Help to accessibility applications.

public event [Link] QueryAccessibilityHelp;


member [Link] : [Link]

Remarks
You should use the HelpProvider class to enable users to invoke Help on your accessible object by pressing the F1 key.
The HelpProvider gives you complete information in the QueryAccessibilityHelpEventArgs.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RadioButton
[Link]
I n this Article
Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.
public event [Link] QueryContinueDrag;
member [Link] : [Link]

Remarks
The QueryContinueDrag event is raised when there is a change in the keyboard or mouse button state during a drag-
and-drop operation. The QueryContinueDrag event enables the drag source to determine whether the drag-and-drop
operation should be canceled.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
RadioButtonArray RadioButtonArray
I n this Article

Overloads
RadioButtonArray()
Initializes a new instance of the RadioButtonArray class.

RadioButtonArray(IContainer) RadioButtonArray(IContainer)
Initializes a new instance of the RadioButtonArray class,
specifying its container.

RadioButtonArray()
Initializes a new instance of the RadioButtonArray class.
public RadioButtonArray ();

Remarks
When you instantiate a RadioButtonArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

RadioButtonArray(IContainer) RadioButtonArray(IContainer)
Initializes a new instance of the RadioButtonArray class, specifying its container.

public RadioButtonArray ([Link] Container);


new [Link] : [Link] ->
[Link]

Parameters
Container IContainer IContainer
The IContainer where the control array will be hosted.
Remarks
When you instantiate a RadioButtonArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RadioButtonArray.
RegionChanged
I n this Article
Occurs when the value of the Region property changes.

public event EventHandler RegionChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Region property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Index
I n this Article
The ResetIndex method is not supported in the RadioButtonArray class.

public void ResetIndex ([Link] o);


member [Link] : [Link] -> unit

Parameters
o RadioButton RadioButton
A Control.

Remarks
This method is not supported, and calling it does not raise an exception.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is resized.
public event EventHandler Resize;
member [Link] : EventHandler

Remarks
To determine the Size of the resized control, you can cast the sender parameter of the EventArgs data to a Control and
get its Size property (or Height and Width properties individually).
To handle custom layouts, use the Layout event instead of the Resize event. The Layout event is raised in response to
a Resize event, but also in response to other changes that affect the layout of the control.

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RadioButton
[Link]
I n this Article
Occurs when the RightToLeftChanged property value changes.

public event EventHandler RightToLeftChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Region property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Sets the index of the initial RadioButton in a RadioButtonArray.
public void SetIndex ([Link] o, short Index);
member [Link] : [Link] * int16 -> unit

Parameters
o RadioButton RadioButton
A RadioButton in the control array.
Index Int16 Int16
A Short that represents the index of the specified RadioButton.

Remarks
The SetIndex method should only be called when you are creating the initial element in the control array. To add
subsequent elements, call the Load method and specify the Index .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RadioButton
[Link]
I n this Article
Returns a value that indicates whether a RadioButton is a member of this RadioButtonArray.

public bool ShouldSerializeIndex ([Link] o);


member [Link] : [Link] -> bool

Parameters
o RadioButton RadioButton
A RadioButton in the control array.
Returns
Boolean Boolean
true if o is a member of this control array; otherwise, false .

Remarks
If the specified RadioButton is a member of a different RadioButtonArray, ShouldSerializeIndex returns false .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Size property value changes.

public event EventHandler SizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Size property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control style changes.

public event EventHandler StyleChanged;


member [Link] : EventHandler

Remarks
The StyleChanged event occurs when ControlStyles flags have been added or changed.
This event is raised if the control style is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RadioButton
[Link]
I n this Article
Occurs when the system colors change.

public event EventHandler SystemColorsChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SystemColors is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RadioButtonArray.
TabIndexChanged
I n this Article
Occurs when the TabIndex property value changes.

public event EventHandler TabIndexChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabIndex property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RadioButtonArray.
TabStopChanged
I n this Article
Occurs when the TabStop property value changes.

public event EventHandler TabStopChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabStop property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Text property value changes.

public event EventHandler TextChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Text property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is finished validating.
public event EventHandler Validated;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated

If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is validating.
public event [Link] Validating;
member [Link] : [Link]

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated
If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RadioButtonArray.
VisibleChanged
I n this Article
Occurs when the Visible property value changes.

public event EventHandler VisibleChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Visible property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
RichTextBoxArray RichTextBoxArray Class
Provides a control array of RichTextBox controls

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class RichTextBoxArray : [Link],
[Link]
type RichTextBoxArray = class
inherit BaseControlArray
interface IExtenderProvider

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component
BaseControlArray BaseControlArray

Remarks
The RichTextBoxArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0 RichTextBox
control array. It does not provide the design-time features of a Visual Basic 6.0 control array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
RichTextBoxArray()
RichTextBoxArray()

Initializes a new instance of the RichTextBoxArray class.

RichTextBoxArray(IContainer)
RichTextBoxArray(IContainer)

Initializes a new instance of the RichTextBoxArray class, specifying its container.

Properties
Item[Int16]
Item[Int16]

Gets a specific element of a RichTextBoxArray by index. Read-only.


Methods
CanExtend(Object)
CanExtend(Object)

Gets a value that determines whether a control is a member of a RichTextBoxArray.

GetControlInstanceType()
GetControlInstanceType()

Overrides GetControlInstanceType().

GetIndex(RichTextBox)
GetIndex(RichTextBox)

Gets the index of a RichTextBox in a RichTextBoxArray.

HookUpControlEvents(Object)
HookUpControlEvents(Object)

Overrides HookUpControlEvents(Object).

ResetIndex(RichTextBox)
ResetIndex(RichTextBox)

The ResetIndex method is not supported in the RichTextBoxArray class.

SetIndex(RichTextBox, Int16)
SetIndex(RichTextBox, Int16)

Sets the index of the initial RichTextBox in a RichTextBoxArray.

ShouldSerializeIndex(RichTextBox)
ShouldSerializeIndex(RichTextBox)

Returns a value that indicates whether a RichTextBox is a member of this RichTextBoxArray.

Events
AcceptsTabChanged
AcceptsTabChanged

Occurs when the AcceptsTab property value changes.

BackColorChanged
BackColorChanged

Occurs when the value of the BackColor property changes.

BindingContextChanged
BindingContextChanged

Occurs when the value of the BindingContext property changes.

BorderStyleChanged
BorderStyleChanged

Occurs when the BorderStyle property value changes.

CausesValidationChanged
CausesValidationChanged

Occurs when the CausesValidation property value changes.

ChangeUICues
ChangeUICues

Occurs when the focus or keyboard user interface (UI) cues change.

Click
Click

Occurs when a RichTextBox in a RichTextBoxArray is clicked.

ClientSizeChanged
ClientSizeChanged

Occurs when the value of the ClientSize property changes.

ContentsResized
ContentsResized

Occurs when contents within the control are resized.

ContextMenuChanged
ContextMenuChanged

Occurs when the value of the ContextMenu property changes.


ContextMenuStripChanged
ContextMenuStripChanged

Occurs when the value of the ContextMenuStrip property changes.

ControlAdded
ControlAdded

Occurs when a new control is added to the RichTextBoxArray.

ControlRemoved
ControlRemoved

Occurs when a control is removed from the RichTextBoxArray.

CursorChanged
CursorChanged

Occurs when the value of the Cursor property changes.

DockChanged
DockChanged

Occurs when the value of the Dock property changes.

DoubleClick
DoubleClick

Occurs when a RichTextBox control in a RichTextBoxArray is double-clicked.

EnabledChanged
EnabledChanged

Occurs when the value of the Enabled property changes.

Enter
Enter

Occurs when the control is entered.

FontChanged
FontChanged

Occurs when the value of the Font property changes.


ForeColorChanged
ForeColorChanged

Occurs when the value of the ForeColor property changes.

HelpRequested
HelpRequested

Occurs when the user requests help for a control.

HideSelectionChanged
HideSelectionChanged

Occurs when the value of the HideSelection property changes.

HScroll
HScroll

Occurs when the user clicks the horizontal scroll bar of the control.

ImeChange
ImeChange

Occurs when the user switches input methods on an Asian version of the Windows operating system.

ImeModeChanged
ImeModeChanged

Occurs when the value of the ImeMode property changes.

KeyDown
KeyDown

Occurs when a key is pressed and the control has focus.

KeyPress
KeyPress

Occurs when a key is pressed and the control has focus.

KeyUp
KeyUp

Occurs when a key is released and the control has focus.


Layout
Layout

Occurs when a control should reposition its child controls.

Leave
Leave

Occurs when the input focus leaves the control.

LinkClicked
LinkClicked

Occurs when the user clicks on a link within the text of the control.

LocationChanged
LocationChanged

Occurs when the value of the Location property changes.

MarginChanged
MarginChanged

Occurs when the value of the Margin property changes.

ModifiedChanged
ModifiedChanged

Occurs when the value of the Modified property changes.

MouseCaptureChanged
MouseCaptureChanged

Occurs when the control loses or gains mouse capture.

MouseClick
MouseClick

Occurs when the control is clicked by the mouse.

MouseDoubleClick
MouseDoubleClick

Occurs when the control is double-clicked by the mouse.


MouseDown
MouseDown

Occurs when the mouse pointer is over the control and a mouse button is pressed.

MouseEnter
MouseEnter

Occurs when the mouse pointer enters the control.

MouseHover
MouseHover

Occurs when the mouse pointer rests on the control.

MouseLeave
MouseLeave

Occurs when the mouse pointer leaves the control.

MouseMove
MouseMove

Occurs when the mouse pointer is moved over the control.

MouseUp
MouseUp

Occurs when the mouse pointer is over the control and a mouse button is released.

Move
Move

Occurs when the control is moved.

MultilineChanged
MultilineChanged

Occurs when the value of the Multiline property changes.

ParentChanged
ParentChanged

Occurs when the control's Parent property changes.


Protected
Protected

Occurs when the user attempts to modify protected text in the control.

QueryAccessibilityHelp
QueryAccessibilityHelp

Occurs when an AccessibleObject is providing Help to accessibility applications.

ReadOnlyChanged
ReadOnlyChanged

Occurs when the value of the ReadOnly property changes.

RegionChanged
RegionChanged

Occurs when the value of the Region property changes.

Resize
Resize

Occurs when the control is resized.

RightToLeftChanged
RightToLeftChanged

Occurs when the RightToLeftChanged property value changes.

SelectionChanged
SelectionChanged

Occurs when the selection of text within the control has changed.

SizeChanged
SizeChanged

Occurs when the Size property value changes.

StyleChanged
StyleChanged

Occurs when the control style changes.


SystemColorsChanged
SystemColorsChanged

Occurs when the system colors change.

TabIndexChanged
TabIndexChanged

Occurs when the TabIndex property value changes.

TabStopChanged
TabStopChanged

Occurs when the TabStop property value changes.

TextChanged
TextChanged

Occurs when the Text property value changes.

Validated
Validated

Occurs when the control is finished validating.

Validating
Validating

Occurs when the control is validating.

VisibleChanged
VisibleChanged

Occurs when the Visible property value changes.

VScroll
VScroll

Occurs when the user clicks the vertical scroll bars of the control.
[Link] RichTextBoxArray.
AcceptsTabChanged
I n this Article
Occurs when the AcceptsTab property value changes.

public event EventHandler AcceptsTabChanged;


member [Link] : EventHandler

Remarks
This event is raised if the AcceptsTab property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RichTextBoxArray.
BackColorChanged
I n this Article
Occurs when the value of the BackColor property changes.

public event EventHandler BackColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BackColor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RichTextBox
[Link]
I n this Article
Occurs when the value of the BindingContext property changes.

public event EventHandler BindingContextChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BindingContext property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RichTextBoxArray.
BorderStyleChanged
I n this Article
Occurs when the BorderStyle property value changes.

public event EventHandler BorderStyleChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BorderStyle property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets a value that determines whether a control is a member of a RichTextBoxArray.
public bool CanExtend (object target);
abstract member CanExtend : obj -> bool
override [Link] : obj -> bool

Parameters
target Object Object
A RichTextBox control.
Returns
Boolean Boolean
true if target is a member of the control array; otherwise, false .

Remarks
The CanExtend method can be used to determine whether a specific RichTextBox control is the base element of the
control array from which the other elements were cloned.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RichTextBox
[Link]
I n this Article
Occurs when the CausesValidation property value changes.

public event EventHandler CausesValidationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the CausesValidation property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RichTextBoxArray.
ChangeUICues
I n this Article
Occurs when the focus or keyboard user interface (UI) cues change.

public event [Link] ChangeUICues;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a RichTextBox in a RichTextBoxArray is clicked.
public event EventHandler Click;
member [Link] : EventHandler

Remarks
The Click event passes an EventArgs to its event handler. Therefore it only indicates that a click has occurred. If you
need more specific mouse information (button, number of clicks, wheel rotation, or location), use the MouseClick event.
However, the MouseClick event will not be raised if the click is caused by action other than that of the mouse, such as
pressing the ENTER key.
A double-click is determined by the mouse settings of the user's operating system. The user can set the time between
clicks of a mouse button that should be considered a double-click instead of two clicks. The Click event is raised every
time that a control is double-clicked. For example, if you have event handlers for the Click and DoubleClick events of
a control, the Click and DoubleClick events are raised when the control is double-clicked and both methods are
called. If a control is double-clicked and that control does not support the DoubleClick event, the Click event might be
raised two times.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RichTextBoxArray.
ClientSizeChanged
I n this Article
Occurs when the value of the ClientSize property changes.

public event EventHandler ClientSizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ClientSize property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RichTextBoxArray.
ContentsResized
I n this Article
Occurs when contents within the control are resized.

public event [Link] ContentsResized;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RichTextBox
[Link]
I n this Article
Occurs when the value of the ContextMenu property changes.

[[Link](false)]
public event EventHandler ContextMenuChanged;
member [Link] : EventHandler

Attributes BrowsableAttribute

Remarks
This event is raised if the ContextMenu property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RichTextBox
[Link]
I n this Article
Occurs when the value of the ContextMenuStrip property changes.

public event EventHandler ContextMenuStripChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ContextMenuStrip property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Added
I n this Article
Occurs when a new control is added to the RichTextBoxArray.

public event [Link] ControlAdded;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RichTextBoxArray.
ControlRemoved
I n this Article
Occurs when a control is removed from the RichTextBoxArray.

public event [Link] ControlRemoved;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RichTextBoxArray.
CursorChanged
I n this Article
Occurs when the value of the Cursor property changes.

public event EventHandler CursorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Cursor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Dock property changes.

public event EventHandler DockChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Dock property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Click
I n this Article
Occurs when a RichTextBox control in a RichTextBoxArray is double-clicked.

public event EventHandler DoubleClick;


member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RichTextBoxArray.
EnabledChanged
I n this Article
Occurs when the value of the Enabled property changes.

public event EventHandler EnabledChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Enabled property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is entered.
public event EventHandler Enter;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Font property changes.

public event EventHandler FontChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Font property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RichTextBoxArray.
ForeColorChanged
I n this Article
Occurs when the value of the ForeColor property changes.

public event EventHandler ForeColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ForeColor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RichTextBox
[Link]
I n this Article
Overrides GetControlInstanceType().

protected override Type GetControlInstanceType ();


override [Link] : unit -> Type

Returns
Type Type
The type of a control in a control array.

Remarks
This method cannot be called from your application's code. Use the GetType method instead.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the index of a RichTextBox in a RichTextBoxArray.
public short GetIndex ([Link] o);
member [Link] : [Link] -> int16

Parameters
o RichTextBox RichTextBox
A RichTextBox in the control array.
Returns
Int16 Int16
A Short that represents the index of the specified RichTextBox.

Remarks
This method can be used to retrieve the index for the specified RichTextBox.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Requested
I n this Article
Occurs when the user requests help for a control.

public event [Link] HelpRequested;


member [Link] : [Link]

Remarks
The HelpRequested event is typically raised when the user presses the F1 key or an associated context-sensitive Help
button is clicked.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RichTextBox
[Link]
I n this Article
Occurs when the value of the HideSelection property changes.

public event EventHandler HideSelectionChanged;


member [Link] : EventHandler

Remarks
This event is raised if the HideSelection property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RichTextBox
[Link]
I n this Article
Overrides HookUpControlEvents(Object).

protected override void HookUpControlEvents (object o);


override [Link] : obj -> unit

Parameters
o Object Object
An Object.

Remarks
This method cannot be called from your application's code. Use AddHandler to hook up events for any controls that
are added by using the Load method.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the user clicks the horizontal scroll bar of the control.
public event EventHandler HScroll;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Change
I n this Article
Occurs when the user switches input methods on an Asian version of the Windows operating system.

public event EventHandler ImeChange;


member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RichTextBoxArray.
ImeModeChanged
I n this Article
Occurs when the value of the ImeMode property changes.

public event EventHandler ImeModeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ImeMode property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link][Int16] [Link][Int16]
I n this Article
Gets a specific element of a RichTextBoxArray by index. Read-only.
public [Link] this[short Index] { get; }
member [Link](int16) : [Link]

Parameters
Index Int16 Int16
A Short that specifies the position of an element of the control array.
Returns
RichTextBox RichTextBox
A RichTextBox at the specified Index in the control array.

Remarks
The Item property is the default property for a control array. Therefore, the following lines of code are equivalent.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is pressed and the control has focus.
public event [Link] KeyDown;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown

KeyPress
KeyUp
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is pressed and the control has focus.
public event [Link] KeyPress;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress

KeyUp
The KeyPress event is not raised by noncharacter keys; however, the noncharacter keys do raise the KeyDown and
KeyUp events.
Use the KeyChar property to sample keystrokes at run time and to consume or modify a subset of common keystrokes.
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is released and the control has focus.
public event [Link] KeyUp;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress
KeyUp

To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a control should reposition its child controls.
public event [Link] Layout;
member [Link] : [Link]

Remarks
The Layout event occurs when child controls are added or removed, when the bounds of the control changes, and
when other changes occur that can affect the layout of the control. The layout event can be suppressed by using the
SuspendLayout and ResumeLayout methods. Suspending layout enables you to perform multiple actions on a control
without having to perform a layout for each change. For example, if you resize and move a control, each operation
would raise a Layout event.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the input focus leaves the control.
public event EventHandler Leave;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), or by calling the Select or
SelectNextControl method, focus events occur in the following order:
Enter
GotFocus
Leave

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Clicked
I n this Article
Occurs when the user clicks on a link within the text of the control.

public event [Link] LinkClicked;


member [Link] : [Link]

Remarks
You can create an event handler for this event to process a link that has been clicked within the control. By using the
information provided to the event handler, you can determine which link was clicked in the document.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RichTextBoxArray.
LocationChanged
I n this Article
Occurs when the value of the Location property changes.

public event EventHandler LocationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Location property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RichTextBoxArray.
MarginChanged
I n this Article
Occurs when the value of the Margin property changes.

public event EventHandler MarginChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Margin property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RichTextBoxArray.
ModifiedChanged
I n this Article
Occurs when the value of the Modified property changes.

public event EventHandler ModifiedChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Modified property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RichTextBox
[Link]
I n this Article
Occurs when the control loses or gains mouse capture.

public event EventHandler MouseCaptureChanged;


member [Link] : EventHandler

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown
Click
MouseClick

MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate an MouseDoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a control. They are often raised by other actions, such as pressing the
ENTER key when the control has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Click
I n this Article
Occurs when the control is clicked by the mouse.

public event [Link] MouseClick;


member [Link] : [Link]

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown
Click
MouseClick

MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate a MouseDoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a shape. They are often raised by other actions, such as pressing the
ENTER key when the shape has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RichTextBoxArray.
MouseDoubleClick
I n this Article
Occurs when the control is double-clicked by the mouse.

public event [Link] MouseDoubleClick;


member [Link] : [Link]

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown
Click
MouseClick
MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate a DoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a shape. They are often raised by other actions, such as pressing the
ENTER key when the shape has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Down
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is pressed.

public event [Link] MouseDown;


member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel

MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Enter
I n this Article
Occurs when the mouse pointer enters the control.

public event EventHandler MouseEnter;


member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter

MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Hover
I n this Article
Occurs when the mouse pointer rests on the control.

public event EventHandler MouseHover;


member [Link] : EventHandler

Remarks
A typical use of MouseHover is to display a tool tip when the mouse pauses on a control within a specified area around
the control (the "hover rectangle"). The pause required for this event to be raised is specified in milliseconds by the
MouseHoverTime property.
The MouseHover event is defined and detected in connection with the MouseHoverSize and MouseHoverTime
properties.
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Leave
I n this Article
Occurs when the mouse pointer leaves the control.

public event EventHandler MouseLeave;


member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Move
I n this Article
Occurs when the mouse pointer is moved over the control.

public event [Link] MouseMove;


member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove

MouseHover / MouseDown / MouseWheel


MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is released.
public event [Link] MouseUp;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp

MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is moved.
public event EventHandler Move;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RichTextBoxArray.
MultilineChanged
I n this Article
Occurs when the value of the Multiline property changes.

public event EventHandler MultilineChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Multiline property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RichTextBoxArray.
ParentChanged
I n this Article
Occurs when the control's Parent property changes.

public event EventHandler ParentChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Parent property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the user attempts to modify protected text in the control.
public event EventHandler Protected;
member [Link] : EventHandler

Remarks
You can create an event handler for this event in your applications to determine when the user has tried to modify text
that has been marked as protected in the control. The event handler can be used to notify the user that the text the user
is trying to modify is protected or to display a dialog box that enables the user to make appropriate changes to the text.
For example, if the protected area is a date, you can display a dialog box that enables the user to select a date that can
then be applied to the text of the control.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RichTextBox
[Link]
I n this Article
Occurs when an AccessibleObject is providing Help to accessibility applications.

public event [Link] QueryAccessibilityHelp;


member [Link] : [Link]

Remarks
You should use the HelpProvider class to enable users to invoke Help on your accessible object by pressing the F1 key.
The HelpProvider gives you complete information in the QueryAccessibilityHelpEventArgs.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RichTextBoxArray.
ReadOnlyChanged
I n this Article
Occurs when the value of the ReadOnly property changes.

public event EventHandler ReadOnlyChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ReadOnly property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RichTextBoxArray.
RegionChanged
I n this Article
Occurs when the value of the Region property changes.

public event EventHandler RegionChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Region property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
The ResetIndex method is not supported in the RichTextBoxArray class.

public void ResetIndex ([Link] o);


member [Link] : [Link] -> unit

Parameters
o RichTextBox RichTextBox
A Control.

Remarks
This method is not supported, and calling it does not raise an exception.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is resized.
public event EventHandler Resize;
member [Link] : EventHandler

Remarks
To determine the Size of the resized control, you can cast the sender parameter of the EventArgs data to a Control and
get its Size property (or Height and Width properties individually).
To handle custom layouts, use the Layout event instead of the Resize event. The Layout event is raised in response to
a Resize event, but also in response to other changes that affect the layout of the control.

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
RichTextBoxArray RichTextBoxArray
I n this Article

Overloads
RichTextBoxArray()
Initializes a new instance of the RichTextBoxArray class.

RichTextBoxArray(IContainer) RichTextBoxArray(IContainer)
Initializes a new instance of the RichTextBoxArray class,
specifying its container.

RichTextBoxArray()
Initializes a new instance of the RichTextBoxArray class.
public RichTextBoxArray ();

Remarks
When you instantiate a RichTextBoxArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

RichTextBoxArray(IContainer) RichTextBoxArray(IContainer)
Initializes a new instance of the RichTextBoxArray class, specifying its container.

public RichTextBoxArray ([Link] Container);


new [Link] : [Link] ->
[Link]

Parameters
Container IContainer IContainer
The IContainer where the control array will be hosted.
Remarks
When you instantiate a RichTextBoxArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RichTextBoxArray.
RightToLeftChanged
I n this Article
Occurs when the RightToLeftChanged property value changes.

public event EventHandler RightToLeftChanged;


member [Link] : EventHandler

Remarks
This event is raised if the RightToLeft property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RichTextBoxArray.
SelectionChanged
I n this Article
Occurs when the selection of text within the control has changed.

public event EventHandler SelectionChanged;


member [Link] : EventHandler

Remarks
You can create an event handler for this event to determine when the user has changed text selection in the control. An
event handler for this event can be used to keep text selected until the user has completed a task in the application.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Sets the index of the initial RichTextBox in a RichTextBoxArray.
public void SetIndex ([Link] o, short Index);
member [Link] : [Link] * int16 -> unit

Parameters
o RichTextBox RichTextBox
A RichTextBox in the control array.
Index Int16 Int16
A Short that represents the index of the specified RichTextBox.

Remarks
The SetIndex method should only be called when you are creating the initial element in the control array. To add
subsequent elements, call the Load method and specify the Index .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RichTextBoxArray.
ShouldSerializeIndex
I n this Article
Returns a value that indicates whether a RichTextBox is a member of this RichTextBoxArray.

public bool ShouldSerializeIndex ([Link] o);


member [Link] : [Link] -> bool

Parameters
o RichTextBox RichTextBox
A RichTextBox in the control array.
Returns
Boolean Boolean
true if o is a member of this control array; otherwise, false .

Remarks
If the specified RichTextBox is a member of a different RichTextBoxArray, ShouldSerializeIndex returns false .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Size property value changes.

public event EventHandler SizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Size property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control style changes.

public event EventHandler StyleChanged;


member [Link] : EventHandler

Remarks
The StyleChanged event occurs when ControlStyles flags have been added or changed.
This event is raised if the control style is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RichTextBox
[Link]
I n this Article
Occurs when the system colors change.

public event EventHandler SystemColorsChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SystemColors is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
IndexChanged
I n this Article
Occurs when the TabIndex property value changes.

public event EventHandler TabIndexChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabIndex property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
StopChanged
I n this Article
Occurs when the TabStop property value changes.

public event EventHandler TabStopChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabStop property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Text property value changes.

public event EventHandler TextChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Text property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is finished validating.
public event EventHandler Validated;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated

If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is validating.
public event [Link] Validating;
member [Link] : [Link]

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated
If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] RichTextBoxArray.
VisibleChanged
I n this Article
Occurs when the Visible property value changes.

public event EventHandler VisibleChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Visible property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the user clicks the vertical scroll bars of the control.
public event EventHandler VScroll;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
SaveFileDialogArray SaveFileDialogArray Class
Provides a control array of SaveFileDialog controls.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class SaveFileDialogArray : [Link],
[Link]
type SaveFileDialogArray = class
inherit BaseControlArray
interface IExtenderProvider

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component
BaseControlArray BaseControlArray

Remarks
The SaveFileDialogArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0
SaveFileDialog array. It does not provide the design-time features of a Visual Basic 6.0 control array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
SaveFileDialogArray()
SaveFileDialogArray()

Initializes a new instance of the SaveFileDialogArray class.

SaveFileDialogArray(IContainer)
SaveFileDialogArray(IContainer)

Initializes a new instance of the SaveFileDialogArray class, specifying its container.

Properties
Item[Int16]
Item[Int16]

Gets a specific element of a SaveFileDialogArray by index. Read-only.


Methods
CanExtend(Object)
CanExtend(Object)

Gets a value that determines whether a control is a member of a SaveFileDialogArray.

GetControlInstanceType()
GetControlInstanceType()

Overrides GetControlInstanceType().

GetIndex(SaveFileDialog)
GetIndex(SaveFileDialog)

Gets the index of a SaveFileDialog in a SaveFileDialogArray.

HookUpControlEvents(Object)
HookUpControlEvents(Object)

Overrides HookUpControlEvents(Object).

ResetIndex(SaveFileDialog)
ResetIndex(SaveFileDialog)

The ResetIndex method is not supported in the SaveFileDialogArray class.

SetIndex(SaveFileDialog, Int16)
SetIndex(SaveFileDialog, Int16)

Sets the index of the initial SaveFileDialog in a SaveFileDialogArray.

ShouldSerializeIndex(SaveFileDialog)
ShouldSerializeIndex(SaveFileDialog)

Returns a value that indicates whether a SaveFileDialog is a member of this SaveFileDialogArray.

Events
FileOk
FileOk

Occurs when the user clicks on the Open or Save button on a SaveFileDialog dialog box.

HelpRequest
HelpRequest

Occurs when the user clicks the Help button on a SaveFileDialog dialog box.
[Link] [Link]
Extend
I n this Article
Gets a value that determines whether a control is a member of a SaveFileDialogArray.

public bool CanExtend (object target);


abstract member CanExtend : obj -> bool
override [Link] : obj -> bool

Parameters
target Object Object
An OpenFileDialog control.
Returns
Boolean Boolean
true if target is a member of the control array; otherwise false .

Remarks
The CanExtend method can be used to determine whether a specific OpenFileDialog control is the base element of the
control array from which the other elements were cloned.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the user clicks on the Open or Save button on a SaveFileDialog dialog box.

public event [Link] FileOk;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] SaveFile
[Link]
I n this Article
Overrides GetControlInstanceType().

protected override Type GetControlInstanceType ();


override [Link] : unit -> Type

Returns
Type Type
The SaveFileDialogArray class is the base class for all control arrays that are used in applications upgraded from Visual
Basic 6.0. Because this class is not typically used to create an instance of the class, this Protected method is usually
not called directly but is instead called by a derived class.

Remarks
This method cannot be called from your application's code. Use the GetType method instead.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Index
I n this Article
Gets the index of a SaveFileDialog in a SaveFileDialogArray.

public short GetIndex ([Link] o);


member [Link] : [Link] -> int16

Parameters
o SaveFileDialog SaveFileDialog
A SaveFileDialog in the control array.
Returns
Int16 Int16
A Short that represents the index of the specified SaveFileDialog.

Remarks
This method can be used to retrieve the index for the specified SaveFileDialog.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] SaveFileDialogArray.
HelpRequest
I n this Article
Occurs when the user clicks the Help button on a SaveFileDialog dialog box.

public event EventHandler HelpRequest;


member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] SaveFile
[Link]
I n this Article
Overrides HookUpControlEvents(Object).

protected override void HookUpControlEvents (object o);


override [Link] : obj -> unit

Parameters
o Object Object
An Object.

Remarks
This method cannot be called from your application's code. Use AddHandler to hook up events for any controls that
are added by using the Load method.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link][Int16] SaveFileDialogArray.
Item[Int16]
I n this Article
Gets a specific element of a SaveFileDialogArray by index. Read-only.

public [Link] this[short Index] { get; }


member [Link](int16) : [Link]

Parameters
Index Int16 Int16
A Short that specifies the position of an element of the control array.
Returns
SaveFileDialog SaveFileDialog
A SaveFileDialog at the specified Index in the control array.

Remarks
The Item property is the default property for a control array. Therefore, the following lines of code are equivalent.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] SaveFileDialogArray.
ResetIndex
I n this Article
The ResetIndex method is not supported in the SaveFileDialogArray class.

public void ResetIndex ([Link] o);


member [Link] : [Link] -> unit

Parameters
o SaveFileDialog SaveFileDialog
A Control.

Remarks
This method is not supported, and calling it does not raise an exception.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
SaveFileDialogArray SaveFileDialogArray
I n this Article

Overloads
SaveFileDialogArray()
Initializes a new instance of the SaveFileDialogArray class.

SaveFileDialogArray(IContainer) SaveFileDialogArray(
IContainer) Initializes a new instance of the SaveFileDialogArray class,
specifying its container.

SaveFileDialogArray()
Initializes a new instance of the SaveFileDialogArray class.
public SaveFileDialogArray ();

Remarks
When you instantiate a SaveFileDialogArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

SaveFileDialogArray(IContainer) SaveFileDialogArray(IContainer)
Initializes a new instance of the SaveFileDialogArray class, specifying its container.

public SaveFileDialogArray ([Link] Container);


new [Link] : [Link] -
> [Link]

Parameters
Container IContainer IContainer
The IContainer where the control array will be hosted.
Remarks
When you instantiate a SaveFileDialogArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Index
I n this Article
Sets the index of the initial SaveFileDialog in a SaveFileDialogArray.

public void SetIndex ([Link] o, short Index);


member [Link] : [Link] * int16 -> unit

Parameters
o SaveFileDialog SaveFileDialog
A SaveFileDialog in the control array.
Index Int16 Int16
A Short that represents the index of the specified SaveFileDialog.

Remarks
The SetIndex method should only be called when you are creating the initial element in the control array. To add
subsequent elements, call the Load method and specify the Index .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] SaveFileDialog
[Link]
I n this Article
Returns a value that indicates whether a SaveFileDialog is a member of this SaveFileDialogArray.

public bool ShouldSerializeIndex ([Link] o);


member [Link] : [Link] -> bool

Parameters
o SaveFileDialog SaveFileDialog
A SaveFileDialog in the control array.
Returns
Boolean Boolean
true if o is a member of this control array; otherwise, false .

Remarks
If the specified SaveFileDialog is a member of a different SaveFileDialogArray, ShouldSerializeIndex returns false .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
ScaleMode ScaleMode Enum
Provides constants for compatibility with the ScaleMode constants in Visual Basic 6.0.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public enum ScaleMode
type ScaleMode =

I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum

Remarks
In Visual Basic 6.0, ScaleMode constants were used to represent various units of measurement for the ScaleMode
property. In Visual Basic, the ScaleMode property is no longer supported, and these constants are no longer necessary.
These constants enable code that has been upgraded from Visual Basic 6.0 to continue to run without additional
modification.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Fields
Centimeters Centimeters Equivalent to the Visual Basic 6.0 constant vbCentimeters .

Characters Characters Equivalent to the Visual Basic 6.0 constant vbCharacters .

Himetric Himetric Equivalent to the Visual Basic 6.0 constant vbHimetric .

Inches Inches Equivalent to the Visual Basic 6.0 constant vbInches .

Millimeters Millimeters Equivalent to the Visual Basic 6.0 constant vbMillimeters .

Points Points Equivalent to the Visual Basic 6.0 constant vbPoints .


ShiftConstants ShiftConstants Enum
Provides constants for compatibility with the shift parameter mask constants in Visual Basic 6.0.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public enum ShiftConstants
type ShiftConstants =

I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum

Remarks
In Visual Basic 6.0, shift parameter mask constants were used to represent the state of modifier keys in the Shift
parameter of various key and mouse event handlers. In Visual Basic, the parameters for key and mouse events have
changed, and these constants are no longer necessary. These constants enable code that has been upgraded from
Visual Basic 6.0 to continue to run without additional modification.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Fields
AltMask AltMask Equivalent to the Visual Basic 6.0 constant vbAltMask .

CtrlMask CtrlMask Equivalent to the Visual Basic 6.0 constant vbCtrlMask .

ShiftMask ShiftMask Equivalent to the Visual Basic 6.0 constant vbShiftMask .


SRDescriptionAttribute SRDescriptionAttribute Class
Provides an attribute for use in upgrading Visual Basic 6.0 applications to Visual Basic.

D eclaration
[[Link]([Link])]
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
[[Link](false)]
public sealed class SRDescriptionAttribute : [Link]
type SRDescriptionAttribute = class
inherit DescriptionAttribute

I nheritance H ierarchy
Object Object
Attribute Attribute
DescriptionAttribute DescriptionAttribute

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
SRDescriptionAttribute(String)
SRDescriptionAttribute(String)

Initializes an instance of an SRDescriptionAttribute.

Properties
Description
Description

Gets the string that contains the description for an SRDescriptionAttribute.


[Link] SRDescription
[Link]
I n this Article
Gets the string that contains the description for an SRDescriptionAttribute.

public override string Description { get; }


member [Link] : string

Returns
String String
A String that contains the description.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
SRDescriptionAttribute SRDescriptionAttribute
I n this Article
Initializes an instance of an SRDescriptionAttribute.
public SRDescriptionAttribute (string description);
new [Link] : string ->
[Link]

Parameters
description String String
A String that contains the description.

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
StatusBarArray StatusBarArray Class
Provides a control array of StatusBar controls

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class StatusBarArray : [Link],
[Link]
type StatusBarArray = class
inherit BaseControlArray
interface IExtenderProvider

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component
BaseControlArray BaseControlArray

Remarks
The StatusBarArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0 StatusBar
control array. It does not provide the design-time features of a Visual Basic 6.0 control array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
StatusBarArray()
StatusBarArray()

Initializes a new instance of the StatusBarArray class.

StatusBarArray(IContainer)
StatusBarArray(IContainer)

Initializes a new instance of the StatusBarArray class, specifying its container.

Properties
Item[Int16]
Item[Int16]

Gets a specific element of a StatusBarArray by index. Read-only.


Methods
CanExtend(Object)
CanExtend(Object)

Gets a value that determines whether a control is a member of a StatusBarArray.

GetControlInstanceType()
GetControlInstanceType()

Overrides GetControlInstanceType().

GetIndex(StatusBar)
GetIndex(StatusBar)

Gets the index of a StatusBar in a StatusBarArray.

HookUpControlEvents(Object)
HookUpControlEvents(Object)

Overrides HookUpControlEvents(Object).

ResetIndex(StatusBar)
ResetIndex(StatusBar)

The ResetIndex method is not supported in the StatusBarArray class.

SetIndex(StatusBar, Int16)
SetIndex(StatusBar, Int16)

Sets the index of the initial StatusBar in a StatusBarArray.

ShouldSerializeIndex(StatusBar)
ShouldSerializeIndex(StatusBar)

Returns a value that indicates whether a StatusBar is a member of this StatusBarArray.

Events
BindingContextChanged
BindingContextChanged

Occurs when the value of the BindingContext property changes.

CausesValidationChanged
CausesValidationChanged

Occurs when the value of the CausesValidation property changes.

ChangeUICues
ChangeUICues

Occurs when the focus or keyboard user interface (UI) cues change.

Click
Click

Occurs when a StatusBar in a StatusBarArray is clicked.

ClientSizeChanged
ClientSizeChanged

Occurs when the value of the ClientSize property changes.

ContextMenuChanged
ContextMenuChanged

Occurs when the value of the ContextMenu property changes.

ContextMenuStripChanged
ContextMenuStripChanged

Occurs when the value of the ContextMenuStrip property changes.

ControlAdded
ControlAdded

Occurs when a new control is added to the [Link].

ControlRemoved
ControlRemoved

Occurs when a control is removed from the [Link].

CursorChanged
CursorChanged

Occurs when the value of the Cursor property changes.


DockChanged
DockChanged

Occurs when the value of the Dock property changes.

DoubleClick
DoubleClick

Occurs when a StatusBar control in a StatusBarArray is double-clicked.

DragDrop
DragDrop

Occurs when a drag-and-drop operation is completed.

DragEnter
DragEnter

Occurs when an object is dragged into the control's bounds.

DragLeave
DragLeave

Occurs when an object is dragged out of the control's bounds.

DragOver
DragOver

Occurs when an object is dragged over the control's bounds.

DrawItem
DrawItem

Occurs when a visual aspect of an owner-drawn StatusBar control changes.

EnabledChanged
EnabledChanged

Occurs when the value of the Enabled property changes.

Enter
Enter

Occurs when the control is entered.


FontChanged
FontChanged

Occurs when the value of the Font property changes.

GiveFeedback
GiveFeedback

Occurs during a drag operation.

HelpRequested
HelpRequested

Occurs when the user requests help for a control.

KeyDown
KeyDown

Occurs when a key is pressed and the control has focus.

KeyPress
KeyPress

Occurs when a key is pressed and the control has focus.

KeyUp
KeyUp

Occurs when a key is released and the control has focus.

Layout
Layout

Occurs when a control should reposition its child controls.

Leave
Leave

Occurs when the input focus leaves the control.

LocationChanged
LocationChanged

Occurs when the value of the Location property changes.


MarginChanged
MarginChanged

Occurs when the value of the Margin property changes.

MouseCaptureChanged
MouseCaptureChanged

Occurs when the control loses or gains mouse capture.

MouseClick
MouseClick

Occurs when the control is clicked by the mouse.

MouseDoubleClick
MouseDoubleClick

Occurs when the control is double-clicked by the mouse.

MouseDown
MouseDown

Occurs when the mouse pointer is over the control and a mouse button is pressed.

MouseEnter
MouseEnter

Occurs when the mouse pointer enters the control.

MouseHover
MouseHover

Occurs when the mouse pointer rests on the control.

MouseLeave
MouseLeave

Occurs when the mouse pointer leaves the control.

MouseMove
MouseMove

Occurs when the mouse pointer is moved over the control.


MouseUp
MouseUp

Occurs when the mouse pointer is over the control and a mouse button is released.

Move
Move

Occurs when the control is moved.

PaddingChanged
PaddingChanged

Occurs when the control's Padding property changes.

PanelClick
PanelClick

Occurs when a StatusBarPanel object on a StatusBar control is clicked.

ParentChanged
ParentChanged

Occurs when the control's Parent property changes.

QueryAccessibilityHelp
QueryAccessibilityHelp

Occurs when an AccessibleObject is providing Help to accessibility applications.

QueryContinueDrag
QueryContinueDrag

Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.

RegionChanged
RegionChanged

Occurs when the value of the Region property changes.

Resize
Resize

Occurs when the control is resized.


RightToLeftChanged
RightToLeftChanged

Occurs when the RightToLeft property changes.

SizeChanged
SizeChanged

Occurs when the Size property value changes.

StyleChanged
StyleChanged

Occurs when the control style changes.

SystemColorsChanged
SystemColorsChanged

Occurs when the system colors change.

TabIndexChanged
TabIndexChanged

Occurs when the TabIndex property value changes.

TabStopChanged
TabStopChanged

Occurs when the TabStop property value changes.

TextChanged
TextChanged

Occurs when the Text property value changes.

Validated
Validated

Occurs when the control is finished validating.

Validating
Validating

Occurs when the control is validating.


VisibleChanged
VisibleChanged

Occurs when the Visible property value changes.


[Link] StatusBarArray.
BindingContextChanged
I n this Article
Occurs when the value of the BindingContext property changes.

public event EventHandler BindingContextChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BindingContext property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets a value that determines whether a control is a member of a StatusBarArray.
public bool CanExtend (object target);
abstract member CanExtend : obj -> bool
override [Link] : obj -> bool

Parameters
target Object Object
A StatusBar control.
Returns
Boolean Boolean
true if target is a member of the control array; otherwise, false .

Remarks
The CanExtend method can be used to determine whether a specific StatusBar control is the base element of the
control array from which the other elements were cloned.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] StatusBarArray.
CausesValidationChanged
I n this Article
Occurs when the value of the CausesValidation property changes.

public event EventHandler CausesValidationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the CausesValidation property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Cues
I n this Article
Occurs when the focus or keyboard user interface (UI) cues change.

public event [Link] ChangeUICues;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a StatusBar in a StatusBarArray is clicked.
public event EventHandler Click;
member [Link] : EventHandler

Remarks
The Click event passes an EventArgs to its event handler. Therefore it only indicates that a click has occurred. If you
need more specific mouse information (button, number of clicks, wheel rotation, or location), use the MouseClick event.
However, the MouseClick event will not be raised if the click is caused by action other than that of the mouse, such as
pressing the ENTER key.
A double-click is determined by the mouse settings of the user's operating system. The user can set the time between
clicks of a mouse button that should be considered a double-click instead of two clicks. The Click event is raised every
time that a control is double-clicked. For example, if you have event handlers for the Click and DoubleClick events of
a control, the Click and DoubleClick events are raised when the control is double-clicked and both methods are
called. If a control is double-clicked and that control does not support the DoubleClick event, the Click event might be
raised two times.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
SizeChanged
I n this Article
Occurs when the value of the ClientSize property changes.

public event EventHandler ClientSizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ClientSize property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] StatusBarArray.
ContextMenuChanged
I n this Article
Occurs when the value of the ContextMenu property changes.

[[Link](false)]
public event EventHandler ContextMenuChanged;
member [Link] : EventHandler

Attributes BrowsableAttribute

Remarks
This event is raised if the ContextMenu property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] StatusBar
[Link]
I n this Article
Occurs when the value of the ContextMenuStrip property changes.

public event EventHandler ContextMenuStripChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ContextMenuStrip property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Added
I n this Article
Occurs when a new control is added to the [Link].

public event [Link] ControlAdded;


member [Link] : [Link]

Remarks
This event is raised if the ContextMenuStrip property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Removed
I n this Article
Occurs when a control is removed from the [Link].

public event [Link] ControlRemoved;


member [Link] : [Link]

Remarks
This event is raised if the ContextMenuStrip property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Cursor property changes.

public event EventHandler CursorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Cursor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Dock property changes.

public event EventHandler DockChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Dock property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a StatusBar control in a StatusBarArray is double-clicked.
public event EventHandler DoubleClick;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a drag-and-drop operation is completed.
public event [Link] DragDrop;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged into the control's bounds.
public event [Link] DragEnter;
member [Link] : [Link]

Remarks
The DragEnter event is raised when the user first drags the mouse cursor over the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged out of the control's bounds.
public event EventHandler DragLeave;
member [Link] : EventHandler

Remarks
The DragLeave event is raised when the user drags the cursor out of the control or the user cancels the current drag-
and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged over the control's bounds.
public event [Link] DragOver;
member [Link] : [Link]

Remarks
The DragOver event is raised when the mouse cursor moves within the bounds of the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a visual aspect of an owner-drawn StatusBar control changes.
public event [Link] DrawItem;
member [Link] : [Link]

Remarks
You can use this event to perform drawing operations in an owner-drawn StatusBar control.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Enabled property changes.

public event EventHandler EnabledChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Enabled property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is entered.
public event EventHandler Enter;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Font property changes.

public event EventHandler FontChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Font property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] StatusBarArray.
GetControlInstanceType
I n this Article
Overrides GetControlInstanceType().

protected override Type GetControlInstanceType ();


override [Link] : unit -> Type

Returns
Type Type
The type of a control in a control array.

Remarks
This method cannot be called from your application's code. Use the GetType method instead.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the index of a StatusBar in a StatusBarArray.
public short GetIndex ([Link] o);
member [Link] : [Link] -> int16

Parameters
o StatusBar StatusBar
A StatusBar in the control array.
Returns
Int16 Int16
A Short that represents the index of the specified StatusBar.

Remarks
This method can be used to retrieve the index for the specified StatusBar.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Feedback
I n this Article
Occurs during a drag operation.

public event [Link] GiveFeedback;


member [Link] : [Link]

Remarks
The GiveFeedback event is raised when a drag-and-drop operation is started. With the GiveFeedback event, the
source of a drag event can modify the appearance of the mouse pointer in order to give the user visual feedback during
a drag-and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Requested
I n this Article
Occurs when the user requests help for a control.

public event [Link] HelpRequested;


member [Link] : [Link]

Remarks
The HelpRequested event is typically raised when the user presses the F1 key or an associated context-sensitive Help
button is clicked.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] StatusBarArray.
HookUpControlEvents
I n this Article
Overrides HookUpControlEvents(Object).

protected override void HookUpControlEvents (object o);


override [Link] : obj -> unit

Parameters
o Object Object
An Object.

Remarks
This method cannot be called from your application's code. Use AddHandler to hook up events for any controls that
are added by using the Load method.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link][Int16] [Link][Int16]
I n this Article
Gets a specific element of a StatusBarArray by index. Read-only.
public [Link] this[short Index] { get; }
member [Link](int16) : [Link]

Parameters
Index Int16 Int16
A Short that specifies the position of an element of the control array.
Returns
StatusBar StatusBar
A StatusBar at the specified Index in the control array.

Remarks
The Item property is the default property for a control array. Therefore, the following lines of code are equivalent.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is pressed and the control has focus.
public event [Link] KeyDown;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown

KeyPress
KeyUp
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is pressed and the control has focus.
public event [Link] KeyPress;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress

KeyUp
The KeyPress event is not raised by noncharacter keys; however, the noncharacter keys do raise the KeyDown and
KeyUp events.
Use the KeyChar property to sample keystrokes at run time and to consume or modify a subset of common keystrokes.
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is released and the control has focus.
public event [Link] KeyUp;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress
KeyUp

To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a control should reposition its child controls.
public event [Link] Layout;
member [Link] : [Link]

Remarks
The Layout event occurs when child controls are added or removed, when the bounds of the control changes, and
when other changes occur that can affect the layout of the control. The layout event can be suppressed by using the
SuspendLayout and ResumeLayout methods. Suspending layout enables you to perform multiple actions on a control
without having to perform a layout for each change. For example, if you resize and move a control, each operation
would raise a Layout event.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the input focus leaves the control.
public event EventHandler Leave;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), or by calling the Select or
SelectNextControl method, focus events occur in the following order:
Enter
GotFocus
Leave

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] StatusBarArray.
LocationChanged
I n this Article
Occurs when the value of the Location property changes.

public event EventHandler LocationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Location property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Margin property changes.

public event EventHandler MarginChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Margin property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] StatusBarArray.
MouseCaptureChanged
I n this Article
Occurs when the control loses or gains mouse capture.

public event EventHandler MouseCaptureChanged;


member [Link] : EventHandler

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown
Click
MouseClick

MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate an MouseDoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a control. They are often raised by other actions, such as pressing the
ENTER key when the control has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is clicked by the mouse.
public event [Link] MouseClick;
member [Link] : [Link]

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown
Click
MouseClick

MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate a MouseDoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a shape. They are often raised by other actions, such as pressing the
ENTER key when the shape has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
DoubleClick
I n this Article
Occurs when the control is double-clicked by the mouse.

public event [Link] MouseDoubleClick;


member [Link] : [Link]

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown
Click
MouseClick
MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate a DoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a shape. They are often raised by other actions, such as pressing the
ENTER key when the shape has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is pressed.
public event [Link] MouseDown;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer enters the control.
public event EventHandler MouseEnter;
member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter

MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer rests on the control.
public event EventHandler MouseHover;
member [Link] : EventHandler

Remarks
A typical use of MouseHover is to display a tool tip when the mouse pauses on a control within a specified area around
the control (the "hover rectangle"). The pause required for this event to be raised is specified in milliseconds by the
MouseHoverTime property.
The MouseHover event is defined and detected in connection with the MouseHoverSize and MouseHoverTime
properties.
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer leaves the control.
public event EventHandler MouseLeave;
member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is moved over the control.
public event [Link] MouseMove;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove

MouseHover / MouseDown / MouseWheel


MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is released.
public event [Link] MouseUp;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp

MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is moved.
public event EventHandler Move;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control's Padding property changes.

public event EventHandler PaddingChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Padding property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a StatusBarPanel object on a StatusBar control is clicked.
public event [Link] PanelClick;
member [Link] : [Link]

Remarks
You can use this event to perform tasks when a panel within a StatusBar control is clicked.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control's Parent property changes.

public event EventHandler ParentChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Parent property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] StatusBarArray.
QueryAccessibilityHelp
I n this Article
Occurs when an AccessibleObject is providing Help to accessibility applications.

public event [Link] QueryAccessibilityHelp;


member [Link] : [Link]

Remarks
You should use the HelpProvider class to enable users to invoke Help on your accessible object by pressing the F1 key.
The HelpProvider gives you complete information in the QueryAccessibilityHelpEventArgs.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] StatusBarArray.
QueryContinueDrag
I n this Article
Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.
public event [Link] QueryContinueDrag;
member [Link] : [Link]

Remarks
The QueryContinueDrag event is raised when there is a change in the keyboard or mouse button state during a drag-
and-drop operation. The QueryContinueDrag event enables the drag source to determine whether the drag-and-drop
operation should be canceled.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Region property changes.

public event EventHandler RegionChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Region property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
The ResetIndex method is not supported in the StatusBarArray class.

public void ResetIndex ([Link] o);


member [Link] : [Link] -> unit

Parameters
o StatusBar StatusBar
A Control.

Remarks
This method is not supported, and calling it does not raise an exception.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is resized.
public event EventHandler Resize;
member [Link] : EventHandler

Remarks
To determine the Size of the resized control, you can cast the sender parameter of the EventArgs data to a Control and
get its Size property (or Height and Width properties individually).
To handle custom layouts, use the Layout event instead of the Resize event. The Layout event is raised in response to
a Resize event, but also in response to other changes that affect the layout of the control.

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ToLeftChanged
I n this Article
Occurs when the RightToLeft property changes.

public event EventHandler RightToLeftChanged;


member [Link] : EventHandler

Remarks
This event is raised if the RightToLeft property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Sets the index of the initial StatusBar in a StatusBarArray.
public void SetIndex ([Link] o, short Index);
member [Link] : [Link] * int16 -> unit

Parameters
o StatusBar StatusBar
A StatusBar in the control array.
Index Int16 Int16
A Short that represents the index of the specified StatusBar.

Remarks
The SetIndex method should only be called when you are creating the initial element in the control array. To add
subsequent elements, call the Load method and specify the Index .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] StatusBarArray.
ShouldSerializeIndex
I n this Article
Returns a value that indicates whether a StatusBar is a member of this StatusBarArray.

public bool ShouldSerializeIndex ([Link] o);


member [Link] : [Link] -> bool

Parameters
o StatusBar StatusBar
A StatusBar in the control array.
Returns
Boolean Boolean
true if o is a member of this control array; otherwise, false .

Remarks
If the specified StatusBar is a member of a different StatusBarArray, ShouldSerializeIndex returns false .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Size property value changes.

public event EventHandler SizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Size property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
StatusBarArray StatusBarArray
I n this Article

Overloads
StatusBarArray()
Initializes a new instance of the StatusBarArray class.

StatusBarArray(IContainer) StatusBarArray(IContainer)
Initializes a new instance of the StatusBarArray class, specifying
its container.

StatusBarArray()
Initializes a new instance of the StatusBarArray class.
public StatusBarArray ();

Remarks
When you instantiate a StatusBarArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

StatusBarArray(IContainer) StatusBarArray(IContainer)
Initializes a new instance of the StatusBarArray class, specifying its container.

public StatusBarArray ([Link] Container);


new [Link] : [Link] ->
[Link]

Parameters
Container IContainer IContainer
The IContainer where the control array will be hosted.
Remarks
When you instantiate a StatusBarArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control style changes.

public event EventHandler StyleChanged;


member [Link] : EventHandler

Remarks
The StyleChanged event occurs when ControlStyles flags have been added or changed.
This event is raised if the control style is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] StatusBarArray.
SystemColorsChanged
I n this Article
Occurs when the system colors change.

public event EventHandler SystemColorsChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SystemColors is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
IndexChanged
I n this Article
Occurs when the TabIndex property value changes.

public event EventHandler TabIndexChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabIndex property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the TabStop property value changes.

public event EventHandler TabStopChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabStop property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the Text property value changes.
public event EventHandler TextChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Text property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is finished validating.
public event EventHandler Validated;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated

If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is validating.
public event [Link] Validating;
member [Link] : [Link]

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated
If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Visible property value changes.

public event EventHandler VisibleChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Visible property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
StatusStripArray StatusStripArray Class
Provides a control array of StatusStrip controls

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class StatusStripArray : [Link],
[Link]
type StatusStripArray = class
inherit BaseControlArray
interface IExtenderProvider

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component
BaseControlArray BaseControlArray

Remarks
The StatusStripArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0 StatusBar
control array. It does not provide the design-time features of a Visual Basic 6.0 control array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
StatusStripArray()
StatusStripArray()

Initializes a new instance of the StatusStripArray class.

StatusStripArray(IContainer)
StatusStripArray(IContainer)

Initializes a new instance of the StatusStripArray class, specifying its container.

Properties
Item[Int16]
Item[Int16]

Gets a specific element of a StatusStripArray by index. Read-only.


Methods
CanExtend(Object)
CanExtend(Object)

Gets a value that determines whether a control is a member of a StatusStripArray.

GetControlInstanceType()
GetControlInstanceType()

Overrides GetControlInstanceType().

GetIndex(StatusStrip)
GetIndex(StatusStrip)

Gets the index of a StatusStrip in a StatusStripArray.

HookUpControlEvents(Object)
HookUpControlEvents(Object)

Overrides HookUpControlEvents(Object).

ResetIndex(StatusStrip)
ResetIndex(StatusStrip)

The ResetIndex method is not supported in the StatusStripArray class.

SetIndex(StatusStrip, Int16)
SetIndex(StatusStrip, Int16)

Sets the index of the initial StatusStrip in a StatusStripArray.

ShouldSerializeIndex(StatusStrip)
ShouldSerializeIndex(StatusStrip)

Returns a value that indicates whether a StatusStrip is a member of this StatusStripArray.

Events
AutoSizeChanged
AutoSizeChanged

Occurs when the value of the AutoSize property changes.

BackColorChanged
BackColorChanged

Occurs when the value of the BackColor property changes.

BackgroundImageChanged
BackgroundImageChanged

Occurs when the value of the BackgroundImage property changes.

BackgroundImageLayoutChanged
BackgroundImageLayoutChanged

Occurs when the value of the BackgroundImageLayout property changes.

BeginDrag
BeginDrag

Occurs when the user begins to drag the StatusStrip control.

BindingContextChanged
BindingContextChanged

Occurs when the value of the BindingContext property changes.

ChangeUICues
ChangeUICues

Occurs when the focus or keyboard user interface (UI) cues change.

Click
Click

Occurs when a StatusStrip in a StatusStripArray is clicked.

ClientSizeChanged
ClientSizeChanged

Occurs when the value of the ClientSize property changes.

ContextMenuChanged
ContextMenuChanged

Occurs when the value of the ContextMenu property changes.


ContextMenuStripChanged
ContextMenuStripChanged

Occurs when the value of the ContextMenuStrip property changes.

DockChanged
DockChanged

Occurs when the value of the Dock property changes.

DoubleClick
DoubleClick

Occurs when a StatusStrip control in a StatusStripArray is double-clicked.

DragDrop
DragDrop

Occurs when a drag-and-drop operation is completed.

DragEnter
DragEnter

Occurs when an object is dragged into the control's bounds.

DragLeave
DragLeave

Occurs when an object is dragged out of the control's bounds.

DragOver
DragOver

Occurs when an object is dragged over the control's bounds.

EnabledChanged
EnabledChanged

Occurs when the value of the Enabled property changes.

EndDrag
EndDrag

Occurs when the user stops dragging the StatusStrip control.


Enter
Enter

Occurs when the control is entered.

FontChanged
FontChanged

Occurs when the value of the Font property changes.

GiveFeedback
GiveFeedback

Occurs during a drag operation.

HelpRequested
HelpRequested

Occurs when the user requests help for a control.

ImeModeChanged
ImeModeChanged

Occurs when the value of the ImeMode property changes.

ItemAdded
ItemAdded

Occurs when a new ToolStripItem is added to the ToolStripItemCollection.

ItemClicked
ItemClicked

Occurs when the ToolStripItem is clicked.

ItemRemoved
ItemRemoved

Occurs when a ToolStripItem is removed from the ToolStripItemCollection.

KeyDown
KeyDown

Occurs when a key is pressed and the control has focus.


KeyPress
KeyPress

Occurs when a key is pressed and the control has focus.

KeyUp
KeyUp

Occurs when a key is released and the control has focus.

Layout
Layout

Occurs when a control should reposition its child controls.

LayoutCompleted
LayoutCompleted

Occurs when the layout of the StatusStrip is complete.

LayoutStyleChanged
LayoutStyleChanged

Occurs when the value of the LayoutStyle property changes.

Leave
Leave

Occurs when the input focus leaves the control.

LocationChanged
LocationChanged

Occurs when the value of the Location property changes.

MarginChanged
MarginChanged

Occurs when the value of the Margin property changes.

MouseCaptureChanged
MouseCaptureChanged

Occurs when the control loses or gains mouse capture.


MouseClick
MouseClick

Occurs when the control is clicked by the mouse.

MouseDoubleClick
MouseDoubleClick

Occurs when the control is double-clicked by the mouse.

MouseDown
MouseDown

Occurs when the mouse pointer is over the control and a mouse button is pressed.

MouseEnter
MouseEnter

Occurs when the mouse pointer enters the control.

MouseHover
MouseHover

Occurs when the mouse pointer rests on the control.

MouseLeave
MouseLeave

Occurs when the mouse pointer leaves the control.

MouseMove
MouseMove

Occurs when the mouse pointer is moved over the control.

MouseUp
MouseUp

Occurs when the mouse pointer is over the control and a mouse button is released.

Move
Move

Occurs when the control is moved.


Paint
Paint

Occurs when the control is redrawn.

PaintGrip
PaintGrip

Occurs when the StatusStrip move handle is painted.

ParentChanged
ParentChanged

Occurs when the control's Parent property changes.

QueryAccessibilityHelp
QueryAccessibilityHelp

Occurs when an AccessibleObject is providing Help to accessibility applications.

QueryContinueDrag
QueryContinueDrag

Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.

RegionChanged
RegionChanged

Occurs when the value of the Region property changes.

Resize
Resize

Occurs when the control is resized.

RightToLeftChanged
RightToLeftChanged

Occurs when the RightToLeftChanged property value changes.

Scroll
Scroll

Occurs when the user or code scrolls through the client area.
SizeChanged
SizeChanged

Occurs when the Size property value changes.

StyleChanged
StyleChanged

Occurs when the control style changes.

SystemColorsChanged
SystemColorsChanged

Occurs when the system colors change.

TabIndexChanged
TabIndexChanged

Occurs when the TabIndex property value changes.

TabStopChanged
TabStopChanged

Occurs when the TabStop property value changes.

TextChanged
TextChanged

Occurs when the Text property value changes.

Validated
Validated

Occurs when the control is finished validating.

Validating
Validating

Occurs when the control is validating.

VisibleChanged
VisibleChanged

Occurs when the Visible property value changes.


[Link] [Link]
SizeChanged
I n this Article
Occurs when the value of the AutoSize property changes.

public event EventHandler AutoSizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the AutoSize property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] StatusStripArray.
BackColorChanged
I n this Article
Occurs when the value of the BackColor property changes.

public event EventHandler BackColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BackColor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] StatusStrip
[Link]
I n this Article
Occurs when the value of the BackgroundImage property changes.

public event EventHandler BackgroundImageChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BackgroundImage property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link]
[Link]
I n this Article
Occurs when the value of the BackgroundImageLayout property changes.

public event EventHandler BackgroundImageLayoutChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BackgroundImageLayout property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the user begins to drag the StatusStrip control.
public event EventHandler BeginDrag;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] StatusStrip
[Link]
I n this Article
Occurs when the value of the BindingContext property changes.

public event EventHandler BindingContextChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BindingContext property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets a value that determines whether a control is a member of a StatusStripArray.
public bool CanExtend (object target);
abstract member CanExtend : obj -> bool
override [Link] : obj -> bool

Parameters
target Object Object
A StatusStrip control.
Returns
Boolean Boolean
true if target is a member of the control array; otherwise false .

Remarks
The CanExtend method can be used to determine whether a specific StatusStrip control is the base element of the
control array from which the other elements were cloned.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
UICues
I n this Article
Occurs when the focus or keyboard user interface (UI) cues change.

public event [Link] ChangeUICues;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a StatusStrip in a StatusStripArray is clicked.
public event EventHandler Click;
member [Link] : EventHandler

Remarks
The Click event passes a EventArgs to its event handler. Therefore it only indicates that a click has occurred. If you
need more specific mouse information (button, number of clicks, wheel rotation, or location), use the MouseClick event.
However, the MouseClick event will not be raised if the click is caused by action other than that of the mouse, such as
pressing the ENTER key.
A double-click is determined by the mouse settings of the user's operating system. The user can set the time between
clicks of a mouse button that should be considered a double-click instead of two clicks. The Click event is raised every
time that a control is double-clicked. For example, if you have event handlers for the Click and DoubleClick events of
a control, the Click and DoubleClick events are raised when the control is double-clicked and both methods are
called. If a control is double-clicked and that control does not support the DoubleClick event, the Click event might be
raised two times.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] StatusStripArray.
ClientSizeChanged
I n this Article
Occurs when the value of the ClientSize property changes.

public event EventHandler ClientSizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ClientSize property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] StatusStripArray.
ContextMenuChanged
I n this Article
Occurs when the value of the ContextMenu property changes.

[[Link](false)]
public event EventHandler ContextMenuChanged;
member [Link] : EventHandler

Attributes BrowsableAttribute

Remarks
This event is raised if the ContextMenu property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] StatusStrip
[Link]
I n this Article
Occurs when the value of the ContextMenuStrip property changes.

public event EventHandler ContextMenuStripChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ContextMenuStrip property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Dock property changes.

public event EventHandler DockChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Dock property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Click
I n this Article
Occurs when a StatusStrip control in a StatusStripArray is double-clicked.

public event EventHandler DoubleClick;


member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a drag-and-drop operation is completed.
public event [Link] DragDrop;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged into the control's bounds.
public event [Link] DragEnter;
member [Link] : [Link]

Remarks
The DragEnter event is raised when the user first drags the mouse cursor over the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged out of the control's bounds.
public event EventHandler DragLeave;
member [Link] : EventHandler

Remarks
The DragLeave event is raised when the user drags the cursor out of the control or the user cancels the current drag-
and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged over the control's bounds.
public event [Link] DragOver;
member [Link] : [Link]

Remarks
The DragOver event is raised when the mouse cursor moves within the bounds of the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] StatusStripArray.
EnabledChanged
I n this Article
Occurs when the value of the Enabled property changes.

public event EventHandler EnabledChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Enabled property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the user stops dragging the StatusStrip control.
public event EventHandler EndDrag;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is entered.
public event EventHandler Enter;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Font property changes.

public event EventHandler FontChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Font property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] StatusStrip
[Link]
I n this Article
Overrides GetControlInstanceType().

protected override Type GetControlInstanceType ();


override [Link] : unit -> Type

Returns
Type Type
The type of a control in a control array.

Remarks
This method cannot be called from your application's code. Use the GetType method instead.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the index of a StatusStrip in a StatusStripArray.
public short GetIndex ([Link] o);
member [Link] : [Link] -> int16

Parameters
o StatusStrip StatusStrip
A StatusStrip in the control array.
Returns
Int16 Int16
A Short that represents the index of the specified StatusStrip.

Remarks
This method can be used to retrieve the index for the specified StatusStrip.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Feedback
I n this Article
Occurs during a drag operation.

public event [Link] GiveFeedback;


member [Link] : [Link]

Remarks
The GiveFeedback event is raised when a drag-and-drop operation is started. With the GiveFeedback event, the
source of a drag event can modify the appearance of the mouse pointer in order to give the user visual feedback during
a drag-and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Requested
I n this Article
Occurs when the user requests help for a control.

public event [Link] HelpRequested;


member [Link] : [Link]

Remarks
The HelpRequested event is typically raised when the user presses the F1 key or an associated context-sensitive Help
button is clicked.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] StatusStripArray.
HookUpControlEvents
I n this Article
Overrides HookUpControlEvents(Object).

protected override void HookUpControlEvents (object o);


override [Link] : obj -> unit

Parameters
o Object Object
A Object.

Remarks
This method cannot be called from your application's code. Use AddHandler to hook up events for any controls that
are added by using the Load method.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ModeChanged
I n this Article
Occurs when the value of the ImeMode property changes.

public event EventHandler ImeModeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ImeMode property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link][Int16] [Link][Int16]
I n this Article
Gets a specific element of a StatusStripArray by index. Read-only.
public [Link] this[short Index] { get; }
member [Link](int16) : [Link]

Parameters
Index Int16 Int16
A Short that specifies the position of an element of the control array.
Returns
StatusStrip StatusStrip
A StatusStrip at the specified Index in the control array.

Remarks
The Item property is the default property for a control array. Therefore, the following lines of code are equivalent.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a new ToolStripItem is added to the ToolStripItemCollection.
public event [Link] ItemAdded;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Clicked
I n this Article
Occurs when the ToolStripItem is clicked.

public event [Link] ItemClicked;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Removed
I n this Article
Occurs when a ToolStripItem is removed from the ToolStripItemCollection.

public event [Link] ItemRemoved;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is pressed and the control has focus.
public event [Link] KeyDown;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown

KeyPress
KeyUp
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is pressed and the control has focus.
public event [Link] KeyPress;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress

KeyUp
The KeyPress event is not raised by noncharacter keys; however, the noncharacter keys do raise the KeyDown and
KeyUp events.
Use the KeyChar property to sample keystrokes at run time and to consume or modify a subset of common keystrokes.
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is released and the control has focus.
public event [Link] KeyUp;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress
KeyUp

To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a control should reposition its child controls.
public event [Link] Layout;
member [Link] : [Link]

Remarks
The Layout event occurs when child controls are added or removed, when the bounds of the control changes, and
when other changes occur that can affect the layout of the control. The layout event can be suppressed by using the
SuspendLayout and ResumeLayout methods. Suspending layout enables you to perform multiple actions on a control
without having to perform a layout for each change. For example, if you resize and move a control, each operation
would raise a Layout event.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] StatusStripArray.
LayoutCompleted
I n this Article
Occurs when the layout of the StatusStrip is complete.

public event EventHandler LayoutCompleted;


member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] StatusStripArray.
LayoutStyleChanged
I n this Article
Occurs when the value of the LayoutStyle property changes.

public event EventHandler LayoutStyleChanged;


member [Link] : EventHandler

Remarks
This event is raised if the LayoutStyle property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the input focus leaves the control.
public event EventHandler Leave;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), or by calling the Select or
SelectNextControl method, focus events occur in the following order:
Enter
GotFocus
Leave

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] StatusStripArray.
LocationChanged
I n this Article
Occurs when the value of the Location property changes.

public event EventHandler LocationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Location property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Margin property changes.

public event EventHandler MarginChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Margin property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] StatusStrip
[Link]
I n this Article
Occurs when the control loses or gains mouse capture.

public event EventHandler MouseCaptureChanged;


member [Link] : EventHandler

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown
Click
MouseClick

MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate an MouseDoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a control. They are often raised by other actions, such as pressing the
ENTER key when the control has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is clicked by the mouse.
public event [Link] MouseClick;
member [Link] : [Link]

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown
Click
MouseClick

MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate a MouseDoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a shape. They are often raised by other actions, such as pressing the
ENTER key when the shape has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] StatusStripArray.
MouseDoubleClick
I n this Article
Occurs when the control is double-clicked by the mouse.

public event [Link] MouseDoubleClick;


member [Link] : [Link]

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown
Click
MouseClick
MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate a DoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a shape. They are often raised by other actions, such as pressing the
ENTER key when the shape has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Down
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is pressed.

public event [Link] MouseDown;


member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel

MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Enter
I n this Article
Occurs when the mouse pointer enters the control.

public event EventHandler MouseEnter;


member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter

MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Hover
I n this Article
Occurs when the mouse pointer rests on the control.

public event EventHandler MouseHover;


member [Link] : EventHandler

Remarks
A typical use of MouseHover is to display a tool tip when the mouse pauses on a control within a specified area around
the control (the "hover rectangle"). The pause required for this event to be raised is specified in milliseconds by the
MouseHoverTime property.
The MouseHover event is defined and detected in connection with the MouseHoverSize and MouseHoverTime
properties.
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Leave
I n this Article
Occurs when the mouse pointer leaves the control.

public event EventHandler MouseLeave;


member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Move
I n this Article
Occurs when the mouse pointer is moved over the control.

public event [Link] MouseMove;


member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove

MouseHover / MouseDown / MouseWheel


MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is released.
public event [Link] MouseUp;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp

MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is moved.
public event EventHandler Move;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is redrawn.
public event [Link] Paint;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the StatusStrip move handle is painted.
public event [Link] PaintGrip;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control's Parent property changes.

public event EventHandler ParentChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Parent property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] StatusStripArray.
QueryAccessibilityHelp
I n this Article
Occurs when an AccessibleObject is providing Help to accessibility applications.

public event [Link] QueryAccessibilityHelp;


member [Link] : [Link]

Remarks
You should use the HelpProvider class to enable users to invoke Help on your accessible object by pressing the F1 key.
The HelpProvider gives you complete information in the QueryAccessibilityHelpEventArgs.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] StatusStripArray.
QueryContinueDrag
I n this Article
Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.
public event [Link] QueryContinueDrag;
member [Link] : [Link]

Remarks
The QueryContinueDrag event is raised when there is a change in the keyboard or mouse button state during a drag-
and-drop operation. The QueryContinueDrag event enables the drag source to determine whether the drag-and-drop
operation should be canceled.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Region property changes.

public event EventHandler RegionChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Region property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
The ResetIndex method is not supported in the StatusStripArray class.

public void ResetIndex ([Link] o);


member [Link] : [Link] -> unit

Parameters
o StatusStrip StatusStrip
A Control.

Remarks
This method is not supported, and calling it does not raise an exception.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is resized.
public event EventHandler Resize;
member [Link] : EventHandler

Remarks
To determine the Size of the resized control, you can cast the sender parameter of the EventArgs data to a Control and
get its Size property (or Height and Width properties individually).
To handle custom layouts, use the Layout event instead of the Resize event. The Layout event is raised in response to
a Resize event, but also in response to other changes that affect the layout of the control.

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] StatusStripArray.
RightToLeftChanged
I n this Article
Occurs when the RightToLeftChanged property value changes.

public event EventHandler RightToLeftChanged;


member [Link] : EventHandler

Remarks
This event is raised if the RightToLeft property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the user or code scrolls through the client area.
public event [Link] Scroll;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Sets the index of the initial StatusStrip in a StatusStripArray.
public void SetIndex ([Link] o, short Index);
member [Link] : [Link] * int16 -> unit

Parameters
o StatusStrip StatusStrip
A StatusStrip in the control array.
Index Int16 Int16
A Short that represents the index of the specified StatusStrip.

Remarks
The SetIndex method should only be called when you are creating the initial element in the control array. To add
subsequent elements, call the Load method and specify the Index .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] StatusStripArray.
ShouldSerializeIndex
I n this Article
Returns a value that indicates whether a StatusStrip is a member of this StatusStripArray.

public bool ShouldSerializeIndex ([Link] o);


member [Link] : [Link] -> bool

Parameters
o StatusStrip StatusStrip
A StatusStrip in the control array.
Returns
Boolean Boolean
true if o is a member of this control array; otherwise, false .

Remarks
If the specified StatusStrip is a member of a different StatusStripArray, ShouldSerializeIndex returns false .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Size property value changes.

public event EventHandler SizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Size property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
StatusStripArray StatusStripArray
I n this Article

Overloads
StatusStripArray()
Initializes a new instance of the StatusStripArray class.

StatusStripArray(IContainer) StatusStripArray(IContainer)
Initializes a new instance of the StatusStripArray class,
specifying its container.

StatusStripArray()
Initializes a new instance of the StatusStripArray class.
public StatusStripArray ();

Remarks
When you instantiate a StatusStripArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

StatusStripArray(IContainer) StatusStripArray(IContainer)
Initializes a new instance of the StatusStripArray class, specifying its container.

public StatusStripArray ([Link] Container);


new [Link] : [Link] ->
[Link]

Parameters
Container IContainer IContainer
The IContainer where the control array will be hosted.
Remarks
When you instantiate a StatusStripArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control style changes.

public event EventHandler StyleChanged;


member [Link] : EventHandler

Remarks
The StyleChanged event occurs when ControlStyles flags have been added or changed.
This event is raised if the control style is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] StatusStripArray.
SystemColorsChanged
I n this Article
Occurs when the system colors change.

public event EventHandler SystemColorsChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SystemColors is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
IndexChanged
I n this Article
Occurs when the TabIndex property value changes.

public event EventHandler TabIndexChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabIndex property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
StopChanged
I n this Article
Occurs when the TabStop property value changes.

public event EventHandler TabStopChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabStop property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Text property value changes.

public event EventHandler TextChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Text property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is finished validating.
public event EventHandler Validated;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated

If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is validating.
public event [Link] Validating;
member [Link] : [Link]

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated
If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Visible property value changes.

public event EventHandler VisibleChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Visible property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
Support Support Class
Contains various utility functions for backward compatibility with Visual Basic 6.0.

D eclaration
[[Link]]
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public sealed class Support
type Support = class

I nheritance H ierarchy
Object Object

Remarks
The functions in this class are used during the upgrade of Visual Basic 6.0 projects to Visual Basic. Some functions
replace Visual Basic 6.0 functions that are no longer supported in Visual Basic; others compensate for differences in the
object models.
To use functions in this class in a Visual Basic project, add a reference to the
[Link].VB6 namespace.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Methods
CopyArray(Array)
CopyArray(Array)

Duplicates Visual Basic 6.0 functionality of assigning an Array to a Variant .

CursorToIPicture(Cursor)
CursorToIPicture(Cursor)

Returns an OLE IPicture object that corresponds to the specified Cursor.

Eqv(Boolean, Boolean)
Eqv(Boolean, Boolean)

Performs a logical equivalence on two Boolean expressions.

Eqv(Byte, Byte)
Eqv(Byte, Byte)
Performs a logical equivalence on two Byte expressions.

Eqv(Int16, Int16)
Eqv(Int16, Int16)

Performs a logical equivalence on two Int16 expressions.

Eqv(Int32, Int32)
Eqv(Int32, Int32)

Performs a logical equivalence on two Int32 expressions.

Eqv(Int64, Int64)
Eqv(Int64, Int64)

Performs a logical equivalence on two Int64 expressions.

Eqv(Object, Object)
Eqv(Object, Object)

Performs a logical equivalence on two Object expressions.

FontChangeBold(Font, Boolean)
FontChangeBold(Font, Boolean)

Changes the Bold style bit for a font.

FontChangeGdiCharSet(Font, Byte)
FontChangeGdiCharSet(Font, Byte)

Returns a font for a specified GDI character set.

FontChangeItalic(Font, Boolean)
FontChangeItalic(Font, Boolean)

Changes the Italic style bit for a font.

FontChangeName(Font, String)
FontChangeName(Font, String)

Returns a new Font for a given Visual Basic 6.0 Font .

FontChangeSize(Font, Single)
FontChangeSize(Font, Single)

Changes the Size property for a font.

FontChangeStrikeout(Font, Boolean)
FontChangeStrikeout(Font, Boolean)

Changes the Strikeout style bit for a font.

FontChangeUnderline(Font, Boolean)
FontChangeUnderline(Font, Boolean)

Changes the Underline style bit for a font.

FontToIFont(Font)
FontToIFont(Font)

Converts a Font to a Visual Basic 6.0 stdFont object.

Format(Object, String, FirstDayOfWeek, FirstWeekOfYear)


Format(Object, String, FirstDayOfWeek, FirstWeekOfYear)

Converts the Visual Basic 6.0 Format function to be compatible with Visual Basic.

FromPixelsUserHeight(Double, Double, Int32)


FromPixelsUserHeight(Double, Double, Int32)

Converts a pixel measurement to a Visual Basic 6.0 ScaleHeight measurement.

FromPixelsUserWidth(Double, Double, Int32)


FromPixelsUserWidth(Double, Double, Int32)

Converts a pixel measurement to a Visual Basic 6.0 ScaleWidth measurement.

FromPixelsUserX(Double, Double, Double, Int32)


FromPixelsUserX(Double, Double, Double, Int32)

Converts a pixel measurement to a Visual Basic 6.0 ScaleLeft measurement.

FromPixelsUserY(Double, Double, Double, Int32)


FromPixelsUserY(Double, Double, Double, Int32)

Converts a pixel measurement to a Visual Basic 6.0 ScaleTop measurement.


FromPixelsX(Double, ScaleMode)
FromPixelsX(Double, ScaleMode)

Converts a pixel measurement to a Visual Basic 6.0 measurement for a given ScaleMode.

FromPixelsY(Double, ScaleMode)
FromPixelsY(Double, ScaleMode)

Converts a pixel measurement to a Visual Basic 6.0 measurement for a given ScaleMode.

GetActiveControl()
GetActiveControl()

Gets the control that currently has focus.

GetCancel(Button)
GetCancel(Button)

Gets a value that indicates whether a Button is the cancel button on a form.

GetDefault(Button)
GetDefault(Button)

Gets sets a value that determines whether a Button control is the default button on a form.

GetEXEName()
GetEXEName()

Gets the name of the executable file (.exe) for the current application.

GetHInstance()
GetHInstance()

Gets the instance handle (HINSTANCE ) for the current application.

GetItemData(Control, Int32)
GetItemData(Control, Int32)

Gets an Integer associated with a ListBox or ComboBox item.

GetItemString(Control, Int32)
GetItemString(Control, Int32)

Gets a String associated with a ListBox or ComboBox item.


GetPath()
GetPath()

Gets the current path for the application.

IconToIPicture(Icon)
IconToIPicture(Icon)

Gets an OLE IPicture object for a given Icon.

IFontToFont(Object)
IFontToFont(Object)

Converts a Visual Basic 6.0 stdFont object to a Font.

ImageToIPicture(Image)
ImageToIPicture(Image)

Gets an OLE IPicture object for a given Image.

ImageToIPictureDisp(Image)
ImageToIPictureDisp(Image)

Gets an OLE IPictureDisp object for a given Image.

Imp(Object, Object)
Imp(Object, Object)

Performs a logical implication on two Object expressions.

Imp(Int64, Int64)
Imp(Int64, Int64)

Performs a logical implication on two Int64 expressions.

Imp(Int32, Int32)
Imp(Int32, Int32)

Performs a logical implication on two Int32 expressions.

Imp(Byte, Byte)
Imp(Byte, Byte)

Performs a logical implication on two Byte expressions.


Imp(Boolean, Boolean)
Imp(Boolean, Boolean)

Performs a logical implication on two Boolean expressions.

Imp(Int16, Int16)
Imp(Int16, Int16)

Performs a logical implication on two Int16 expressions.

IPictureDispToImage(Object)
IPictureDispToImage(Object)

Gets an Image for a given OLE IPictureDisp object.

IPictureToImage(Object)
IPictureToImage(Object)

Gets an Image for a given OLE IPicture object.

LoadResData(Object, Object)
LoadResData(Object, Object)

Loads data of several possible types from a resource (.res) file.

LoadResData(Object, Object, CultureInfo)


LoadResData(Object, Object, CultureInfo)

Loads data of several possible types from a resource (.res) file, specifying a locale.

LoadResPicture(Object, LoadResConstants)
LoadResPicture(Object, LoadResConstants)

Loads a bitmap, icon, or cursor from a resource (.res) file.

LoadResPicture(Object, LoadResConstants, CultureInfo)


LoadResPicture(Object, LoadResConstants, CultureInfo)

Loads a bitmap, icon, or cursor from a resource (.res) file, specifying a locale.

LoadResString(Int32)
LoadResString(Int32)

Loads a string from a resource (.res) file.


LoadResString(Int32, CultureInfo)
LoadResString(Int32, CultureInfo)

Loads a string from a resource (.res) file, specifying a locale.

PixelsToTwipsX(Double)
PixelsToTwipsX(Double)

Converts an X coordinate from pixels to twips.

PixelsToTwipsY(Double)
PixelsToTwipsY(Double)

Converts a Y coordinate from pixels to twips.

SendKeys(String, Boolean)
SendKeys(String, Boolean)

Sends one or more keystrokes to the active window as if typed at the keyboard.

SetCancel(Button, Boolean)
SetCancel(Button, Boolean)

Sets the CancelButton property of a Form.

SetDefault(Button, Boolean)
SetDefault(Button, Boolean)

Sets the AcceptButton property of a Form.

SetItemData(Control, Int32, Int32)


SetItemData(Control, Int32, Int32)

Sets the ItemData property for a ListBoxItem.

SetItemString(Control, Int32, String)


SetItemString(Control, Int32, String)

Sets the ItemString property for a ListBoxItem.

SetResourceBaseName(String)
SetResourceBaseName(String)

Assigns the name of a Visual Basic 6.0 resource file to the current Visual Basic project namespace.
SetResourceBaseName(String, String)
SetResourceBaseName(String, String)

Assigns the name of a Visual Basic 6.0 resource file to a Visual Basic project namespace.

ShowForm(Form, Int32, Form)


ShowForm(Form, Int32, Form)

Displays a form by calling either the Show () or ShowDialog() method.

TabLayout(Object[])
TabLayout(Object[])

Formats strings to simulate the Visual Basic 6.0 [Link] functionality.

ToPixelsUserHeight(Double, Double, Int32)


ToPixelsUserHeight(Double, Double, Int32)

Converts a Visual Basic 6.0 ScaleHeight measurement to a pixel measurement.

ToPixelsUserWidth(Double, Double, Int32)


ToPixelsUserWidth(Double, Double, Int32)

Converts a Visual Basic 6.0 ScaleWidth measurement to a pixel measurement.

ToPixelsUserX(Double, Double, Double, Int32)


ToPixelsUserX(Double, Double, Double, Int32)

Converts a Visual Basic 6.0 ScaleLeft measurement to a pixel measurement.

ToPixelsUserY(Double, Double, Double, Int32)


ToPixelsUserY(Double, Double, Double, Int32)

Converts a Visual Basic 6.0 ScaleTop measurement to a pixel measurement.

ToPixelsX(Double, ScaleMode)
ToPixelsX(Double, ScaleMode)

Converts a Visual Basic 6.0 measurement to a pixel measurement for a given ScaleMode.

ToPixelsY(Double, ScaleMode)
ToPixelsY(Double, ScaleMode)

Converts a Visual Basic 6.0 measurement to a pixel measurement for a given ScaleMode.
TwipsPerPixelX()
TwipsPerPixelX()

Gets a value that is used to convert twips to pixels based on screen settings.

TwipsPerPixelY()
TwipsPerPixelY()

Gets a value that is used to convert twips to pixels based on screen settings.

TwipsToPixelsX(Double)
TwipsToPixelsX(Double)

Converts an X coordinate from twips to pixels.

TwipsToPixelsY(Double)
TwipsToPixelsY(Double)

Converts a Y coordinate from twips to pixels.

ValidateControls(ContainerControl)
ValidateControls(ContainerControl)

Emulates the behavior of the Visual Basic 6.0 ValidateControls method.

WhatsThisMode(Form)
WhatsThisMode(Form)

Displays pop-up Help for a form upgraded from Visual Basic 6.0.

ZOrder(Control, Int32)
ZOrder(Control, Int32)

Converts the Visual Basic ZOrder method for use in Visual Basic.
[Link] [Link]
I n this Article
Duplicates Visual Basic 6.0 functionality of assigning an Array to a Variant .

[[Link]("[Link].* classes are obsolete and supported within 32


bit processes only. [Link]
public static Array CopyArray (Array SourceArray);
static member CopyArray : Array -> Array

Parameters
SourceArray Array Array
A Array.
Returns
Array Array
The array to copy.
Attributes ObsoleteAttribute

Remarks
The Visual Basic 6.0 Variant data type is no longer supported in Visual Basic. The CopyArray function is used by the
upgrade tools to copy an Array to or from a Variant array.
To copy an array in Visual Basic, use the Clone, Copy or CopyTo methods of the Array class.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Returns an OLE IPicture object that corresponds to the specified Cursor.

[[Link]("[Link].* classes are obsolete and supported within 32


bit processes only. [Link]
public static object CursorToIPicture ([Link] curs);
static member CursorToIPicture : [Link] -> obj

Parameters
curs Cursor Cursor
The Cursor to convert.
Returns
Object Object
An Object that represents the OLE IPicture object.
Attributes ObsoleteAttribute

Remarks
In Visual Basic 6.0, the MouseIcon property of a form or control could be used to load a custom MousePointer
(cursor). In some cases, the image for the MouseIcon was stored as a [Link] ; this function is used by the
upgrade tool to convert a Cursor to a [Link] .
To convert a Cursor in Visual Basic, use the GetIPictureFromCursor method of the AxHost class.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article

Overloads
Eqv(Boolean, Boolean) Eqv(Boolean, Boolean)
Performs a logical equivalence on two Boolean expressions.

Eqv(Byte, Byte) Eqv(Byte, Byte)


Performs a logical equivalence on two Byte expressions.

Eqv(Int16, Int16) Eqv(Int16, Int16)


Performs a logical equivalence on two Int16 expressions.

Eqv(Int32, Int32) Eqv(Int32, Int32)


Performs a logical equivalence on two Int32 expressions.

Eqv(Int64, Int64) Eqv(Int64, Int64)


Performs a logical equivalence on two Int64 expressions.

Eqv(Object, Object) Eqv(Object, Object)


Performs a logical equivalence on two Object expressions.

Eqv(Boolean, Boolean) Eqv(Boolean, Boolean)


Performs a logical equivalence on two Boolean expressions.
[[Link]("[Link].* classes are obsolete and supported within 32
bit processes only. [Link]
public static bool Eqv (bool a, bool b);
static member Eqv : bool * bool -> bool

Parameters
a Boolean Boolean
A Boolean to compare.
b Boolean Boolean
A Boolean to compare.
Returns
Boolean Boolean
true if the two expressions are equal; otherwise false .
Attributes ObsoleteAttribute
Remarks
If either expression is Null , result is also Null . When neither expression is Null , result is determined according to the
following table:
IF E X PR ES S IO N1 IS AND E X PR ES S IO N2 IS THE R ES U LT IS

true true true

true false false

false true false

false false true

In Visual Basic, the Eqv operator is no longer a part of the Visual Basic language; use the equals (=) comparison
operator in place of Eqv for logical evaluations.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See = Operator (Visual Basic)
Also

Eqv(Byte, Byte) Eqv(Byte, Byte)


Performs a logical equivalence on two Byte expressions.
[[Link]("[Link].* classes are obsolete and supported within 32
bit processes only. [Link]
public static byte Eqv (byte a, byte b);
static member Eqv : byte * byte -> byte

Parameters
a Byte Byte
A Byte to compare.
b Byte Byte
A Byte to compare.
Returns
Byte Byte
A Byte that contains the result of the bitwise comparison.
Attributes ObsoleteAttribute
Remarks
The Eqv operator performs a bitwise comparison of identically positioned bits in two numeric expressions and sets the
corresponding bit according to the following table:
IF B IT IN E X PR ES S IO N1 IS AND B IT IN E X PR ES S IO N2 IS THE R ES U LT IS

0 0 1

0 1 0

1 0 0

1 1 1

In Visual Basic, the Eqv operator is no longer a part of the Visual Basic language; for bitwise evaluations use the Not
and XOr operators.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See Not Operator (Visual Basic)
Also Xor Operator (Visual Basic)

Eqv(Int16, Int16) Eqv(Int16, Int16)


Performs a logical equivalence on two Int16 expressions.

[[Link]("[Link].* classes are obsolete and supported within 32


bit processes only. [Link]
public static short Eqv (short a, short b);
static member Eqv : int16 * int16 -> int16

Parameters
a Int16 Int16
A Int16 to compare.
b Int16 Int16
A Int16 to compare.
Returns
Int16 Int16
A Int16 that contains the result of the comparison.
Attributes ObsoleteAttribute
Remarks
In Visual Basic, the Eqv operator is no longer a part of the Visual Basic language; for bitwise evaluations use the Not
and XOr operators.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See Not Operator (Visual Basic)
Also Xor Operator (Visual Basic)

Eqv(Int32, Int32) Eqv(Int32, Int32)


Performs a logical equivalence on two Int32 expressions.

[[Link]("[Link].* classes are obsolete and supported within 32


bit processes only. [Link]
public static int Eqv (int a, int b);
static member Eqv : int * int -> int

Parameters
a Int32 Int32
A Int32 to compare.
b Int32 Int32
A Int32 to compare.
Returns
Int32 Int32
A Int32 that contains the result of the comparison.
Attributes ObsoleteAttribute
Remarks
In Visual Basic, the Eqv operator is no longer a part of the Visual Basic language; for bitwise evaluations use the Not
and XOr operators.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See Not Operator (Visual Basic)
Also Xor Operator (Visual Basic)

Eqv(Int64, Int64) Eqv(Int64, Int64)


Performs a logical equivalence on two Int64 expressions.

[[Link]("[Link].* classes are obsolete and supported within 32


bit processes only. [Link]
public static long Eqv (long a, long b);
static member Eqv : int64 * int64 -> int64
Parameters
a Int64 Int64
A Int64 to compare.
b Int64 Int64
A Int64 to compare.
Returns
Int64 Int64
A Int64 that contains the result of the comparison.
Attributes ObsoleteAttribute
Remarks
In Visual Basic, the Eqv operator is no longer a part of the Visual Basic language; for bitwise evaluations use the Not
and XOr operators.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See Not Operator (Visual Basic)
Also Xor Operator (Visual Basic)

Eqv(Object, Object) Eqv(Object, Object)


Performs a logical equivalence on two Object expressions.

[[Link]("[Link].* classes are obsolete and supported within 32


bit processes only. [Link]
public static object Eqv (object a, object b);
static member Eqv : obj * obj -> obj

Parameters
a Object Object
A Object to compare.
b Object Object
A Object to compare.
Returns
Object Object
A Object that contains the result of the comparison.
Attributes ObsoleteAttribute
Remarks
In Visual Basic, the Eqv operator is no longer a part of the Visual Basic language; for bitwise evaluations use the Not
and XOr operators.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See Not Operator (Visual Basic)
Also Xor Operator (Visual Basic)
[Link] [Link]
I n this Article
Changes the Bold style bit for a font.
[[Link]("[Link].* classes are obsolete and supported within 32
bit processes only. [Link]
public static [Link] FontChangeBold ([Link] CurrentFont, bool Bold);
static member FontChangeBold : [Link] * bool -> [Link]

Parameters
CurrentFont Font Font
A Font.
Bold Boolean Boolean
true to set the Bold style bit; otherwise false .
Returns
Font Font
A Font with the new style applied.
Attributes ObsoleteAttribute

Remarks
In Visual Basic 6.0, font styles were applied by setting properties; in Visual Basic font styles are applied by using a
FontStyle enumeration. This function is used by the upgrade tools to translate the Visual Basic 6.0 properties to the
new enumerations.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
GdiCharSet
I n this Article
Returns a font for a specified GDI character set.

[[Link]("[Link].* classes are obsolete and supported within 32


bit processes only. [Link]
public static [Link] FontChangeGdiCharSet ([Link] CurrentFont, byte
GdiCharSet);
static member FontChangeGdiCharSet : [Link] * byte -> [Link]

Parameters
CurrentFont Font Font
A Font.
GdiCharSet Byte Byte
A byte value that specifies the GDI character set to use.
Returns
Font Font
A Font for the specified GDI character set.
Attributes ObsoleteAttribute

Remarks
In Visual Basic 6.0, the stdFont object had a CharSet property that specified the GDI character set for a font. In Visual
Basic, the character set is specified as an optional of a Font constructor. This function is used by the upgrade tools to
convert a stdFont to a Font.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Changes the Italic style bit for a font.
[[Link]("[Link].* classes are obsolete and supported within 32
bit processes only. [Link]
public static [Link] FontChangeItalic ([Link] CurrentFont, bool Italic);
static member FontChangeItalic : [Link] * bool -> [Link]

Parameters
CurrentFont Font Font
A Font.
Italic Boolean Boolean
true to set the Italic style bit; otherwise false .
Returns
Font Font
A Font with the new style applied.
Attributes ObsoleteAttribute

Remarks
In Visual Basic 6.0, font styles were applied by setting properties; in Visual Basic font styles are applied by using a
FontStyle enumeration. This function is used by the upgrade tools to translate the Visual Basic 6.0 properties to the
new enumerations.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Returns a new Font for a given Visual Basic 6.0 Font .

[[Link]("[Link].* classes are obsolete and supported within 32


bit processes only. [Link]
public static [Link] FontChangeName ([Link] CurrentFont, string Name);
static member FontChangeName : [Link] * string -> [Link]

Parameters
CurrentFont Font Font
A Font.
Name String String
A String that represents the Visual Basic 6.0 Font property.

Returns
Font Font
A Font that matches the Visual Basic 6.0 Font .
Attributes ObsoleteAttribute

Remarks
In Visual Basic 6.0, the name of a font was specified by the Font property; in Visual Basic, Name is a property of the
Font object. This function is used by the upgrade tools to convert a Visual Basic 6.0 Font to a Font.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Changes the Size property for a font.
[[Link]("[Link].* classes are obsolete and supported within 32
bit processes only. [Link]
public static [Link] FontChangeSize ([Link] CurrentFont, float Size);
static member FontChangeSize : [Link] * single -> [Link]

Parameters
CurrentFont Font Font
A Font.
Size Single Single
A Single that represents the Visual Basic 6.0 FontSize property.
Returns
Font Font
A Font that matches the Visual Basic 6.0 FontSize .
Attributes ObsoleteAttribute

Remarks
In Visual Basic 6.0, the size of a font was specified by the FontSize property; in Visual Basic, Size is a property of the
Font object. This function is used by the upgrade tools to convert a Visual Basic 6.0 Font to a Font.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Strikeout
I n this Article
Changes the Strikeout style bit for a font.

[[Link]("[Link].* classes are obsolete and supported within 32


bit processes only. [Link]
public static [Link] FontChangeStrikeout ([Link] CurrentFont, bool
Strikeout);
static member FontChangeStrikeout : [Link] * bool -> [Link]

Parameters
CurrentFont Font Font
A Font.
Strikeout Boolean Boolean
true to set the Strikeout style bit; otherwise false .
Returns
Font Font
A Font with the new style applied.
Attributes ObsoleteAttribute

Remarks
In Visual Basic 6.0, font styles were applied by setting properties; in Visual Basic font styles are applied by using a
FontStyle enumeration. This function is used by the upgrade tools to translate the Visual Basic 6.0 properties to the
new enumerations.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Underline
I n this Article
Changes the Underline style bit for a font.

[[Link]("[Link].* classes are obsolete and supported within 32


bit processes only. [Link]
public static [Link] FontChangeUnderline ([Link] CurrentFont, bool
Underline);
static member FontChangeUnderline : [Link] * bool -> [Link]

Parameters
CurrentFont Font Font
A Font.
Underline Boolean Boolean
true to set the Underline style bit; otherwise false .
Returns
Font Font
A Font with the new style applied.
Attributes ObsoleteAttribute

Remarks
In Visual Basic 6.0, font styles were applied by setting properties; in Visual Basic font styles are applied by using a
FontStyle enumeration. This function is used by the upgrade tools to translate the Visual Basic 6.0 properties to the
new enumerations.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Converts a Font to a Visual Basic 6.0 stdFont object.

[[Link]("[Link].* classes are obsolete and supported within 32


bit processes only. [Link]
public static object FontToIFont ([Link] fnt);
static member FontToIFont : [Link] -> obj

Parameters
fnt Font Font
The Font to convert.
Returns
Object Object
A stdFont object.
Attributes ObsoleteAttribute

Remarks
The Visual Basic 6.0 stdFont object was COM -based and has no equivalent in Visual Basic. This function is used by
the upgrade tools to convert between a Font and a stdFont during project upgrade.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Converts the Visual Basic 6.0 Format function to be compatible with Visual Basic.

[[Link]("[Link].* classes are obsolete and supported within 32


bit processes only. [Link]
public static string Format (object Expression, string Style = "",
[Link] DayOfWeek = [Link],
[Link] WeekOfYear = [Link].Jan1);
static member Format : obj * string * [Link] *
[Link] -> string

Parameters
Expression Object Object
The Object expression to convert.
Style String String
Optional. A String that represents a date format.
DayOfWeek FirstDayOfWeek FirstDayOfWeek
Optional. A FirstDayOfWeek enumeration.
WeekOfYear FirstWeekOfYear FirstWeekOfYear
Optional. A FirstWeekOfYear enumeration.
Returns
String String
A String that contains the formatted data.
Attributes ObsoleteAttribute

Remarks
The Visual Basic 6.0 Format function could operate on a Variant data type; in Visual Basic the Variant data type no
longer exists. This function is used by the upgrade tools to convert a Variant formatted by using the Format function
to a common language runtime-compliant type.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Height
I n this Article
Converts a pixel measurement to a Visual Basic 6.0 ScaleHeight measurement.

[[Link]("[Link].* classes are obsolete and supported within 32


bit processes only. [Link]
public static double FromPixelsUserHeight (double Height, double ScaleHeight, int
OriginalHeightInPixels);
static member FromPixelsUserHeight : double * double * int -> double

Parameters
Height Double Double
A Double that represents the height.
ScaleHeight Double Double
A Double that represents the Visual Basic 6.0 ScaleHeight for the current ScaleMode .
OriginalHeightInPixels Int32 Int32
An Integer that represents the height in pixels.

Returns
Double Double
A Double that contains the converted Visual Basic 6.0 ScaleHeight .
Attributes ObsoleteAttribute

Remarks
Visual Basic 6.0 supported multiple coordinate systems defined by a ScaleMode property. This included a user-defined
value. Visual Basic only supports a coordinate system that is based on pixels. This function is used by the upgrade tools
to convert between pixels and a user-defined scale value.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Width
I n this Article
Converts a pixel measurement to a Visual Basic 6.0 ScaleWidth measurement.

[[Link]("[Link].* classes are obsolete and supported within 32


bit processes only. [Link]
public static double FromPixelsUserWidth (double Width, double ScaleWidth, int
OriginalWidthInPixels);
static member FromPixelsUserWidth : double * double * int -> double

Parameters
Width Double Double
A Double that represents the width.
ScaleWidth Double Double
A Double that represents the Visual Basic 6.0 ScaleWidth for the current ScaleMode .
OriginalWidthInPixels Int32 Int32
An Integer that represents the width in pixels.

Returns
Double Double
A Double that contains the converted Visual Basic 6.0 ScaleWidth .
Attributes ObsoleteAttribute

Remarks
Visual Basic 6.0 supported multiple coordinate systems defined by a ScaleMode property. This included a user-defined
value. Visual Basic only supports a coordinate system that is based on pixels. This function is used by the upgrade tools
to convert between pixels and a user-defined scale value.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Converts a pixel measurement to a Visual Basic 6.0 ScaleLeft measurement.

[[Link]("[Link].* classes are obsolete and supported within 32


bit processes only. [Link]
public static double FromPixelsUserX (double X, double ScaleLeft, double ScaleWidth, int
OriginalWidthInPixels);
static member FromPixelsUserX : double * double * double * int -> double

Parameters
X Double Double
A Double that represents the X coordinate.
ScaleLeft Double Double
A Double that represents the Visual Basic 6.0 ScaleLeft for the current ScaleMode .
ScaleWidth Double Double
A Double that represents the Visual Basic 6.0 ScaleWidth for the current ScaleMode .
OriginalWidthInPixels Int32 Int32
An Integer that represents the width in pixels.
Returns
Double Double
A Double that contains the converted Visual Basic 6.0 ScaleLeft .
Attributes ObsoleteAttribute

Remarks
Visual Basic 6.0 supported multiple coordinate systems defined by a ScaleMode property. This included a user-defined
value. Visual Basic only supports a coordinate system that is based on pixels. This function is used by the upgrade tools
to convert between pixels and a user-defined scale value.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Converts a pixel measurement to a Visual Basic 6.0 ScaleTop measurement.

[[Link]("[Link].* classes are obsolete and supported within 32


bit processes only. [Link]
public static double FromPixelsUserY (double Y, double ScaleTop, double ScaleHeight, int
OriginalHeightInPixels);
static member FromPixelsUserY : double * double * double * int -> double

Parameters
Y Double Double
A Double that represents the X coordinate.
ScaleTop Double Double
A Double that represents the Visual Basic 6.0 ScaleTop for the current ScaleMode .
ScaleHeight Double Double
A Double that represents the Visual Basic 6.0 ScaleHeight for the current ScaleMode .
OriginalHeightInPixels Int32 Int32
An Integer that represents the height in pixels.
Returns
Double Double
A Double that contains the converted Visual Basic 6.0 ScaleTop .
Attributes ObsoleteAttribute

Remarks
Visual Basic 6.0 supported multiple coordinate systems defined by a ScaleMode property. This included a user-defined
value. Visual Basic only supports a coordinate system that is based on pixels. This function is used by the upgrade tools
to convert between pixels and a user-defined scale value.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Converts a pixel measurement to a Visual Basic 6.0 measurement for a given ScaleMode.
[[Link]("[Link].* classes are obsolete and supported within 32
bit processes only. [Link]
public static double FromPixelsX (double X, [Link]
ToScale);
static member FromPixelsX : double * [Link] -> double

Parameters
X Double Double
A Double that represents the X coordinate in pixels.
ToScale ScaleMode ScaleMode
A ScaleMode enumeration that represents the Visual Basic 6.0 ScaleMode to convert to.
Returns
Double Double
A Double that contains the Visual Basic 6.0 value for the specified ScaleMode .

Attributes ObsoleteAttribute

Remarks
Visual Basic 6.0 supported multiple coordinate systems defined by a ScaleMode property. This included a user-defined
value. Visual Basic only supports a coordinate system that is based on pixels. This function is used by the upgrade tools
to convert between pixels and a user-defined scale value.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Converts a pixel measurement to a Visual Basic 6.0 measurement for a given ScaleMode.
[[Link]("[Link].* classes are obsolete and supported within 32
bit processes only. [Link]
public static double FromPixelsY (double Y, [Link]
ToScale);
static member FromPixelsY : double * [Link] -> double

Parameters
Y Double Double
A Double that represents the Y coordinate in pixels.
ToScale ScaleMode ScaleMode
A ScaleMode enumeration that represents the Visual Basic 6.0 ScaleMode to convert to.
Returns
Double Double
A Double that contains the Visual Basic 6.0 value for the specified ScaleMode .

Attributes ObsoleteAttribute

Remarks
Visual Basic 6.0 supported multiple coordinate systems defined by a ScaleMode property. This included a user-defined
value. Visual Basic only supports a coordinate system that is based on pixels. This function is used by the upgrade tools
to convert between pixels and a user-defined scale value.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the control that currently has focus.
[[Link]("[Link].* classes are obsolete and supported within 32
bit processes only. [Link]
public static [Link] GetActiveControl ();
static member GetActiveControl : unit -> [Link]

Returns
Control Control
The control that currently has focus.
Attributes ObsoleteAttribute

Remarks
This function is used by the upgrade tools to replace the Visual Basic 6.0 [Link] property. It is the
equivalent of calling ActiveControl in Visual Basic.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets a value that indicates whether a Button is the cancel button on a form.
[[Link]("[Link].* classes are obsolete and supported within 32
bit processes only. [Link]
public static bool GetCancel ([Link] btn);
static member GetCancel : [Link] -> bool

Parameters
btn Button Button
A Button control.
Returns
Boolean Boolean
true if btn is the cancel button; otherwise false .
Attributes ObsoleteAttribute

Remarks
This function is the equivalent of checking the CancelButton property of a Form.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets sets a value that determines whether a Button control is the default button on a form.
[[Link]("[Link].* classes are obsolete and supported within 32
bit processes only. [Link]
public static bool GetDefault ([Link] btn);
static member GetDefault : [Link] -> bool

Parameters
btn Button Button
A Button control.
Returns
Boolean Boolean
true if btn is the default button; otherwise false .
Attributes ObsoleteAttribute

Remarks
This function is the equivalent of checking the AcceptButton property of a Form.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the name of the executable file (.exe) for the current application.
[[Link]("[Link].* classes are obsolete and supported within 32
bit processes only. [Link]
public static string GetEXEName ();
static member GetEXEName : unit -> string

Returns
String String
A String that contains the name without a file name extension.
Attributes ObsoleteAttribute

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the instance handle (HINSTANCE ) for the current application.
[[Link]("[Link].* classes are obsolete and supported within 32
bit processes only. [Link]
public static IntPtr GetHInstance ();
static member GetHInstance : unit -> nativeint

Returns
IntPtr IntPtr
An IntPtr for the current application instance.
Attributes ObsoleteAttribute

Remarks
This function is the equivalent of calling GetHINSTANCE.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets an Integer associated with a ListBox or ComboBox item.

[[Link]("[Link].* classes are obsolete and supported within 32


bit processes only. [Link]
public static int GetItemData ([Link] Control, int Index);
static member GetItemData : [Link] * int -> int

Parameters
Control Control Control
A ListBox or ComboBox control.
Index Int32 Int32
An Integer that represents the index of the ListBoxItem.

Returns
Int32 Int32
The Integer associated with the specified ListBoxItem.
Attributes ObsoleteAttribute

Remarks
In Visual Basic 6.0, the ItemData property for a ListBox or ComboBox control could be set at design time in the
Properties window to associate an Integer with a ListBox or ComboBox item. In Visual Basic, the ItemData
property no longer exists; the GetItemData and SetItemData methods can be used to emulate the behavior of
ItemData .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets a String associated with a ListBox or ComboBox item.
[[Link]("[Link].* classes are obsolete and supported within 32
bit processes only. [Link]
public static string GetItemString ([Link] Control, int Index);
static member GetItemString : [Link] * int -> string

Parameters
Control Control Control
A ListBox or ComboBox control.
Index Int32 Int32
An Integer that represents the index of the ListBoxItem.
Returns
String String
The String associated with the specified ListBoxItem.
Attributes ObsoleteAttribute

Remarks
This function is used by the upgrade tools to emulate the Visual Basic 6.0 List property. In Visual Basic, use the Items
or Items property instead.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the current path for the application.
[[Link]("[Link].* classes are obsolete and supported within 32
bit processes only. [Link]
public static string GetPath ();
static member GetPath : unit -> string

Returns
String String
A String that contains the path of the currently executing assembly.
Attributes ObsoleteAttribute

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets an OLE IPicture object for a given Icon.

[[Link]("[Link].* classes are obsolete and supported within 32


bit processes only. [Link]
public static object IconToIPicture ([Link] ico);
static member IconToIPicture : [Link] -> obj

Parameters
ico Icon Icon
A Icon.
Returns
Object Object
An Object representing the OLE IPicture object.
Attributes ObsoleteAttribute

Remarks
In Visual Basic 6.0, an OLE IPicture object could be used to specify an icon; in Visual Basic, the OLE IPicture
format is no longer supported. This function is used by the upgrade tools to convert between an IPicture and a Icon.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Converts a Visual Basic 6.0 stdFont object to a Font.

[[Link]("[Link].* classes are obsolete and supported within 32


bit processes only. [Link]
public static [Link] IFontToFont (object objFnt);
static member IFontToFont : obj -> [Link]

Parameters
objFnt Object Object
An Object that contains a Visual Basic 6.0 stdFont .
Returns
Font Font
A specified object to convert.
Attributes ObsoleteAttribute

Remarks
The Visual Basic 6.0 stdFont object was COM -based and has no equivalent in Visual Basic. This function is used by
the upgrade tools to convert between a Font and a stdFont during project upgrade.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets an OLE IPicture object for a given Image.

[[Link]("[Link].* classes are obsolete and supported within 32


bit processes only. [Link]
public static object ImageToIPicture ([Link] img);
static member ImageToIPicture : [Link] -> obj

Parameters
img Image Image
A Image.
Returns
Object Object
An Object representing the OLE IPicture object.
Attributes ObsoleteAttribute

Remarks
In Visual Basic 6.0, an OLE IPicture object could be used to specify an image; in Visual Basic, the OLE IPicture
format is no longer supported. This function is used by the upgrade tools to convert between an IPicture and a
Image.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Disp
I n this Article
Gets an OLE IPictureDisp object for a given Image.

[[Link]("[Link].* classes are obsolete and supported within 32


bit processes only. [Link]
public static object ImageToIPictureDisp ([Link] img);
static member ImageToIPictureDisp : [Link] -> obj

Parameters
img Image Image
A Image.
Returns
Object Object
An Object representing the OLE IPictureDisp object.
Attributes ObsoleteAttribute

Remarks
In Visual Basic 6.0, an OLE IPictureDisp object could be used to specify an image; in Visual Basic, the OLE IPicture
format is no longer supported. This function is used by the upgrade tools to convert between an IPicture and a
Image.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article

Overloads
Imp(Object, Object) Imp(Object, Object)
Performs a logical implication on two Object expressions.

Imp(Int64, Int64) Imp(Int64, Int64)


Performs a logical implication on two Int64 expressions.

Imp(Int32, Int32) Imp(Int32, Int32)


Performs a logical implication on two Int32 expressions.

Imp(Byte, Byte) Imp(Byte, Byte)


Performs a logical implication on two Byte expressions.

Imp(Boolean, Boolean) Imp(Boolean, Boolean)


Performs a logical implication on two Boolean expressions.

Imp(Int16, Int16) Imp(Int16, Int16)


Performs a logical implication on two Int16 expressions.

Imp(Object, Object) Imp(Object, Object)


Performs a logical implication on two Object expressions.
[[Link]("[Link].* classes are obsolete and supported within 32
bit processes only. [Link]
public static object Imp (object a, object b);
static member Imp : obj * obj -> obj

Parameters
a Object Object
An Object expression.
b Object Object
An Object expression.
Returns
Object Object
An Object that contains the result.
Attributes ObsoleteAttribute
Remarks
The Visual Basic 6.0 Imp operator is no longer supported in Visual Basic. This function is used by the upgrade tools to
replace the Imp operator during project upgrade. During upgrade, the Variant data type is upgraded to Object.
In Visual Basic, use Not and XOr to replace Imp .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See Not Operator (Visual Basic)
Also Xor Operator (Visual Basic)

Imp(Int64, Int64) Imp(Int64, Int64)


Performs a logical implication on two Int64 expressions.
[[Link]("[Link].* classes are obsolete and supported within 32
bit processes only. [Link]
public static long Imp (long a, long b);
static member Imp : int64 * int64 -> int64

Parameters
a Int64 Int64
A Long expression.
b Int64 Int64
A Long expression.

Returns
Int64 Int64
A Long that contains the result.
Attributes ObsoleteAttribute
Remarks
The Visual Basic 6.0 Imp operator is no longer supported in Visual Basic. This function is used by the upgrade tools to
replace the Imp operator during project upgrade.

In Visual Basic, use Not and XOr to replace Imp .


Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See Not Operator (Visual Basic)
Also Xor Operator (Visual Basic)

Imp(Int32, Int32) Imp(Int32, Int32)


Performs a logical implication on two Int32 expressions.
[[Link]("[Link].* classes are obsolete and supported within 32
bit processes only. [Link]
public static int Imp (int a, int b);
static member Imp : int * int -> int

Parameters
a Int32 Int32
An Integer expression.

b Int32 Int32
An Integer expression.

Returns
Int32 Int32
An Integer that contains the result.

Attributes ObsoleteAttribute
Remarks
The Visual Basic 6.0 Imp operator is no longer supported in Visual Basic. This function is used by the upgrade tools to
replace the Imp operator during project upgrade.
In Visual Basic, use Not and XOr to replace Imp .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See Not Operator (Visual Basic)
Also Xor Operator (Visual Basic)

Imp(Byte, Byte) Imp(Byte, Byte)


Performs a logical implication on two Byte expressions.

[[Link]("[Link].* classes are obsolete and supported within 32


bit processes only. [Link]
public static byte Imp (byte a, byte b);
static member Imp : byte * byte -> byte

Parameters
a Byte Byte
A Byte expression.
b Byte Byte
A Byte expression.
Returns
Byte Byte
A Byte that contains the result.
Attributes ObsoleteAttribute
Remarks
The Visual Basic 6.0 Imp operator is no longer supported in Visual Basic. This function is used by the upgrade tools to
replace the Imp operator during project upgrade.

In Visual Basic, use Not and XOr to replace Imp .


Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See Not Operator (Visual Basic)
Also Xor Operator (Visual Basic)

Imp(Boolean, Boolean) Imp(Boolean, Boolean)


Performs a logical implication on two Boolean expressions.

[[Link]("[Link].* classes are obsolete and supported within 32


bit processes only. [Link]
public static bool Imp (bool a, bool b);
static member Imp : bool * bool -> bool

Parameters
a Boolean Boolean
A Boolean expression.
b Boolean Boolean
A Boolean expression.
Returns
Boolean Boolean
A Boolean that contains the result.
Attributes ObsoleteAttribute
Remarks
The Visual Basic 6.0 Imp operator is no longer supported in Visual Basic. This function is used by the upgrade tools to
replace the Imp operator during project upgrade.

In Visual Basic, use Not and XOr instead of Imp .


Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See Not Operator (Visual Basic)
Also Xor Operator (Visual Basic)

Imp(Int16, Int16) Imp(Int16, Int16)


Performs a logical implication on two Int16 expressions.
[[Link]("[Link].* classes are obsolete and supported within 32
bit processes only. [Link]
public static short Imp (short a, short b);
static member Imp : int16 * int16 -> int16

Parameters
a Int16 Int16
A Short expression.

b Int16 Int16
A Short expression.

Returns
Int16 Int16
A Short that contains the result.

Attributes ObsoleteAttribute
Remarks
The Visual Basic 6.0 Imp operator is no longer supported in Visual Basic. This function is used by the upgrade tools to
replace the Imp operator during project upgrade.

In Visual Basic, use Not and XOr to replace Imp .


Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See Not Operator (Visual Basic)
Also Xor Operator (Visual Basic)
[Link] [Link]
Image
I n this Article
Gets an Image for a given OLE IPictureDisp object.

[[Link]("[Link].* classes are obsolete and supported within 32


bit processes only. [Link]
public static [Link] IPictureDispToImage (object pict);
static member IPictureDispToImage : obj -> [Link]

Parameters
pict Object Object
An OLE IPictureDisp object.
Returns
Image Image
An image object.
Attributes ObsoleteAttribute

Remarks
In Visual Basic 6.0, an OLE IPictureDisp object could be used to specify an image; in Visual Basic, the OLE IPicture
format is no longer supported. This function is used by the upgrade tools to convert between an IPictureDisp and a
Image.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets an Image for a given OLE IPicture object.

[[Link]("[Link].* classes are obsolete and supported within 32


bit processes only. [Link]
public static [Link] IPictureToImage (object pict);
static member IPictureToImage : obj -> [Link]

Parameters
pict Object Object
An OLE IPicture object.
Returns
Image Image
A converted object to image.
Attributes ObsoleteAttribute

Remarks
In Visual Basic 6.0, an OLE IPicture object could be used to specify an image; in Visual Basic, the OLE IPicture
format is no longer supported. This function is used by the upgrade tools to convert between an IPicture and a
Image.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article

Overloads
LoadResData(Object, Object) LoadResData(Object, Object)
Loads data of several possible types from a resource (.res) file.

LoadResData(Object, Object, CultureInfo) LoadResData(Object,


Object, CultureInfo) Loads data of several possible types from a resource (.res) file,
specifying a locale.

LoadResData(Object, Object) LoadResData(Object, Object)


Loads data of several possible types from a resource (.res) file.
[[Link]("[Link].* classes are obsolete and supported within 32
bit processes only. [Link]
public static object LoadResData (object ID, object restype);
static member LoadResData : obj * obj -> obj

Parameters
ID Object Object
An Object that specifies the data in the resource file.
restype Object Object
An Object that specifies the resource type.
Returns
Object Object
An Object that contains the resource.
Attributes ObsoleteAttribute
Remarks
In Visual Basic 6.0, international versions of an application were created by putting all localizable information, such as
strings, into a separate resource file (.res) for each language. At run time, locale-specific resources were loaded from
the resource file by calling the LoadResString , LoadResPicture , and LoadResData functions.
In Visual Basic, international versions of an application are created by changing the Language property of a form at
design time. A separate resource file (.resx) is automatically created for each locale selected. You no longer have to
explicitly load resources from code; resources are automatically loaded based on the user's locale. For more
information, see Globalizing Windows Forms applications.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See Globalizing Windows Forms
Also

LoadResData(Object, Object, CultureInfo) LoadResData(Object,


Object, CultureInfo)
Loads data of several possible types from a resource (.res) file, specifying a locale.
[[Link]("[Link].* classes are obsolete and supported within 32
bit processes only. [Link]
public static object LoadResData (object ID, object restype, [Link]
Culture);
static member LoadResData : obj * obj * [Link] -> obj

Parameters
ID Object Object
An Object that specifies the data in the resource file.
restype Object Object
An Object that specifies the resource type.
Culture CultureInfo CultureInfo
A CultureInfo object that specifies the locale.
Returns
Object Object
An Object that contains the resource.
Attributes ObsoleteAttribute
Remarks
In Visual Basic 6.0, international versions of an application were created by putting all localizable information, such as
strings, into a separate resource file (.res) for each language. At run time, locale-specific resources were loaded from
the resource file by calling the LoadResString , LoadResPicture , and LoadResData functions.
In Visual Basic, international versions of an application are created by changing the Language property of a form at
design time. A separate resource file (.resx) is automatically created for each locale selected. You no longer have to
explicitly load resources from code; resources are automatically loaded based on the user's locale. For more
information, see Globalizing Windows Forms applications.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See Globalizing Windows Forms
Also
[Link] [Link]
I n this Article

Overloads
LoadResPicture(Object, LoadResConstants) LoadResPicture(
Object, LoadResConstants) Loads a bitmap, icon, or cursor from a resource (.res) file.

LoadResPicture(Object, LoadResConstants, CultureInfo) Load


ResPicture(Object, LoadResConstants, CultureInfo) Loads a bitmap, icon, or cursor from a resource (.res) file,
specifying a locale.

LoadResPicture(Object, LoadResConstants) LoadResPicture(Object,


LoadResConstants)
Loads a bitmap, icon, or cursor from a resource (.res) file.
[[Link]("[Link].* classes are obsolete and supported within 32
bit processes only. [Link]
public static object LoadResPicture (object ID,
[Link] restype);
static member LoadResPicture : obj * [Link] -> obj

Parameters
ID Object Object
An Object that specifies the data in the resource file.
restype LoadResConstants LoadResConstants
A LoadResConstants enumeration that specifies the resource type.
Returns
Object Object
An Object that contains the resource.
Attributes ObsoleteAttribute
Remarks
In Visual Basic 6.0, international versions of an application were created by putting all localizable information, such as
strings, into a separate resource file (.res) for each language. At run time, locale-specific resources were loaded from
the resource file by calling the LoadResString , LoadResPicture , and LoadResData functions.
In Visual Basic, international versions of an application are created by changing the Language property of a form at
design time. A separate resource file (.resx) is automatically created for each locale selected. You no longer have to
explicitly load resources from code; resources are automatically loaded based on the user's locale. For more
information, see Globalizing Windows Forms applications.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See Globalizing Windows Forms
Also

LoadResPicture(Object, LoadResConstants, CultureInfo)


LoadResPicture(Object, LoadResConstants, CultureInfo)
Loads a bitmap, icon, or cursor from a resource (.res) file, specifying a locale.
[[Link]("[Link].* classes are obsolete and supported within 32
bit processes only. [Link]
public static object LoadResPicture (object ID,
[Link] restype, [Link]
Culture);
static member LoadResPicture : obj * [Link] *
[Link] -> obj

Parameters
ID Object Object
An Object that specifies the data in the resource file.
restype LoadResConstants LoadResConstants
A LoadResConstants enumeration that specifies the resource type.
Culture CultureInfo CultureInfo
A CultureInfo object that specifies the locale.
Returns
Object Object
An Object that contains the resource.
Attributes ObsoleteAttribute
Remarks
In Visual Basic 6.0, international versions of an application were created by putting all localizable information, such as
strings, into a separate resource file (.res) for each language. At run time, locale-specific resources were loaded from
the resource file by calling the LoadResString , LoadResPicture , and LoadResData functions.
In Visual Basic, international versions of an application are created by changing the Language property of a form at
design time. A separate resource file (.resx) is automatically created for each locale selected. You no longer have to
explicitly load resources from code; resources are automatically loaded based on the user's locale. For more
information, see Globalizing Windows Forms applications.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See Globalizing Windows Forms
Also
[Link] [Link]
I n this Article

Overloads
LoadResString(Int32) LoadResString(Int32)
Loads a string from a resource (.res) file.

LoadResString(Int32, CultureInfo) LoadResString(Int32,


CultureInfo) Loads a string from a resource (.res) file, specifying a locale.

LoadResString(Int32) LoadResString(Int32)
Loads a string from a resource (.res) file.
[[Link]("[Link].* classes are obsolete and supported within 32
bit processes only. [Link]
public static string LoadResString (int ID);
static member LoadResString : int -> string

Parameters
ID Int32 Int32
An Object that specifies the data in the resource file.
Returns
String String
A String that contains the resource.
Attributes ObsoleteAttribute
Remarks
In Visual Basic 6.0, international versions of an application were created by putting all localizable information, such as
strings, into a separate resource file (.res) for each language. At run time, locale-specific resources were loaded from
the resource file by calling the LoadResString , LoadResPicture , and LoadResData functions.
In Visual Basic, international versions of an application are created by changing the Language property of a form at
design time. A separate resource file (.resx) is automatically created for each locale selected. You no longer have to
explicitly load resources from code; resources are automatically loaded based on the user's locale. For more
information, see Globalizing Windows Forms applications.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See Globalizing Windows Forms
Also

LoadResString(Int32, CultureInfo) LoadResString(Int32,


CultureInfo)
Loads a string from a resource (.res) file, specifying a locale.
[[Link]("[Link].* classes are obsolete and supported within 32
bit processes only. [Link]
public static string LoadResString (int ID, [Link] Culture);
static member LoadResString : int * [Link] -> string

Parameters
ID Int32 Int32
An Object that specifies the data in the resource file.
Culture CultureInfo CultureInfo
A CultureInfo object that specifies the locale.
Returns
String String
A String that contains the resource.
Attributes ObsoleteAttribute
Remarks
In Visual Basic 6.0, international versions of an application were created by putting all localizable information, such as
strings, into a separate resource file (.res) for each language. At run time, locale-specific resources were loaded from
the resource file by calling the LoadResString , LoadResPicture , and LoadResData functions.

In Visual Basic, international versions of an application are created by changing the Language property of a form at
design time. A separate resource file (.resx) is automatically created for each locale selected. You no longer have to
explicitly load resources from code; resources are automatically loaded based on the user's locale. For more
information, see Globalizing Windows Forms applications.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
See Globalizing Windows Forms
Also
[Link] [Link]
I n this Article
Converts an X coordinate from pixels to twips.
[[Link]("[Link].* classes are obsolete and supported within 32
bit processes only. [Link]
public static double PixelsToTwipsX (double X);
static member PixelsToTwipsX : double -> double

Parameters
X Double Double
A Double that contains the X coordinate to convert.
Returns
Double Double
A Double that contains the X coordinate expressed in twips.
Attributes ObsoleteAttribute

Remarks
In Visual Basic 6.0, coordinates were expressed in twips; in Visual Basic they are expressed in pixels. This function is
used by the upgrade tools to convert between the two coordinate systems.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Converts a Y coordinate from pixels to twips.
[[Link]("[Link].* classes are obsolete and supported within 32
bit processes only. [Link]
public static double PixelsToTwipsY (double Y);
static member PixelsToTwipsY : double -> double

Parameters
Y Double Double
A Double that contains the Y coordinate to convert.
Returns
Double Double
A Double that contains the Y coordinate expressed in twips.
Attributes ObsoleteAttribute

Remarks
In Visual Basic 6.0, coordinates were expressed in twips; in Visual Basic they are expressed in pixels. This function is
used by the upgrade tools to convert between the two coordinate systems.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Sends one or more keystrokes to the active window as if typed at the keyboard.
[[Link]("[Link].* classes are obsolete and supported within 32
bit processes only. [Link]
public static void SendKeys (string Keys, bool Wait = false);
static member SendKeys : string * bool -> unit

Parameters
Keys String String
A String that contains the key values.
Wait Boolean Boolean
true to process keystrokes before control is returned to the procedure; otherwise false .
Attributes ObsoleteAttribute

Remarks
This function is used by the upgrade tools to emulate the Visual Basic 6.0 SendKeys method. In Visual Basic, use the
[Link] method instead.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Sets the CancelButton property of a Form.
[[Link]("[Link].* classes are obsolete and supported within 32
bit processes only. [Link]
public static void SetCancel ([Link] btn, bool Cancel);
static member SetCancel : [Link] * bool -> unit

Parameters
btn Button Button
A Button.
Cancel Boolean Boolean
true if the Visual Basic 6.0 CommandButton control's Cancel property is true ; otherwise false .
Attributes ObsoleteAttribute

Remarks
In Visual Basic 6.0, the Boolean Default and Cancel properties of a CommandButton control determine whether the
control responds to the ENTER or ESC keys, respectively. In Visual Basic, the Button control no longer has Default or
Cancel properties. The Form object has AcceptButton and CancelButton properties that provide the same
functionality; these properties take the name of a Button control as an argument.
This function is used by the upgrade tools to set the CancelButton property of a [Link] on the Cancel property
of an upgraded Visual Basic 6.0 CommandButton control.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Sets the AcceptButton property of a Form.
[[Link]("[Link].* classes are obsolete and supported within 32
bit processes only. [Link]
public static void SetDefault ([Link] btn, bool Default);
static member SetDefault : [Link] * bool -> unit

Parameters
btn Button Button
A Button.
Default Boolean Boolean
true if the Visual Basic 6.0 CommandButton control's Default property is true ; otherwise false .
Attributes ObsoleteAttribute

Remarks
In Visual Basic 6.0, the Boolean Default and Cancel properties of a CommandButton control determine whether the
control responds to the ENTER or ESC keys, respectively. In Visual Basic, the Button control no longer has Default or
Cancel properties. The Form object has AcceptButton and CancelButton properties that provide the same
functionality; these properties take the name of a Button control as an argument.
This function is used by the upgrade tools to set the AcceptButton property of a [Link] on the Default property
of an upgraded Visual Basic 6.0 CommandButton control.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Sets the ItemData property for a ListBoxItem.
[[Link]("[Link].* classes are obsolete and supported within 32
bit processes only. [Link]
public static void SetItemData ([Link] Control, int Index, int ItemData);
static member SetItemData : [Link] * int * int -> unit

Parameters
Control Control Control
A ListBox or ComboBox control.
Index Int32 Int32
The Index of the ListBoxItem.
ItemData Int32 Int32
An Integer to assign to the ItemData property.
Attributes ObsoleteAttribute

Remarks
In Visual Basic 6.0, the ItemData property for a ListBox or ComboBox control could be set at design time in the
Properties window to associate an Integer with a ListBox or ComboBox item. In Visual Basic, the ItemData
property no longer exists; the GetItemData and SetItemData methods can be used to emulate the behavior of
ItemData .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Sets the ItemString property for a ListBoxItem.
[[Link]("[Link].* classes are obsolete and supported within 32
bit processes only. [Link]
public static void SetItemString ([Link] Control, int Index, string
ItemString);
static member SetItemString : [Link] * int * string -> unit

Parameters
Control Control Control
A ListBoxListBox or ComboBox control.
Index Int32 Int32
The Index of the ListBoxItem.
ItemString String String
A String to assign to the ItemString property.
Attributes ObsoleteAttribute

Remarks
This function is used by the upgrade tools to emulate the Visual Basic 6.0 List property. In Visual Basic, use the Items
or Items property instead.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
BaseName
I n this Article

Overloads
SetResourceBaseName(String) SetResourceBaseName(String)
Assigns the name of a Visual Basic 6.0 resource file to the
current Visual Basic project namespace.

SetResourceBaseName(String, String) SetResourceBaseName(


String, String) Assigns the name of a Visual Basic 6.0 resource file to a Visual
Basic project namespace.

SetResourceBaseName(String) SetResourceBaseName(String)
Assigns the name of a Visual Basic 6.0 resource file to the current Visual Basic project namespace.
[[Link]("[Link].* classes are obsolete and supported within 32
bit processes only. [Link]
public static void SetResourceBaseName (string BaseFileName);
static member SetResourceBaseName : string -> unit

Parameters
BaseFileName String String
A resource file (.res).
Attributes ObsoleteAttribute
Remarks
Resource handling is different for Visual Basic 6.0 and Visual Basic. This function is used by the upgrade tools to add a
Visual Basic 6.0 resource file to a project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

SetResourceBaseName(String, String)
SetResourceBaseName(String, String)
Assigns the name of a Visual Basic 6.0 resource file to a Visual Basic project namespace.
[[Link]("[Link].* classes are obsolete and supported within 32
bit processes only. [Link]
public static void SetResourceBaseName (string ProjectNamespace, string BaseFileName);
static member SetResourceBaseName : string * string -> unit

Parameters
ProjectNamespace String String
A String that contains the Namespace for the resource file.
BaseFileName String String
A resource file (.res).
Attributes ObsoleteAttribute
Remarks
Resource handling is different for Visual Basic 6.0 and Visual Basic. This function is used by the upgrade tools to add a
Visual Basic 6.0 resource file to a project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Displays a form by calling either the Show () or ShowDialog() method.
[[Link]("[Link].* classes are obsolete and supported within 32
bit processes only. [Link]
public static void ShowForm ([Link] Form, int Modal = 0,
[Link] OwnerForm = null);
static member ShowForm : [Link] * int * [Link] -> unit

Parameters
Form Form Form
The Form to display.
Modal Int32 Int32
Optional. A FormShowConstants enumeration that specifies modality.
OwnerForm Form Form
Optional. The owner parameter of the ShowDialog() method.
Attributes ObsoleteAttribute

Remarks
In Visual Basic 6.0, the Show method specified whether a Form would be displayed modally; in Visual Basic it is
replaced by the Show and ShowDialog methods. This function is used by the upgrade tools to map the Visual Basic 6.0
Show method to either the Show or ShowDialog method.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Formats strings to simulate the Visual Basic 6.0 [Link] functionality.

[[Link]("[Link].* classes are obsolete and supported within 32


bit processes only. [Link]
public static string TabLayout (params object[] Args);
static member TabLayout : obj[] -> string

Parameters
Args Object[]
An expression or list of expressions to print.
Returns
String String
A formatted String.
Attributes ObsoleteAttribute

Remarks
In Visual Basic 6.0, the [Link] method had an outputlist parameter that specified how output was formatted
in the Immediate window. This function is used by the upgrade tools to translate the outputlist parameter into a
string for display in the Immediate window.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Converts a Visual Basic 6.0 ScaleHeight measurement to a pixel measurement.

[[Link]("[Link].* classes are obsolete and supported within 32


bit processes only. [Link]
public static double ToPixelsUserHeight (double Height, double ScaleHeight, int
OriginalHeightInPixels);
static member ToPixelsUserHeight : double * double * int -> double

Parameters
Height Double Double
A Double that represents the height.
ScaleHeight Double Double
A Double that represents the Visual Basic 6.0 ScaleHeight for the current ScaleMode .
OriginalHeightInPixels Int32 Int32
An Integer that represents the height in pixels.
Returns
Double Double
A Double that contains the converted Visual Basic 6.0 ScaleHeight .
Attributes ObsoleteAttribute

Remarks
Visual Basic 6.0 supported multiple coordinate systems defined by a ScaleMode property. This included a user-defined
value. Visual Basic only supports a coordinate system that is based on pixels. This function is used by the upgrade tools
to convert between pixels and a user-defined scale value.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Converts a Visual Basic 6.0 ScaleWidth measurement to a pixel measurement.

[[Link]("[Link].* classes are obsolete and supported within 32


bit processes only. [Link]
public static double ToPixelsUserWidth (double Width, double ScaleWidth, int OriginalWidthInPixels);
static member ToPixelsUserWidth : double * double * int -> double

Parameters
Width Double Double
A Double that represents the width.
ScaleWidth Double Double
A Double that represents the Visual Basic 6.0 ScaleWidth for the current ScaleMode .

OriginalWidthInPixels Int32 Int32


An Integer that represents the width in pixels.
Returns
Double Double
A Double that contains the converted Visual Basic 6.0 ScaleWidth .
Attributes ObsoleteAttribute

Remarks
Visual Basic 6.0 supported multiple coordinate systems defined by a ScaleMode property. This included a user-defined
value. Visual Basic only supports a coordinate system that is based on pixels. This function is used by the upgrade tools
to convert between pixels and a user-defined scale value.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Converts a Visual Basic 6.0 ScaleLeft measurement to a pixel measurement.

[[Link]("[Link].* classes are obsolete and supported within 32


bit processes only. [Link]
public static double ToPixelsUserX (double X, double ScaleLeft, double ScaleWidth, int
OriginalWidthInPixels);
static member ToPixelsUserX : double * double * double * int -> double

Parameters
X Double Double
A Double that represents the X coordinate.
ScaleLeft Double Double
A Double that represents the Visual Basic 6.0 ScaleLeft for the current ScaleMode .
ScaleWidth Double Double
A Double that represents the Visual Basic 6.0 ScaleWidth for the current ScaleMode .
OriginalWidthInPixels Int32 Int32
An Integer that represents the width in pixels.
Returns
Double Double
A Double that contains the converted Visual Basic 6.0 ScaleLeft .
Attributes ObsoleteAttribute

Remarks
Visual Basic 6.0 supported multiple coordinate systems defined by a ScaleMode property. This included a user-defined
value. Visual Basic only supports a coordinate system that is based on pixels. This function is used by the upgrade tools
to convert between pixels and a user-defined scale value.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Converts a Visual Basic 6.0 ScaleTop measurement to a pixel measurement.

[[Link]("[Link].* classes are obsolete and supported within 32


bit processes only. [Link]
public static double ToPixelsUserY (double Y, double ScaleTop, double ScaleHeight, int
OriginalHeightInPixels);
static member ToPixelsUserY : double * double * double * int -> double

Parameters
Y Double Double
A Double that represents the Y coordinate.
ScaleTop Double Double
A Double that represents the Visual Basic 6.0 ScaleTop for the current ScaleMode .
ScaleHeight Double Double
A Double that represents the Visual Basic 6.0 ScaleHeight for the current ScaleMode .
OriginalHeightInPixels Int32 Int32
An Integer that represents the height in pixels.
Returns
Double Double
A Double that contains the converted Visual Basic 6.0 ScaleLeft .
Attributes ObsoleteAttribute

Remarks
Visual Basic 6.0 supported multiple coordinate systems defined by a ScaleMode property. This included a user-defined
value. Visual Basic only supports a coordinate system that is based on pixels. This function is used by the upgrade tools
to convert between pixels and a user-defined scale value.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Converts a Visual Basic 6.0 measurement to a pixel measurement for a given ScaleMode.
[[Link]("[Link].* classes are obsolete and supported within 32
bit processes only. [Link]
public static double ToPixelsX (double X, [Link]
FromScale);
static member ToPixelsX : double * [Link] -> double

Parameters
X Double Double
A Double that represents the X coordinate.
FromScale ScaleMode ScaleMode
A ScaleMode enumeration that represents the Visual Basic 6.0 ScaleMode to convert from.
Returns
Double Double
A Double that contains the pixel value for the specified ScaleMode .

Attributes ObsoleteAttribute

Remarks
Visual Basic 6.0 supported multiple coordinate systems defined by a ScaleMode property. This included a user-defined
value. Visual Basic only supports a coordinate system that is based on pixels. This function is used by the upgrade tools
to convert between pixels and a user-defined scale value.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Converts a Visual Basic 6.0 measurement to a pixel measurement for a given ScaleMode.
[[Link]("[Link].* classes are obsolete and supported within 32
bit processes only. [Link]
public static double ToPixelsY (double Y, [Link]
FromScale);
static member ToPixelsY : double * [Link] -> double

Parameters
Y Double Double
A Double that represents the Y coordinate.
FromScale ScaleMode ScaleMode
A ScaleMode enumeration that represents the Visual Basic 6.0 ScaleMode to convert from.
Returns
Double Double
A Double that contains the pixel value for the specified ScaleMode .

Attributes ObsoleteAttribute

Remarks
Visual Basic 6.0 supported multiple coordinate systems defined by a ScaleMode property. This included a user-defined
value. Visual Basic only supports a coordinate system that is based on pixels. This function is used by the upgrade tools
to convert between pixels and a user-defined scale value.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets a value that is used to convert twips to pixels based on screen settings.
[[Link]("[Link].* classes are obsolete and supported within 32
bit processes only. [Link]
public static float TwipsPerPixelX ();
static member TwipsPerPixelX : unit -> single

Returns
Single Single
A Double that contains the conversion factor.
Attributes ObsoleteAttribute

Remarks
In Visual Basic 6.0, coordinates were expressed in twips; in Visual Basic they are expressed in pixels. This function is
used by the upgrade tools to convert between the two coordinate systems.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets a value that is used to convert twips to pixels based on screen settings.
[[Link]("[Link].* classes are obsolete and supported within 32
bit processes only. [Link]
public static float TwipsPerPixelY ();
static member TwipsPerPixelY : unit -> single

Returns
Single Single
A Double that contains the conversion factor.
Attributes ObsoleteAttribute

Remarks
In Visual Basic 6.0, coordinates were expressed in twips; in Visual Basic they are expressed in pixels. This function is
used by the upgrade tools to convert between the two coordinate systems.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Converts an X coordinate from twips to pixels.
[[Link]("[Link].* classes are obsolete and supported within 32
bit processes only. [Link]
public static double TwipsToPixelsX (double X);
static member TwipsToPixelsX : double -> double

Parameters
X Double Double
A Double that contains the X coordinate to convert.
Returns
Double Double
A Double that contains the X coordinate expressed in pixels.
Attributes ObsoleteAttribute

Remarks
In Visual Basic 6.0, coordinates were expressed in twips; in Visual Basic they are expressed in pixels. This function is
used by the upgrade tools to convert between the two coordinate systems.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Converts a Y coordinate from twips to pixels.
[[Link]("[Link].* classes are obsolete and supported within 32
bit processes only. [Link]
public static double TwipsToPixelsY (double Y);
static member TwipsToPixelsY : double -> double

Parameters
Y Double Double
A Double that contains the X coordinate to convert.
Returns
Double Double
A Double that contains the Y coordinate expressed in pixels.
Attributes ObsoleteAttribute

Remarks
In Visual Basic 6.0, coordinates were expressed in twips; in Visual Basic they are expressed in pixels. This function is
used by the upgrade tools to convert between the two coordinate systems.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Emulates the behavior of the Visual Basic 6.0 ValidateControls method.

[[Link]("[Link].* classes are obsolete and supported within 32


bit processes only. [Link]
public static void ValidateControls ([Link] Form);
static member ValidateControls : [Link] -> unit

Parameters
Form ContainerControl ContainerControl
The ContainerControl where the control is parented.
Attributes ObsoleteAttribute

Remarks
In Visual Basic 6.0, the ValidateControls method was used to force the Validate event for the control that has focus
when a form is closed; if the Validate event fails, an error was raised. In Visual Basic, the ValidateControls method
is replaced by the Validate method, which returns true or false .

This function is used by the upgrade tools to emulate the Visual Basic 6.0 behavior.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Displays pop-up Help for a form upgraded from Visual Basic 6.0.
[[Link]("[Link].* classes are obsolete and supported within 32
bit processes only. [Link]
public static void WhatsThisMode ([Link] Form);
static member WhatsThisMode : [Link] -> unit

Parameters
Form Form Form
A Form.
Attributes ObsoleteAttribute

Remarks
Pop-up Help in Visual Basic 6.0 was implemented by using the WhatsThisButton and WhatsThisHelp properties of a
form; pop-up Help in Visual Basic is implemented by using the HelpButton property of a form. This function is used by
the upgrade tools to change the method of displaying pop-up Help in an upgraded application.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Converts the Visual Basic ZOrder method for use in Visual Basic.

[[Link]("[Link].* classes are obsolete and supported within 32


bit processes only. [Link]
public static void ZOrder ([Link] Control, int Position);
static member ZOrder : [Link] * int -> unit

Parameters
Control Control Control
A Control.
Position Int32 Int32
A ZOrderConstants enumeration.
Attributes ObsoleteAttribute

Remarks
In Visual Basic 6.0, the ZOrder method was used to specify the layering of controls; in Visual Basic .it is replaced by the
BringToFront and SendToBack methods. This function is used by the upgrade tools to map between the methods.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
TabControlArray TabControlArray Class
Provides a control array of TabControl controls

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class TabControlArray : [Link],
[Link]
type TabControlArray = class
inherit BaseControlArray
interface IExtenderProvider

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component
BaseControlArray BaseControlArray

Remarks
The TabControlArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0 TabControl
control array. It does not provide the design-time features of a Visual Basic 6.0 control array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
TabControlArray()
TabControlArray()

Initializes a new instance of the TabControlArray class.

TabControlArray(IContainer)
TabControlArray(IContainer)

Initializes a new instance of the TabControlArray class, specifying its container.

Properties
Item[Int16]
Item[Int16]

Gets a specific element of a TabControlArray by index. Read-only.


Methods
CanExtend(Object)
CanExtend(Object)

Gets a value that determines whether a control is a member of a TabControlArray.

GetControlInstanceType()
GetControlInstanceType()

Overrides GetControlInstanceType().

GetIndex(TabControl)
GetIndex(TabControl)

Gets the index of a TabControl in a TabControlArray.

HookUpControlEvents(Object)
HookUpControlEvents(Object)

Overrides HookUpControlEvents(Object).

ResetIndex(TabControl)
ResetIndex(TabControl)

The ResetIndex method is not supported in the TabControlArray class.

SetIndex(TabControl, Int16)
SetIndex(TabControl, Int16)

Sets the index of the initial TabControl in a TabControlArray.

ShouldSerializeIndex(TabControl)
ShouldSerializeIndex(TabControl)

Returns a value that indicates whether a TabControl is a member of this TabControlArray.

Events
BindingContextChanged
BindingContextChanged

Occurs when the value of the BindingContext property changes.

CausesValidationChanged
CausesValidationChanged

Occurs when the value of the CausesValidation property changes.

ChangeUICues
ChangeUICues

Occurs when the focus or keyboard user interface (UI) cues change.

Click
Click

Occurs when a TabControl in a TabControlArray is clicked.

ClientSizeChanged
ClientSizeChanged

Occurs when the value of the ClientSize property changes.

ContextMenuChanged
ContextMenuChanged

Occurs when the value of the ContextMenu property changes.

ContextMenuStripChanged
ContextMenuStripChanged

Occurs when the value of the ContextMenuStrip property changes.

ControlAdded
ControlAdded

Occurs when a new control is added to the [Link].

ControlRemoved
ControlRemoved

Occurs when a control is removed from the [Link].

CursorChanged
CursorChanged

Occurs when the value of the Cursor property changes.


Deselected
Deselected

Occurs when a tab is deselected.

Deselecting
Deselecting

Occurs before a tab is deselected, enabling a handler to cancel the tab change.

DockChanged
DockChanged

Occurs when the value of the Dock property changes.

DoubleClick
DoubleClick

Occurs when a TabControl control in a TabControlArray is double-clicked.

DragDrop
DragDrop

Occurs when a drag-and-drop operation is completed.

DragEnter
DragEnter

Occurs when an object is dragged into the control's bounds.

DragLeave
DragLeave

Occurs when an object is dragged out of the control's bounds.

DragOver
DragOver

Occurs when an object is dragged over the control's bounds.

DrawItem
DrawItem

Occurs when the TabControl needs to paint each of its tabs if the DrawMode property is set to OwnerDrawFixed.
EnabledChanged
EnabledChanged

Occurs when the value of the Enabled property changes.

Enter
Enter

Occurs when the control is entered.

FontChanged
FontChanged

Occurs when the value of the Font property changes.

GiveFeedback
GiveFeedback

Occurs during a drag operation.

HelpRequested
HelpRequested

Occurs when the user requests help for a control.

ImeModeChanged
ImeModeChanged

Occurs when the value of the ImeMode property changes.

KeyDown
KeyDown

Occurs when a key is pressed and the control has focus.

KeyPress
KeyPress

Occurs when a key is pressed and the control has focus.

KeyUp
KeyUp

Occurs when a key is released and the control has focus.


Layout
Layout

Occurs when a control should reposition its child controls.

Leave
Leave

Occurs when the input focus leaves the control.

LocationChanged
LocationChanged

Occurs when the value of the Location property changes.

MarginChanged
MarginChanged

Occurs when the value of the Margin property changes.

MouseCaptureChanged
MouseCaptureChanged

Occurs when the control loses or gains mouse capture.

MouseClick
MouseClick

Occurs when the control is clicked by the mouse.

MouseDoubleClick
MouseDoubleClick

Occurs when the control is double-clicked by the mouse.

MouseDown
MouseDown

Occurs when the mouse pointer is over the control and a mouse button is pressed.

MouseEnter
MouseEnter

Occurs when the mouse pointer enters the control.


MouseHover
MouseHover

Occurs when the mouse pointer rests on the control.

MouseLeave
MouseLeave

Occurs when the mouse pointer leaves the control.

MouseMove
MouseMove

Occurs when the mouse pointer is moved over the control.

MouseUp
MouseUp

Occurs when the mouse pointer is over the control and a mouse button is released.

Move
Move

Occurs when the control is moved.

PaddingChanged
PaddingChanged

Occurs when the control's Padding property changes.

ParentChanged
ParentChanged

Occurs when the control's Parent property changes.

QueryAccessibilityHelp
QueryAccessibilityHelp

Occurs when an AccessibleObject is providing Help to accessibility applications.

QueryContinueDrag
QueryContinueDrag

Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.
RegionChanged
RegionChanged

Occurs when the value of the Region property changes.

Resize
Resize

Occurs when the control is resized.

RightToLeftChanged
RightToLeftChanged

Occurs when the RightToLeftChanged property value changes.

RightToLeftLayoutChanged
RightToLeftLayoutChanged

Occurs when the RightToLeftLayout property changes.

Selected
Selected

Occurs when a tab is selected.

SelectedIndexChanged
SelectedIndexChanged

Occurs when the SelectedIndex property has changed.

Selecting
Selecting

Occurs before a tab is selected, enabling a handler to cancel the tab change.

SizeChanged
SizeChanged

Occurs when the Size property value changes.

StyleChanged
StyleChanged

Occurs when the control style changes.


SystemColorsChanged
SystemColorsChanged

Occurs when the system colors change.

TabIndexChanged
TabIndexChanged

Occurs when the TabIndex property value changes.

TabStopChanged
TabStopChanged

Occurs when the TabStop property value changes.

Validated
Validated

Occurs when the control is finished validating.

Validating
Validating

Occurs when the control is validating.

VisibleChanged
VisibleChanged

Occurs when the Visible property value changes.


[Link] TabControl
[Link]
I n this Article
Occurs when the value of the BindingContext property changes.

public event EventHandler BindingContextChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BindingContext property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets a value that determines whether a control is a member of a TabControlArray.
public bool CanExtend (object target);
abstract member CanExtend : obj -> bool
override [Link] : obj -> bool

Parameters
target Object Object
A TabControl control.
Returns
Boolean Boolean
true if target is a member of the control array; otherwise, false .

Remarks
The CanExtend method can be used to determine whether a specific TabControl control is the base element of the
control array from which the other elements were cloned.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] TabControl
[Link]
I n this Article
Occurs when the value of the CausesValidation property changes.

public event EventHandler CausesValidationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the CausesValidation property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
UICues
I n this Article
Occurs when the focus or keyboard user interface (UI) cues change.

public event [Link] ChangeUICues;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a TabControl in a TabControlArray is clicked.
public event EventHandler Click;
member [Link] : EventHandler

Remarks
The Click event passes an EventArgs to its event handler. Therefore it only indicates that a click has occurred. If you
need more specific mouse information (button, number of clicks, wheel rotation, or location), use the MouseClick event.
However, the MouseClick event will not be raised if the click is caused by action other than that of the mouse, such as
pressing the ENTER key.
A double-click is determined by the mouse settings of the user's operating system. The user can set the time between
clicks of a mouse button that should be considered a double-click instead of two clicks. The Click event is raised every
time that a control is double-clicked. For example, if you have event handlers for the Click and DoubleClick events of
a control, the Click and DoubleClick events are raised when the control is double-clicked and both methods are
called. If a control is double-clicked and that control does not support the DoubleClick event, the Click event might be
raised two times.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] TabControlArray.
ClientSizeChanged
I n this Article
Occurs when the value of the ClientSize property changes.

public event EventHandler ClientSizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ClientSize property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] TabControlArray.
ContextMenuChanged
I n this Article
Occurs when the value of the ContextMenu property changes.

[[Link](false)]
public event EventHandler ContextMenuChanged;
member [Link] : EventHandler

Attributes BrowsableAttribute

Remarks
This event is raised if the ContextMenu property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] TabControl
[Link]
I n this Article
Occurs when the value of the ContextMenuStrip property changes.

public event EventHandler ContextMenuStripChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ContextMenuStrip property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Added
I n this Article
Occurs when a new control is added to the [Link].

public event [Link] ControlAdded;


member [Link] : [Link]

Remarks
This event is raised if the ContextMenuStrip property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] TabControlArray.
ControlRemoved
I n this Article
Occurs when a control is removed from the [Link].

public event [Link] ControlRemoved;


member [Link] : [Link]

Remarks
This event is raised if the ContextMenuStrip property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Cursor property changes.

public event EventHandler CursorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Cursor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a tab is deselected.
public event [Link] Deselected;
member [Link] : [Link]

Remarks
When the current tab changes in a TabControl, the following events occur in the following order.
Deselecting
Deselected

Selecting
Selected
These events let you perform tasks such as canceling a tab change if a TabPage is in an invalid state or updating the
state of a newly displayed TabPage.
The current tab changes when the user clicks a tab, when you call the DeselectTab or SelectTab method, or when you
change the value of the SelectedIndex or SelectedTab property.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] TabControlArray.
Deselecting
I n this Article
Occurs before a tab is deselected, enabling a handler to cancel the tab change.

public event [Link] Deselecting;


member [Link] : [Link]

Remarks
When the current tab changes in a TabControl, the following events occur in the following order.
Deselecting

Deselected
Selecting
Selected
These events let you perform tasks such as canceling a tab change if a TabPage is in an invalid state or updating the
state of a newly displayed TabPage.
The current tab changes when the user clicks a tab, when you call the DeselectTab or SelectTab method, or when you
change the value of the SelectedIndex or SelectedTab property.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Dock property changes.

public event EventHandler DockChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Dock property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Click
I n this Article
Occurs when a TabControl control in a TabControlArray is double-clicked.

public event EventHandler DoubleClick;


member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a drag-and-drop operation is completed.
public event [Link] DragDrop;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged into the control's bounds.
public event [Link] DragEnter;
member [Link] : [Link]

Remarks
The DragEnter event is raised when the user first drags the mouse cursor over the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged out of the control's bounds.
public event EventHandler DragLeave;
member [Link] : EventHandler

Remarks
The DragLeave event is raised when the user drags the cursor out of the control or the user cancels the current drag-
and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged over the control's bounds.
public event [Link] DragOver;
member [Link] : [Link]

Remarks
The DragOver event is raised when the mouse cursor moves within the bounds of the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the TabControl needs to paint each of its tabs if the DrawMode property is set to OwnerDrawFixed.
public event [Link] DrawItem;
member [Link] : [Link]

Remarks
When you set the DrawMode property to OwnerDrawFixed, the TabControl raises the DrawItem event whenever it
needs to paint one of its tabs. To customize the appearance of the tabs, provide your own painting code in a handler for
the DrawItem event.
The TabControl does not support variable tab sizes with owner drawing.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] TabControlArray.
EnabledChanged
I n this Article
Occurs when the value of the Enabled property changes.

public event EventHandler EnabledChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Enabled property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is entered.
public event EventHandler Enter;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Font property changes.

public event EventHandler FontChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Font property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] TabControl
[Link]
I n this Article
Overrides GetControlInstanceType().

protected override Type GetControlInstanceType ();


override [Link] : unit -> Type

Returns
Type Type
The type of a control in a control array.

Remarks
This method cannot be called from your application's code. Use the GetType method instead.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the index of a TabControl in a TabControlArray.
public short GetIndex ([Link] o);
member [Link] : [Link] -> int16

Parameters
o TabControl TabControl
A TabControl in the control array.
Returns
Int16 Int16
A Short that represents the index of the specified TabControl.

Remarks
This method can be used to retrieve the index for the specified TabControl.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Feedback
I n this Article
Occurs during a drag operation.

public event [Link] GiveFeedback;


member [Link] : [Link]

Remarks
The GiveFeedback event is raised when a drag-and-drop operation is started. With the GiveFeedback event, the
source of a drag event can modify the appearance of the mouse pointer in order to give the user visual feedback during
a drag-and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Requested
I n this Article
Occurs when the user requests help for a control.

public event [Link] HelpRequested;


member [Link] : [Link]

Remarks
The HelpRequested event is typically raised when the user presses the F1 key or an associated context-sensitive Help
button is clicked.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] TabControlArray.
HookUpControlEvents
I n this Article
Overrides HookUpControlEvents(Object).

protected override void HookUpControlEvents (object o);


override [Link] : obj -> unit

Parameters
o Object Object
An Object.

Remarks
This method cannot be called from your application's code. Use AddHandler to hook up events for any controls that
are added by using the Load method.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ModeChanged
I n this Article
Occurs when the value of the ImeMode property changes.

public event EventHandler ImeModeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ImeMode property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link][Int16] [Link][Int16]
I n this Article
Gets a specific element of a TabControlArray by index. Read-only.
public [Link] this[short Index] { get; }
member [Link](int16) : [Link]

Parameters
Index Int16 Int16
A Short that specifies the position of an element of the control array.
Returns
TabControl TabControl
A TabControl at the specified Index in the control array.

Remarks
The Item property is the default property for a control array. Therefore, the following lines of code are equivalent.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is pressed and the control has focus.
public event [Link] KeyDown;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown

KeyPress
KeyUp
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is pressed and the control has focus.
public event [Link] KeyPress;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress

KeyUp
The KeyPress event is not raised by noncharacter keys; however, the noncharacter keys do raise the KeyDown and
KeyUp events.
Use the KeyChar property to sample keystrokes at run time and to consume or modify a subset of common keystrokes.
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is released and the control has focus.
public event [Link] KeyUp;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress
KeyUp

To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a control should reposition its child controls.
public event [Link] Layout;
member [Link] : [Link]

Remarks
The Layout event occurs when child controls are added or removed, when the bounds of the control changes, and
when other changes occur that can affect the layout of the control. The layout event can be suppressed by using the
SuspendLayout and ResumeLayout methods. Suspending layout enables you to perform multiple actions on a control
without having to perform a layout for each change. For example, if you resize and move a control, each operation
would raise a Layout event.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the input focus leaves the control.
public event EventHandler Leave;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), or by calling the Select or
SelectNextControl method, focus events occur in the following order:
Enter
GotFocus
Leave

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] TabControlArray.
LocationChanged
I n this Article
Occurs when the value of the Location property changes.

public event EventHandler LocationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Location property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] TabControlArray.
MarginChanged
I n this Article
Occurs when the value of the Margin property changes.

public event EventHandler MarginChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Margin property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] TabControl
[Link]
I n this Article
Occurs when the control loses or gains mouse capture.

public event EventHandler MouseCaptureChanged;


member [Link] : EventHandler

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown
Click
MouseClick

MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate an MouseDoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a control. They are often raised by other actions, such as pressing the
ENTER key when the control has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is clicked by the mouse.
public event [Link] MouseClick;
member [Link] : [Link]

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown
Click
MouseClick

MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate a MouseDoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a shape. They are often raised by other actions, such as pressing the
ENTER key when the shape has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] TabControlArray.
MouseDoubleClick
I n this Article
Occurs when the control is double-clicked by the mouse.

public event [Link] MouseDoubleClick;


member [Link] : [Link]

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown
Click
MouseClick
MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate a DoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a shape. They are often raised by other actions, such as pressing the
ENTER key when the shape has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Down
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is pressed.

public event [Link] MouseDown;


member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel

MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Enter
I n this Article
Occurs when the mouse pointer enters the control.

public event EventHandler MouseEnter;


member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter

MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Hover
I n this Article
Occurs when the mouse pointer rests on the control.

public event EventHandler MouseHover;


member [Link] : EventHandler

Remarks
A typical use of MouseHover is to display a tool tip when the mouse pauses on a control within a specified area around
the control (the "hover rectangle"). The pause required for this event to be raised is specified in milliseconds by the
MouseHoverTime property.
The MouseHover event is defined and detected in connection with the MouseHoverSize and MouseHoverTime
properties.
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Leave
I n this Article
Occurs when the mouse pointer leaves the control.

public event EventHandler MouseLeave;


member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Move
I n this Article
Occurs when the mouse pointer is moved over the control.

public event [Link] MouseMove;


member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove

MouseHover / MouseDown / MouseWheel


MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is released.
public event [Link] MouseUp;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp

MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is moved.
public event EventHandler Move;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] TabControlArray.
PaddingChanged
I n this Article
Occurs when the control's Padding property changes.

public event EventHandler PaddingChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Padding property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control's Parent property changes.

public event EventHandler ParentChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Parent property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] TabControlArray.
QueryAccessibilityHelp
I n this Article
Occurs when an AccessibleObject is providing Help to accessibility applications.

public event [Link] QueryAccessibilityHelp;


member [Link] : [Link]

Remarks
You should use the HelpProvider class to enable users to invoke Help on your accessible object by pressing the F1 key.
The HelpProvider gives you complete information in the QueryAccessibilityHelpEventArgs.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] TabControlArray.
QueryContinueDrag
I n this Article
Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.
public event [Link] QueryContinueDrag;
member [Link] : [Link]

Remarks
The QueryContinueDrag event is raised when there is a change in the keyboard or mouse button state during a drag-
and-drop operation. The QueryContinueDrag event enables the drag source to determine whether the drag-and-drop
operation should be canceled.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Region property changes.

public event EventHandler RegionChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Region property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
The ResetIndex method is not supported in the TabControlArray class.

public void ResetIndex ([Link] o);


member [Link] : [Link] -> unit

Parameters
o TabControl TabControl
A Control.

Remarks
This method is not supported, and calling it does not raise an exception.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is resized.
public event EventHandler Resize;
member [Link] : EventHandler

Remarks
To determine the Size of the resized control, you can cast the sender parameter of the EventArgs data to a Control and
get its Size property (or Height and Width properties individually).
To handle custom layouts, use the Layout event instead of the Resize event. The Layout event is raised in response to
a Resize event, but also in response to other changes that affect the layout of the control.

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] TabControlArray.
RightToLeftChanged
I n this Article
Occurs when the RightToLeftChanged property value changes.

public event EventHandler RightToLeftChanged;


member [Link] : EventHandler

Remarks
This event is raised if the RightToLeft property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] TabControl
[Link]
I n this Article
Occurs when the RightToLeftLayout property changes.

public event EventHandler RightToLeftLayoutChanged;


member [Link] : EventHandler

Remarks
This event is raised if the RightToLeftLayout property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a tab is selected.
public event [Link] Selected;
member [Link] : [Link]

Remarks
When the current tab changes in a TabControl, the following events occur in the following order.
Deselecting
Deselected
Selecting
Selected

These events let you perform tasks such as canceling a tab change if a TabPage is in an invalid state or updating the
state of a newly displayed TabPage.
The current tab changes when the user clicks a tab, when you call the DeselectTab or SelectTab method, or when you
change the value of the SelectedIndex or SelectedTab property.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] TabControlArray.
SelectedIndexChanged
I n this Article
Occurs when the SelectedIndex property has changed.

public event EventHandler SelectedIndexChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SelectedIndex property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs before a tab is selected, enabling a handler to cancel the tab change.
public event [Link] Selecting;
member [Link] : [Link]

Remarks
When the current tab changes in a TabControl, the following events occur in the following order.
Deselecting
Deselected
Selecting

Selected
These events let you perform tasks such as canceling a tab change if a TabPage is in an invalid state or updating the
state of a newly displayed TabPage.
The current tab changes when the user clicks a tab, when you call the DeselectTab or SelectTab method, or when you
change the value of the SelectedIndex or SelectedTab property.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Sets the index of the initial TabControl in a TabControlArray.
public void SetIndex ([Link] o, short Index);
member [Link] : [Link] * int16 -> unit

Parameters
o TabControl TabControl
A TabControl in the control array.
Index Int16 Int16
A Short that represents the index of the specified TabControl.

Remarks
The SetIndex method should only be called when you are creating the initial element in the control array. To add
subsequent elements, call the Load method and specify the Index .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] TabControlArray.
ShouldSerializeIndex
I n this Article
Returns a value that indicates whether a TabControl is a member of this TabControlArray.

public bool ShouldSerializeIndex ([Link] o);


member [Link] : [Link] -> bool

Parameters
o TabControl TabControl
A TabControl in the control array.
Returns
Boolean Boolean
true if o is a member of this control array; otherwise, false .

Remarks
If the specified TabControl is a member of a different TabControlArray, ShouldSerializeIndex returns false .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Size property value changes.

public event EventHandler SizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Size property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control style changes.

public event EventHandler StyleChanged;


member [Link] : EventHandler

Remarks
The StyleChanged event occurs when ControlStyles flags have been added or changed.
This event is raised if the control style is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] TabControlArray.
SystemColorsChanged
I n this Article
Occurs when the system colors change.

public event EventHandler SystemColorsChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SystemColors is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
TabControlArray TabControlArray
I n this Article

Overloads
TabControlArray()
Initializes a new instance of the TabControlArray class.

TabControlArray(IContainer) TabControlArray(IContainer)
Initializes a new instance of the TabControlArray class,
specifying its container.

TabControlArray()
Initializes a new instance of the TabControlArray class.
public TabControlArray ();

Remarks
When you instantiate a TabControlArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

TabControlArray(IContainer) TabControlArray(IContainer)
Initializes a new instance of the TabControlArray class, specifying its container.

public TabControlArray ([Link] Container);


new [Link] : [Link] ->
[Link]

Parameters
Container IContainer IContainer
The IContainer where the control array will be hosted.
Remarks
When you instantiate a TabControlArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
IndexChanged
I n this Article
Occurs when the TabIndex property value changes.

public event EventHandler TabIndexChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabIndex property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
StopChanged
I n this Article
Occurs when the TabStop property value changes.

public event EventHandler TabStopChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabStop property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is finished validating.
public event EventHandler Validated;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated

If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is validating.
public event [Link] Validating;
member [Link] : [Link]

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated
If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Visible property value changes.

public event EventHandler VisibleChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Visible property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
TextBoxArray TextBoxArray Class
Provides a control array of TextBox controls

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class TextBoxArray : [Link],
[Link]
type TextBoxArray = class
inherit BaseControlArray
interface IExtenderProvider

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component
BaseControlArray BaseControlArray

Remarks
The TextBoxArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0 TextBox control
array. It does not provide the design-time features of a Visual Basic 6.0 control array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
TextBoxArray()
TextBoxArray()

Initializes a new instance of the TextBoxArray class.

TextBoxArray(IContainer)
TextBoxArray(IContainer)

Initializes a new instance of the TextBoxArray class, specifying its container.

Properties
Item[Int16]
Item[Int16]

Gets a specific element of a TextBoxArray by index. Read-only.


Methods
CanExtend(Object)
CanExtend(Object)

Gets a value that determines whether a control is a member of a TextBoxArray.

GetControlInstanceType()
GetControlInstanceType()

Overrides GetControlInstanceType().

GetIndex(TextBox)
GetIndex(TextBox)

Gets the index of a TextBox in a TextBoxArray.

HookUpControlEvents(Object)
HookUpControlEvents(Object)

Overrides HookUpControlEvents(Object).

ResetIndex(TextBox)
ResetIndex(TextBox)

The ResetIndex method is not supported in the TextBoxArray class.

SetIndex(TextBox, Int16)
SetIndex(TextBox, Int16)

Sets the index of the initial TextBox in a TextBoxArray.

ShouldSerializeIndex(TextBox)
ShouldSerializeIndex(TextBox)

Returns a value that indicates whether a TextBox is a member of this TextBoxArray.

Events
AcceptsTabChanged
AcceptsTabChanged

Occurs when the AcceptsTab property value changes.

AutoSizeChanged
AutoSizeChanged

Occurs when the value of the AutoSize property changes.

BackColorChanged
BackColorChanged

Occurs when the value of the BackColor property changes.

BindingContextChanged
BindingContextChanged

Occurs when the value of the BindingContext property changes.

BorderStyleChanged
BorderStyleChanged

Occurs when the BorderStyle property value changes.

CausesValidationChanged
CausesValidationChanged

Occurs when the CausesValidation property value changes.

ChangeUICues
ChangeUICues

Occurs when the focus or keyboard user interface (UI) cues change.

Click
Click

Occurs when a TextBox in a TextBoxArray is clicked.

ClientSizeChanged
ClientSizeChanged

Occurs when the value of the ClientSize property changes.

ContextMenuChanged
ContextMenuChanged

Occurs when the value of the ContextMenu property changes.


ContextMenuStripChanged
ContextMenuStripChanged

Occurs when the value of the ContextMenuStrip property changes.

ControlAdded
ControlAdded

Occurs when a new control is added to the TextBoxArray.

ControlRemoved
ControlRemoved

Occurs when a control is removed from the TextBoxArray.

CursorChanged
CursorChanged

Occurs when the value of the Cursor property changes.

DockChanged
DockChanged

Occurs when the value of the Dock property changes.

DoubleClick
DoubleClick

Occurs when a TextBox control in a TextBoxArray is double-clicked.

DragDrop
DragDrop

Occurs when a drag-and-drop operation is completed.

DragEnter
DragEnter

Occurs when an object is dragged into the control's bounds.

DragLeave
DragLeave

Occurs when an object is dragged out of the control's bounds.


DragOver
DragOver

Occurs when an object is dragged over the control's bounds.

EnabledChanged
EnabledChanged

Occurs when the value of the Enabled property changes.

Enter
Enter

Occurs when the control is entered.

FontChanged
FontChanged

Occurs when the value of the Font property changes.

ForeColorChanged
ForeColorChanged

Occurs when the value of the ForeColor property changes.

GiveFeedback
GiveFeedback

Occurs during a drag operation.

HelpRequested
HelpRequested

Occurs when the user requests help for a control.

HideSelectionChanged
HideSelectionChanged

Occurs when the value of the HideSelection property changes.

ImeModeChanged
ImeModeChanged

Occurs when the value of the ImeMode property changes.


KeyDown
KeyDown

Occurs when a key is pressed and the control has focus.

KeyPress
KeyPress

Occurs when a key is pressed and the control has focus.

KeyUp
KeyUp

Occurs when a key is released and the control has focus.

Layout
Layout

Occurs when a control should reposition its child controls.

Leave
Leave

Occurs when the input focus leaves the control.

LocationChanged
LocationChanged

Occurs when the value of the Location property changes.

MarginChanged
MarginChanged

Occurs when the value of the Margin property changes.

ModifiedChanged
ModifiedChanged

Occurs when the value of the Modified property changes.

MouseCaptureChanged
MouseCaptureChanged

Occurs when the control loses or gains mouse capture.


MouseClick
MouseClick

Occurs when the control is clicked by the mouse.

MouseDoubleClick
MouseDoubleClick

Occurs when the control is double-clicked by the mouse.

MouseDown
MouseDown

Occurs when the mouse pointer is over the control and a mouse button is pressed.

MouseEnter
MouseEnter

Occurs when the mouse pointer enters the control.

MouseHover
MouseHover

Occurs when the mouse pointer rests on the control.

MouseLeave
MouseLeave

Occurs when the mouse pointer leaves the control.

MouseMove
MouseMove

Occurs when the mouse pointer is moved over the control.

MouseUp
MouseUp

Occurs when the mouse pointer is over the control and a mouse button is released.

Move
Move

Occurs when the control is moved.


MultilineChanged
MultilineChanged

Occurs when the value of the Multiline property changes.

ParentChanged
ParentChanged

Occurs when the control's Parent property changes.

QueryAccessibilityHelp
QueryAccessibilityHelp

Occurs when an AccessibleObject is providing Help to accessibility applications.

QueryContinueDrag
QueryContinueDrag

Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.

ReadOnlyChanged
ReadOnlyChanged

Occurs when the value of the ReadOnly property changes.

RegionChanged
RegionChanged

Occurs when the value of the Region property changes.

Resize
Resize

Occurs when the control is resized.

RightToLeftChanged
RightToLeftChanged

Occurs when the RightToLeftChanged property value changes.

SizeChanged
SizeChanged

Occurs when the Size property value changes.


StyleChanged
StyleChanged

Occurs when the control style changes.

SystemColorsChanged
SystemColorsChanged

Occurs when the system colors change.

TabIndexChanged
TabIndexChanged

Occurs when the TabIndex property value changes.

TabStopChanged
TabStopChanged

Occurs when the TabStop property value changes.

TextAlignChanged
TextAlignChanged

Occurs when the TextAlign property value changes.

TextChanged
TextChanged

Occurs when the Text property value changes.

Validated
Validated

Occurs when the control is finished validating.

Validating
Validating

Occurs when the control is validating.

VisibleChanged
VisibleChanged

Occurs when the Visible property value changes.


[Link] [Link]
TabChanged
I n this Article
Occurs when the AcceptsTab property value changes.

public event EventHandler AcceptsTabChanged;


member [Link] : EventHandler

Remarks
This event is raised if the AcceptsTab property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the AutoSize property changes.

[[Link](false)]
public event EventHandler AutoSizeChanged;
member [Link] : EventHandler

Attributes BrowsableAttribute

Remarks
This event is raised if the AutoSize property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the BackColor property changes.

public event EventHandler BackColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BackColor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] TextBoxArray.
BindingContextChanged
I n this Article
Occurs when the value of the BindingContext property changes.

public event EventHandler BindingContextChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BindingContext property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
StyleChanged
I n this Article
Occurs when the BorderStyle property value changes.

public event EventHandler BorderStyleChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BorderStyle property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets a value that determines whether a control is a member of a TextBoxArray.
public bool CanExtend (object target);
abstract member CanExtend : obj -> bool
override [Link] : obj -> bool

Parameters
target Object Object
A TextBox control.
Returns
Boolean Boolean
true if target is a member of the control array; otherwise, false .

Remarks
The CanExtend method can be used to determine whether a specific TextBox control is the base element of the control
array from which the other elements were cloned.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] TextBoxArray.
CausesValidationChanged
I n this Article
Occurs when the CausesValidation property value changes.

public event EventHandler CausesValidationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the CausesValidation property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the focus or keyboard user interface (UI) cues change.
public event [Link] ChangeUICues;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a TextBox in a TextBoxArray is clicked.
public event EventHandler Click;
member [Link] : EventHandler

Remarks
The Click event passes an EventArgs to its event handler. Therefore it only indicates that a click has occurred. If you
need more specific mouse information (button, number of clicks, wheel rotation, or location), use the MouseClick event.
However, the MouseClick event will not be raised if the click is caused by action other than that of the mouse, such as
pressing the ENTER key.
A double-click is determined by the mouse settings of the user's operating system. The user can set the time between
clicks of a mouse button that should be considered a double-click instead of two clicks. The Click event is raised every
time that a control is double-clicked. For example, if you have event handlers for the Click and DoubleClick events of
a control, the Click and DoubleClick events are raised when the control is double-clicked and both methods are
called. If a control is double-clicked and that control does not support the DoubleClick event, the Click event might be
raised two times.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the ClientSize property changes.

public event EventHandler ClientSizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ClientSize property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] TextBoxArray.
ContextMenuChanged
I n this Article
Occurs when the value of the ContextMenu property changes.

[[Link](false)]
public event EventHandler ContextMenuChanged;
member [Link] : EventHandler

Attributes BrowsableAttribute

Remarks
This event is raised if the ContextMenu property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] TextBoxArray.
ContextMenuStripChanged
I n this Article
Occurs when the value of the ContextMenuStrip property changes.

public event EventHandler ContextMenuStripChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ContextMenuStrip property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a new control is added to the TextBoxArray.
public event [Link] ControlAdded;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Removed
I n this Article
Occurs when a control is removed from the TextBoxArray.

public event [Link] ControlRemoved;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Cursor property changes.

public event EventHandler CursorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Cursor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the value of the Dock property changes.
public event EventHandler DockChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Dock property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a TextBox control in a TextBoxArray is double-clicked.
public event EventHandler DoubleClick;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a drag-and-drop operation is completed.
public event [Link] DragDrop;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged into the control's bounds.
public event [Link] DragEnter;
member [Link] : [Link]

Remarks
The DragEnter event is raised when the user first drags the mouse cursor over the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged out of the control's bounds.
public event EventHandler DragLeave;
member [Link] : EventHandler

Remarks
The DragLeave event is raised when the user drags the cursor out of the control or the user cancels the current drag-
and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged over the control's bounds.
public event [Link] DragOver;
member [Link] : [Link]

Remarks
The DragOver event is raised when the mouse cursor moves within the bounds of the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Enabled property changes.

public event EventHandler EnabledChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Enabled property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is entered.
public event EventHandler Enter;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the value of the Font property changes.
public event EventHandler FontChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Font property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the ForeColor property changes.

public event EventHandler ForeColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ForeColor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ControlInstanceType
I n this Article
Overrides GetControlInstanceType().

protected override Type GetControlInstanceType ();


override [Link] : unit -> Type

Returns
Type Type
The type of a control in a control array.

Remarks
This method cannot be called from your application's code. Use the GetType method instead.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the index of a TextBox in a TextBoxArray.
public short GetIndex ([Link] o);
member [Link] : [Link] -> int16

Parameters
o TextBox TextBox
A TextBox in the control array.
Returns
Int16 Int16
A Short that represents the index of the specified TextBox.

Remarks
This method can be used to retrieve the index for the specified TextBox.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs during a drag operation.
public event [Link] GiveFeedback;
member [Link] : [Link]

Remarks
The GiveFeedback event is raised when a drag-and-drop operation is started. With the GiveFeedback event, the
source of a drag event can modify the appearance of the mouse pointer in order to give the user visual feedback during
a drag-and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Requested
I n this Article
Occurs when the user requests help for a control.

public event [Link] HelpRequested;


member [Link] : [Link]

Remarks
The HelpRequested event is typically raised when the user presses the F1 key or an associated context-sensitive Help
button is clicked.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
SelectionChanged
I n this Article
Occurs when the value of the HideSelection property changes.

public event EventHandler HideSelectionChanged;


member [Link] : EventHandler

Remarks
This event is raised if the HideSelection property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
UpControlEvents
I n this Article
Overrides HookUpControlEvents(Object).

protected override void HookUpControlEvents (object o);


override [Link] : obj -> unit

Parameters
o Object Object
An Object.

Remarks
This method cannot be called from your application's code. Use AddHandler to hook up events for any controls that
are added by using the Load method.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the ImeMode property changes.

public event EventHandler ImeModeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ImeMode property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link][Int16] [Link][Int16]
I n this Article
Gets a specific element of a TextBoxArray by index. Read-only.
public [Link] this[short Index] { get; }
member [Link](int16) : [Link]

Parameters
Index Int16 Int16
A Short that specifies the position of an element of the control array.
Returns
TextBox TextBox
A TextBox at the specified Index in the control array.

Remarks
The Item property is the default property for a control array. Therefore, the following lines of code are equivalent.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is pressed and the control has focus.
public event [Link] KeyDown;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown

KeyPress
KeyUp
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is pressed and the control has focus.
public event [Link] KeyPress;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress

KeyUp
The KeyPress event is not raised by noncharacter keys; however, the noncharacter keys do raise the KeyDown and
KeyUp events.
Use the KeyChar property to sample keystrokes at run time and to consume or modify a subset of common keystrokes.
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is released and the control has focus.
public event [Link] KeyUp;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress
KeyUp

To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a control should reposition its child controls.
public event [Link] Layout;
member [Link] : [Link]

Remarks
The Layout event occurs when child controls are added or removed, when the bounds of the control changes, and
when other changes occur that can affect the layout of the control. The layout event can be suppressed by using the
SuspendLayout and ResumeLayout methods. Suspending layout enables you to perform multiple actions on a control
without having to perform a layout for each change. For example, if you resize and move a control, each operation
would raise a Layout event.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the input focus leaves the control.
public event EventHandler Leave;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), or by calling the Select or
SelectNextControl method, focus events occur in the following order:
Enter
GotFocus
Leave

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Location property changes.

public event EventHandler LocationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Location property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Margin property changes.

public event EventHandler MarginChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Margin property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Modified property changes.

public event EventHandler ModifiedChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Modified property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] TextBoxArray.
MouseCaptureChanged
I n this Article
Occurs when the control loses or gains mouse capture.

public event EventHandler MouseCaptureChanged;


member [Link] : EventHandler

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown
Click
MouseClick

MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate an MouseDoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a control. They are often raised by other actions, such as pressing the
ENTER key when the control has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is clicked by the mouse.
public event [Link] MouseClick;
member [Link] : [Link]

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown
Click
MouseClick

MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate a MouseDoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a shape. They are often raised by other actions, such as pressing the
ENTER key when the shape has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
DoubleClick
I n this Article
Occurs when the control is double-clicked by the mouse.

public event [Link] MouseDoubleClick;


member [Link] : [Link]

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown
Click
MouseClick
MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate a DoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a shape. They are often raised by other actions, such as pressing the
ENTER key when the shape has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is pressed.
public event [Link] MouseDown;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer enters the control.
public event EventHandler MouseEnter;
member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter

MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer rests on the control.
public event EventHandler MouseHover;
member [Link] : EventHandler

Remarks
A typical use of MouseHover is to display a tool tip when the mouse pauses on a control within a specified area around
the control (the "hover rectangle"). The pause required for this event to be raised is specified in milliseconds by the
MouseHoverTime property.
The MouseHover event is defined and detected in connection with the MouseHoverSize and MouseHoverTime
properties.
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer leaves the control.
public event EventHandler MouseLeave;
member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is moved over the control.
public event [Link] MouseMove;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove

MouseHover / MouseDown / MouseWheel


MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is released.
public event [Link] MouseUp;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp

MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is moved.
public event EventHandler Move;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Multiline property changes.

public event EventHandler MultilineChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Multiline property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control's Parent property changes.

public event EventHandler ParentChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Parent property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
AccessibilityHelp
I n this Article
Occurs when an AccessibleObject is providing Help to accessibility applications.

public event [Link] QueryAccessibilityHelp;


member [Link] : [Link]

Remarks
You should use the HelpProvider class to enable users to invoke Help on your accessible object by pressing the F1 key.
The HelpProvider gives you complete information in the QueryAccessibilityHelpEventArgs.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ContinueDrag
I n this Article
Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.
public event [Link] QueryContinueDrag;
member [Link] : [Link]

Remarks
The QueryContinueDrag event is raised when there is a change in the keyboard or mouse button state during a drag-
and-drop operation. The QueryContinueDrag event enables the drag source to determine whether the drag-and-drop
operation should be canceled.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the ReadOnly property changes.

public event EventHandler ReadOnlyChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ReadOnly property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Region property changes.

public event EventHandler RegionChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Region property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
The ResetIndex method is not supported in the TextBoxArray class.

public void ResetIndex ([Link] o);


member [Link] : [Link] -> unit

Parameters
o TextBox TextBox
A Control.

Remarks
This method is not supported, and calling it does not raise an exception.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is resized.
public event EventHandler Resize;
member [Link] : EventHandler

Remarks
To determine the Size of the resized control, you can cast the sender parameter of the EventArgs data to a Control and
get its Size property (or Height and Width properties individually).
To handle custom layouts, use the Layout event instead of the Resize event. The Layout event is raised in response to
a Resize event, but also in response to other changes that affect the layout of the control.

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
LeftChanged
I n this Article
Occurs when the RightToLeftChanged property value changes.

public event EventHandler RightToLeftChanged;


member [Link] : EventHandler

Remarks
This event is raised if the RightToLeft property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Sets the index of the initial TextBox in a TextBoxArray.
public void SetIndex ([Link] o, short Index);
member [Link] : [Link] * int16 -> unit

Parameters
o TextBox TextBox
A TextBox in the control array.
Index Int16 Int16
A Short that represents the index of the specified TextBox.

Remarks
The SetIndex method should only be called when you are creating the initial element in the control array. To add
subsequent elements, call the Load method and specify the Index .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
SerializeIndex
I n this Article
Returns a value that indicates whether a TextBox is a member of this TextBoxArray.

public bool ShouldSerializeIndex ([Link] o);


member [Link] : [Link] -> bool

Parameters
o TextBox TextBox
A TextBox in the control array.
Returns
Boolean Boolean
true if o is a member of this control array; otherwise, false .

Remarks
If the specified TextBox is a member of a different TextBoxArray, ShouldSerializeIndex returns false .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the Size property value changes.
public event EventHandler SizeChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Size property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control style changes.
public event EventHandler StyleChanged;
member [Link] : EventHandler

Remarks
The StyleChanged event occurs when ControlStyles flags have been added or changed.

This event is raised if the control style is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ColorsChanged
I n this Article
Occurs when the system colors change.

public event EventHandler SystemColorsChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SystemColors is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the TabIndex property value changes.

public event EventHandler TabIndexChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabIndex property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the TabStop property value changes.

public event EventHandler TabStopChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabStop property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the TextAlign property value changes.

public event EventHandler TextAlignChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TextAlign property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
TextBoxArray TextBoxArray
I n this Article

Overloads
TextBoxArray()
Initializes a new instance of the TextBoxArray class.

TextBoxArray(IContainer) TextBoxArray(IContainer)
Initializes a new instance of the TextBoxArray class, specifying
its container.

TextBoxArray()
Initializes a new instance of the TextBoxArray class.
public TextBoxArray ();

Remarks
When you instantiate a TextBoxArray, you must also call the SetIndex method to create the initial element in the array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

TextBoxArray(IContainer) TextBoxArray(IContainer)
Initializes a new instance of the TextBoxArray class, specifying its container.
public TextBoxArray ([Link] Container);
new [Link] : [Link] ->
[Link]

Parameters
Container IContainer IContainer
The IContainer where the control array will be hosted.
Remarks
When you instantiate a TextBoxArray, you must also call the SetIndex method to create the initial element in the array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the Text property value changes.
public event EventHandler TextChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Text property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is finished validating.
public event EventHandler Validated;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated

If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is validating.
public event [Link] Validating;
member [Link] : [Link]

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated
If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Visible property value changes.

public event EventHandler VisibleChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Visible property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
TimerArray TimerArray Class
Provides a control array of Timer controls

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class TimerArray : [Link],
[Link]
type TimerArray = class
inherit BaseControlArray
interface IExtenderProvider

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component
BaseControlArray BaseControlArray

Remarks
The TimerArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0 Timer control array. It
does not provide the design-time features of a Visual Basic 6.0 control array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
TimerArray()
TimerArray()

Initializes a new instance of the TimerArray class.

TimerArray(IContainer)
TimerArray(IContainer)

Initializes a new instance of the TimerArray class, specifying its container.

Properties
Item[Int16]
Item[Int16]

Gets a specific element of a TimerArray by index. Read-only.


Methods
CanExtend(Object)
CanExtend(Object)

Gets a value that determines whether a control is a member of a TimerArray.

GetControlInstanceType()
GetControlInstanceType()

Overrides GetControlInstanceType().

GetIndex(Timer)
GetIndex(Timer)

Gets the index of a Timer in a TimerArray.

HookUpControlEvents(Object)
HookUpControlEvents(Object)

Overrides HookUpControlEvents(Object).

ResetIndex(Timer)
ResetIndex(Timer)

The ResetIndex method is not supported in the TimerArray class.

SetIndex(Timer, Int16)
SetIndex(Timer, Int16)

Sets the index of the initial Timer in a TimerArray.

ShouldSerializeIndex(Timer)
ShouldSerializeIndex(Timer)

Returns a value that indicates whether a Timer is a member of this TimerArray.

Events
Tick
Tick

Occurs when the specified timer interval has elapsed and the timer is enabled.
[Link] [Link]
I n this Article
Gets a value that determines whether a control is a member of a TimerArray.
public bool CanExtend (object target);
abstract member CanExtend : obj -> bool
override [Link] : obj -> bool

Parameters
target Object Object
A Timer control.
Returns
Boolean Boolean
true if target is a member of the control array; otherwise false .

Remarks
The CanExtend method can be used to determine whether a specific Timer control is the base element of the control
array from which the other elements were cloned.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ControlInstanceType
I n this Article
Overrides GetControlInstanceType().

protected override Type GetControlInstanceType ();


override [Link] : unit -> Type

Returns
Type Type
The TimerArray class is the base class for all control arrays that are used in applications upgraded from Visual Basic
6.0. Because this class is not typically used to create an instance of the class, this Protected method is usually not
called directly but is instead called by a derived class.

Remarks
This method cannot be called from your application's code. Use the GetType method instead.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the index of a Timer in a TimerArray.
public short GetIndex ([Link] o);
member [Link] : [Link] -> int16

Parameters
o Timer Timer
A Timer in the control array.
Returns
Int16 Int16
A Short that represents the index of the specified Timer.

Remarks
This method can be used to retrieve the index for the specified Timer.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ControlEvents
I n this Article
Overrides HookUpControlEvents(Object).

protected override void HookUpControlEvents (object o);


override [Link] : obj -> unit

Parameters
o Object Object
An Object.

Remarks
This method cannot be called from your application's code. Use AddHandler to hook up events for any controls that
are added by using the Load method.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link][Int16] [Link][Int16]
I n this Article
Gets a specific element of a TimerArray by index. Read-only.
public [Link] this[short Index] { get; }
member [Link](int16) : [Link]

Parameters
Index Int16 Int16
A Short that specifies the position of an element of the control array.
Returns
Timer Timer
A Timer at the specified Index in the control array.

Remarks
The Item property is the default property for a control array. Therefore, the following lines of code are equivalent.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
The ResetIndex method is not supported in the TimerArray class.

public void ResetIndex ([Link] o);


member [Link] : [Link] -> unit

Parameters
o Timer Timer
A Control.

Remarks
This method is not supported, and calling it does not raise an exception.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Sets the index of the initial Timer in a TimerArray.
public void SetIndex ([Link] o, short Index);
member [Link] : [Link] * int16 -> unit

Parameters
o Timer Timer
A Timer in the control array.
Index Int16 Int16
A Short that represents the index of the specified Timer.

Remarks
The SetIndex method should only be called when you are creating the initial element in the control array. To add
subsequent elements, call the Load method and specify the Index .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
SerializeIndex
I n this Article
Returns a value that indicates whether a Timer is a member of this TimerArray.

public bool ShouldSerializeIndex ([Link] o);


member [Link] : [Link] -> bool

Parameters
o Timer Timer
A Timer in the control array.
Returns
Boolean Boolean
true if o is a member of this control array; otherwise, false .

Remarks
If the specified Timer is a member of a different TimerArray, ShouldSerializeIndex returns false .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the specified timer interval has elapsed and the timer is enabled.
public event EventHandler Tick;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
TimerArray TimerArray
I n this Article

Overloads
TimerArray()
Initializes a new instance of the TimerArray class.

TimerArray(IContainer) TimerArray(IContainer)
Initializes a new instance of the TimerArray class, specifying its
container.

TimerArray()
Initializes a new instance of the TimerArray class.
public TimerArray ();

Remarks
When you instantiate a TimerArray, you must also call the SetIndex method to create the initial element in the array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

TimerArray(IContainer) TimerArray(IContainer)
Initializes a new instance of the TimerArray class, specifying its container.
public TimerArray ([Link] Container);
new [Link] : [Link] ->
[Link]

Parameters
Container IContainer IContainer
The IContainer where the control array will be hosted.
Remarks
When you instantiate a TimerArray, you must also call the SetIndex method to create the initial element in the array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
ToolBarArray ToolBarArray Class
Provides a control array of ToolBar controls

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class ToolBarArray : [Link],
[Link]
type ToolBarArray = class
inherit BaseControlArray
interface IExtenderProvider

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component
BaseControlArray BaseControlArray

Remarks
The ToolBarArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0 ToolBar control
array. It does not provide the design-time features of a Visual Basic 6.0 control array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
ToolBarArray()
ToolBarArray()

Initializes a new instance of the ToolBarArray class.

ToolBarArray(IContainer)
ToolBarArray(IContainer)

Initializes a new instance of the ToolBarArray class, specifying its container.

Properties
Item[Int16]
Item[Int16]

Gets a specific element of a ToolBarArray by index. Read-only.


Methods
CanExtend(Object)
CanExtend(Object)

Gets a value that determines whether a control is a member of a ToolBarArray.

GetControlInstanceType()
GetControlInstanceType()

Overrides GetControlInstanceType().

GetIndex(ToolBar)
GetIndex(ToolBar)

Gets the index of a ToolBar in a ToolBarArray.

HookUpControlEvents(Object)
HookUpControlEvents(Object)

Overrides HookUpControlEvents(Object).

ResetIndex(ToolBar)
ResetIndex(ToolBar)

The ResetIndex method is not supported in the ToolBarArray class.

SetIndex(ToolBar, Int16)
SetIndex(ToolBar, Int16)

Sets the index of the initial ToolBar in a ToolBarArray.

ShouldSerializeIndex(ToolBar)
ShouldSerializeIndex(ToolBar)

Returns a value that indicates whether a ToolBar is a member of this ToolBarArray.

Events
AutoSizeChanged
AutoSizeChanged

Occurs when the value of the AutoSize property changes.

BindingContextChanged
BindingContextChanged

Occurs when the value of the BindingContext property changes.

ButtonClick
ButtonClick

Occurs when a ToolBarButton on the ToolBar is clicked.

ButtonDropDown
ButtonDropDown

Occurs when a drop-down style ToolBarButton or its down arrow is clicked.

CausesValidationChanged
CausesValidationChanged

Occurs when the value of the CausesValidation property changes.

ChangeUICues
ChangeUICues

Occurs when the focus or keyboard user interface (UI) cues change.

Click
Click

Occurs when a ToolBar in a ToolBarArray is clicked.

ClientSizeChanged
ClientSizeChanged

Occurs when the value of the ClientSize property changes.

ContextMenuChanged
ContextMenuChanged

Occurs when the value of the ContextMenu property changes.

ContextMenuStripChanged
ContextMenuStripChanged

Occurs when the value of the ContextMenuStrip property changes.


ControlAdded
ControlAdded

Occurs when a new control is added to the [Link].

ControlRemoved
ControlRemoved

Occurs when a control is removed from the [Link].

CursorChanged
CursorChanged

Occurs when the value of the Cursor property changes.

DockChanged
DockChanged

Occurs when the value of the Dock property changes.

DoubleClick
DoubleClick

Occurs when a ToolBar control in a ToolBarArray is double-clicked.

DragDrop
DragDrop

Occurs when a drag-and-drop operation is completed.

DragEnter
DragEnter

Occurs when an object is dragged into the control's bounds.

DragLeave
DragLeave

Occurs when an object is dragged out of the control's bounds.

DragOver
DragOver

Occurs when an object is dragged over the control's bounds.


EnabledChanged
EnabledChanged

Occurs when the value of the Enabled property changes.

Enter
Enter

Occurs when the control is entered.

FontChanged
FontChanged

Occurs when the value of the Font property changes.

GiveFeedback
GiveFeedback

Occurs during a drag operation.

HelpRequested
HelpRequested

Occurs when the user requests help for a control.

KeyDown
KeyDown

Occurs when a key is pressed and the control has focus.

KeyPress
KeyPress

Occurs when a key is pressed and the control has focus.

KeyUp
KeyUp

Occurs when a key is released and the control has focus.

Layout
Layout

Occurs when a control should reposition its child controls.


Leave
Leave

Occurs when the input focus leaves the control.

LocationChanged
LocationChanged

Occurs when the value of the Location property changes.

MarginChanged
MarginChanged

Occurs when the value of the Margin property changes.

MouseCaptureChanged
MouseCaptureChanged

Occurs when the control loses or gains mouse capture.

MouseClick
MouseClick

Occurs when the control is clicked by the mouse.

MouseDoubleClick
MouseDoubleClick

Occurs when the control is double-clicked by the mouse.

MouseDown
MouseDown

Occurs when the mouse pointer is over the control and a mouse button is pressed.

MouseEnter
MouseEnter

Occurs when the mouse pointer enters the control.

MouseHover
MouseHover

Occurs when the mouse pointer rests on the control.


MouseLeave
MouseLeave

Occurs when the mouse pointer leaves the control.

MouseMove
MouseMove

Occurs when the mouse pointer is moved over the control.

MouseUp
MouseUp

Occurs when the mouse pointer is over the control and a mouse button is released.

Move
Move

Occurs when the control is moved.

PaddingChanged
PaddingChanged

Occurs when the control's Padding property changes.

ParentChanged
ParentChanged

Occurs when the control's Parent property changes.

QueryAccessibilityHelp
QueryAccessibilityHelp

Occurs when an AccessibleObject is providing Help to accessibility applications.

QueryContinueDrag
QueryContinueDrag

Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.

RegionChanged
RegionChanged

Occurs when the value of the Region property changes.


Resize
Resize

Occurs when the control is resized.

SizeChanged
SizeChanged

Occurs when the Size property value changes.

StyleChanged
StyleChanged

Occurs when the control style changes.

SystemColorsChanged
SystemColorsChanged

Occurs when the system colors change.

TabIndexChanged
TabIndexChanged

Occurs when the TabIndex property value changes.

TabStopChanged
TabStopChanged

Occurs when the TabStop property value changes.

Validated
Validated

Occurs when the control is finished validating.

Validating
Validating

Occurs when the control is validating.

VisibleChanged
VisibleChanged

Occurs when the Visible property value changes.


[Link] [Link]
Changed
I n this Article
Occurs when the value of the AutoSize property changes.

public event EventHandler AutoSizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the AutoSize property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolBarArray.
BindingContextChanged
I n this Article
Occurs when the value of the BindingContext property changes.

public event EventHandler BindingContextChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BindingContext property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a ToolBarButton on the ToolBar is clicked.
public event [Link] ButtonClick;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Down
I n this Article
Occurs when a drop-down style ToolBarButton or its down arrow is clicked.

public event [Link] ButtonDropDown;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets a value that determines whether a control is a member of a ToolBarArray.
public bool CanExtend (object target);
abstract member CanExtend : obj -> bool
override [Link] : obj -> bool

Parameters
target Object Object
A ToolBar control.
Returns
Boolean Boolean
true if target is a member of the control array; otherwise false .

Remarks
The CanExtend method can be used to determine whether a specific ToolBar control is the base element of the control
array from which the other elements were cloned.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolBarArray.
CausesValidationChanged
I n this Article
Occurs when the value of the CausesValidation property changes.

public event EventHandler CausesValidationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the CausesValidation property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the focus or keyboard user interface (UI) cues change.
public event [Link] ChangeUICues;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a ToolBar in a ToolBarArray is clicked.
public event EventHandler Click;
member [Link] : EventHandler

Remarks
The Click event passes an EventArgs to its event handler. Therefore it only indicates that a click has occurred. If you
need more specific mouse information (button, number of clicks, wheel rotation, or location), use the MouseClick event.
However, the MouseClick event will not be raised if the click is caused by action other than that of the mouse, such as
pressing the ENTER key.
A double-click is determined by the mouse settings of the user's operating system. The user can set the time between
clicks of a mouse button that should be considered a double-click instead of two clicks. The Click event is raised every
time that a control is double-clicked. For example, if you have event handlers for the Click and DoubleClick events of
a control, the Click and DoubleClick events are raised when the control is double-clicked and both methods are
called. If a control is double-clicked and that control does not support the DoubleClick event, the Click event might be
raised two times.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the ClientSize property changes.

public event EventHandler ClientSizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ClientSize property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolBarArray.
ContextMenuChanged
I n this Article
Occurs when the value of the ContextMenu property changes.

[[Link](false)]
public event EventHandler ContextMenuChanged;
member [Link] : EventHandler

Attributes BrowsableAttribute

Remarks
This event is raised if the ContextMenu property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolBarArray.
ContextMenuStripChanged
I n this Article
Occurs when the value of the ContextMenuStrip property changes.

public event EventHandler ContextMenuStripChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ContextMenuStrip property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a new control is added to the [Link].
public event [Link] ControlAdded;
member [Link] : [Link]

Remarks
This event is raised if the ContextMenuStrip property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Removed
I n this Article
Occurs when a control is removed from the [Link].

public event [Link] ControlRemoved;


member [Link] : [Link]

Remarks
This event is raised if the ContextMenuStrip property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Cursor property changes.

public event EventHandler CursorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Cursor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the value of the Dock property changes.
public event EventHandler DockChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Dock property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a ToolBar control in a ToolBarArray is double-clicked.
public event EventHandler DoubleClick;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a drag-and-drop operation is completed.
public event [Link] DragDrop;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged into the control's bounds.
public event [Link] DragEnter;
member [Link] : [Link]

Remarks
The DragEnter event is raised when the user first drags the mouse cursor over the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged out of the control's bounds.
public event EventHandler DragLeave;
member [Link] : EventHandler

Remarks
The DragLeave event is raised when the user drags the cursor out of the control or the user cancels the current drag-
and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged over the control's bounds.
public event [Link] DragOver;
member [Link] : [Link]

Remarks
The DragOver event is raised when the mouse cursor moves within the bounds of the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Enabled property changes.

public event EventHandler EnabledChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Enabled property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is entered.
public event EventHandler Enter;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the value of the Font property changes.
public event EventHandler FontChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Font property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ControlInstanceType
I n this Article
Overrides GetControlInstanceType().

protected override Type GetControlInstanceType ();


override [Link] : unit -> Type

Returns
Type Type
The ToolBarArray class is the base class for all control arrays that are used in applications upgraded from Visual Basic
6.0. Because this class is not typically used to create an instance of the class, this Protected method is usually not
called directly but is instead called by a derived class.

Remarks
This method cannot be called from your application's code. Use the GetType method instead.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the index of a ToolBar in a ToolBarArray.
public short GetIndex ([Link] o);
member [Link] : [Link] -> int16

Parameters
o ToolBar ToolBar
A ToolBar in the control array.
Returns
Int16 Int16
A Short that represents the index of the specified ToolBar.

Remarks
This method can be used to retrieve the index for the specified ToolBar.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs during a drag operation.
public event [Link] GiveFeedback;
member [Link] : [Link]

Remarks
The GiveFeedback event is raised when a drag-and-drop operation is started. With the GiveFeedback event, the
source of a drag event can modify the appearance of the mouse pointer in order to give the user visual feedback during
a drag-and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Requested
I n this Article
Occurs when the user requests help for a control.

public event [Link] HelpRequested;


member [Link] : [Link]

Remarks
The HelpRequested event is typically raised when the user presses the F1 key or an associated context-sensitive Help
button is clicked.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
UpControlEvents
I n this Article
Overrides HookUpControlEvents(Object).

protected override void HookUpControlEvents (object o);


override [Link] : obj -> unit

Parameters
o Object Object
An Object.

Remarks
This method cannot be called from your application's code. Use AddHandler to hook up events for any controls that
are added by using the Load method.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link][Int16] [Link][Int16]
I n this Article
Gets a specific element of a ToolBarArray by index. Read-only.
public [Link] this[short Index] { get; }
member [Link](int16) : [Link]

Parameters
Index Int16 Int16
A Short that specifies the position of an element of the control array.
Returns
ToolBar ToolBar
A ToolBar at the specified Index in the control array.

Remarks
The Item property is the default property for a control array. Therefore, the following lines of code are equivalent.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is pressed and the control has focus.
public event [Link] KeyDown;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown

KeyPress
KeyUp
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is pressed and the control has focus.
public event [Link] KeyPress;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress

KeyUp
The KeyPress event is not raised by noncharacter keys; however, the noncharacter keys do raise the KeyDown and
KeyUp events.
Use the KeyChar property to sample keystrokes at run time and to consume or modify a subset of common keystrokes.
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is released and the control has focus.
public event [Link] KeyUp;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress
KeyUp

To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a control should reposition its child controls.
public event [Link] Layout;
member [Link] : [Link]

Remarks
The Layout event occurs when child controls are added or removed, when the bounds of the control changes, and
when other changes occur that can affect the layout of the control. The layout event can be suppressed by using the
SuspendLayout and ResumeLayout methods. Suspending layout enables you to perform multiple actions on a control
without having to perform a layout for each change. For example, if you resize and move a control, each operation
would raise a Layout event.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the input focus leaves the control.
public event EventHandler Leave;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), or by calling the Select or
SelectNextControl method, focus events occur in the following order:
Enter
GotFocus
Leave

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Location property changes.

public event EventHandler LocationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Location property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Margin property changes.

public event EventHandler MarginChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Margin property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolBarArray.
MouseCaptureChanged
I n this Article
Occurs when the control loses or gains mouse capture.

public event EventHandler MouseCaptureChanged;


member [Link] : EventHandler

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown
Click
MouseClick

MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate an MouseDoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a control. They are often raised by other actions, such as pressing the
ENTER key when the control has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is clicked by the mouse.
public event [Link] MouseClick;
member [Link] : [Link]

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown
Click
MouseClick

MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate a MouseDoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a shape. They are often raised by other actions, such as pressing the
ENTER key when the shape has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
DoubleClick
I n this Article
Occurs when the control is double-clicked by the mouse.

public event [Link] MouseDoubleClick;


member [Link] : [Link]

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown
Click
MouseClick
MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate a DoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a shape. They are often raised by other actions, such as pressing the
ENTER key when the shape has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is pressed.
public event [Link] MouseDown;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer enters the control.
public event EventHandler MouseEnter;
member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter

MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer rests on the control.
public event EventHandler MouseHover;
member [Link] : EventHandler

Remarks
A typical use of MouseHover is to display a tool tip when the mouse pauses on a control within a specified area around
the control (the "hover rectangle"). The pause required for this event to be raised is specified in milliseconds by the
MouseHoverTime property.
The MouseHover event is defined and detected in connection with the MouseHoverSize and MouseHoverTime
properties.
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer leaves the control.
public event EventHandler MouseLeave;
member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is moved over the control.
public event [Link] MouseMove;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove

MouseHover / MouseDown / MouseWheel


MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is released.
public event [Link] MouseUp;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp

MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is moved.
public event EventHandler Move;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control's Padding property changes.

public event EventHandler PaddingChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Padding property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control's Parent property changes.

public event EventHandler ParentChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Parent property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
AccessibilityHelp
I n this Article
Occurs when an AccessibleObject is providing Help to accessibility applications.

public event [Link] QueryAccessibilityHelp;


member [Link] : [Link]

Remarks
You should use the HelpProvider class to enable users to invoke Help on your accessible object by pressing the F1 key.
The HelpProvider gives you complete information in the QueryAccessibilityHelpEventArgs.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ContinueDrag
I n this Article
Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.
public event [Link] QueryContinueDrag;
member [Link] : [Link]

Remarks
The QueryContinueDrag event is raised when there is a change in the keyboard or mouse button state during a drag-
and-drop operation. The QueryContinueDrag event enables the drag source to determine whether the drag-and-drop
operation should be canceled.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Region property changes.

public event EventHandler RegionChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Region property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
The ResetIndex method is not supported in the ToolBarArray class.

public void ResetIndex ([Link] o);


member [Link] : [Link] -> unit

Parameters
o ToolBar ToolBar
A Control.

Remarks
This method is not supported, and calling it does not raise an exception.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is resized.
public event EventHandler Resize;
member [Link] : EventHandler

Remarks
To determine the Size of the resized control, you can cast the sender parameter of the EventArgs data to a Control and
get its Size property (or Height and Width properties individually).
To handle custom layouts, use the Layout event instead of the Resize event. The Layout event is raised in response to
a Resize event, but also in response to other changes that affect the layout of the control.

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Sets the index of the initial ToolBar in a ToolBarArray.
public void SetIndex ([Link] o, short Index);
member [Link] : [Link] * int16 -> unit

Parameters
o ToolBar ToolBar
A ToolBar in the control array.
Index Int16 Int16
A Short that represents the index of the specified ToolBar.

Remarks
The SetIndex method should only be called when you are creating the initial element in the control array. To add
subsequent elements, call the Load method and specify the Index .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
SerializeIndex
I n this Article
Returns a value that indicates whether a ToolBar is a member of this ToolBarArray.

public bool ShouldSerializeIndex ([Link] o);


member [Link] : [Link] -> bool

Parameters
o ToolBar ToolBar
A ToolBar in the control array.
Returns
Boolean Boolean
true if o is a member of this control array; otherwise, false .

Remarks
If the specified ToolBar is a member of a different ToolBarArray, ShouldSerializeIndex returns false .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the Size property value changes.
public event EventHandler SizeChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Size property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control style changes.
public event EventHandler StyleChanged;
member [Link] : EventHandler

Remarks
The StyleChanged event occurs when ControlStyles flags have been added or changed.

This event is raised if the control style is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ColorsChanged
I n this Article
Occurs when the system colors change.

public event EventHandler SystemColorsChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SystemColors is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the TabIndex property value changes.

public event EventHandler TabIndexChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabIndex property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the TabStop property value changes.

public event EventHandler TabStopChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabStop property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
ToolBarArray ToolBarArray
I n this Article

Overloads
ToolBarArray()
Initializes a new instance of the ToolBarArray class.

ToolBarArray(IContainer) ToolBarArray(IContainer)
Initializes a new instance of the ToolBarArray class, specifying
its container.

ToolBarArray()
Initializes a new instance of the ToolBarArray class.
public ToolBarArray ();

Remarks
When you instantiate a ToolBarArray, you must also call the SetIndex method to create the initial element in the array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

ToolBarArray(IContainer) ToolBarArray(IContainer)
Initializes a new instance of the ToolBarArray class, specifying its container.
public ToolBarArray ([Link] Container);
new [Link] : [Link] ->
[Link]

Parameters
Container IContainer IContainer
The IContainer where the control array will be hosted.
Remarks
When you instantiate a ToolBarArray, you must also call the SetIndex method to create the initial element in the array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is finished validating.
public event EventHandler Validated;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated

If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is validating.
public event [Link] Validating;
member [Link] : [Link]

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated
If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Visible property value changes.

public event EventHandler VisibleChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Visible property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
ToolStripArray ToolStripArray Class
Provides a control array of ToolStrip controls

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class ToolStripArray : [Link],
[Link]
type ToolStripArray = class
inherit BaseControlArray
interface IExtenderProvider

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component
BaseControlArray BaseControlArray

Remarks
The ToolStripArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0 CoolBar control
array. It does not provide the design-time features of a Visual Basic 6.0 control array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
ToolStripArray()
ToolStripArray()

Initializes a new instance of the ToolStripArray class.

ToolStripArray(IContainer)
ToolStripArray(IContainer)

Initializes a new instance of the ToolStripArray class, specifying its container.

Properties
Item[Int16]
Item[Int16]

Gets a specific element of a ToolStripArray by index. Read-only.


Methods
CanExtend(Object)
CanExtend(Object)

Gets a value that determines whether a control is a member of a ToolStripArray.

GetControlInstanceType()
GetControlInstanceType()

Overrides GetControlInstanceType().

GetIndex(ToolStrip)
GetIndex(ToolStrip)

Gets the index of a ToolStrip in a ToolStripArray.

HookUpControlEvents(Object)
HookUpControlEvents(Object)

Overrides HookUpControlEvents(Object).

ResetIndex(ToolStrip)
ResetIndex(ToolStrip)

The ResetIndex method is not supported in the ToolStripArray class.

SetIndex(ToolStrip, Int16)
SetIndex(ToolStrip, Int16)

Sets the index of the initial ToolStrip in a ToolStripArray.

ShouldSerializeIndex(ToolStrip)
ShouldSerializeIndex(ToolStrip)

Returns a value that indicates whether a ToolStrip is a member of this ToolStripArray.

Events
AutoSizeChanged
AutoSizeChanged

Occurs when the value of the AutoSize property changes.

BackColorChanged
BackColorChanged

Occurs when the value of the BackColor property changes.

BackgroundImageChanged
BackgroundImageChanged

Occurs when the value of the BackgroundImage property changes.

BackgroundImageLayoutChanged
BackgroundImageLayoutChanged

Occurs when the value of the BackgroundImageLayout property changes.

BeginDrag
BeginDrag

Occurs when the user starts to drag the ToolStrip control.

BindingContextChanged
BindingContextChanged

Occurs when the value of the BindingContext property changes.

ChangeUICues
ChangeUICues

Occurs when the focus or keyboard user interface (UI) cues change.

Click
Click

Occurs when a ToolStrip in a ToolStripArray is clicked.

ClientSizeChanged
ClientSizeChanged

Occurs when the value of the ClientSize property changes.

ContextMenuChanged
ContextMenuChanged

Occurs when the value of the ContextMenu property changes.


ContextMenuStripChanged
ContextMenuStripChanged

Occurs when the value of the ContextMenuStrip property changes.

DockChanged
DockChanged

Occurs when the value of the Dock property changes.

DoubleClick
DoubleClick

Occurs when a ToolStrip control in a ToolStripArray is double-clicked.

DragDrop
DragDrop

Occurs when a drag-and-drop operation is completed.

DragEnter
DragEnter

Occurs when an object is dragged into the control's bounds.

DragLeave
DragLeave

Occurs when an object is dragged out of the control's bounds.

DragOver
DragOver

Occurs when an object is dragged over the control's bounds.

EnabledChanged
EnabledChanged

Occurs when the value of the Enabled property changes.

EndDrag
EndDrag

Occurs when the user stops dragging the ToolStrip control.


Enter
Enter

Occurs when the control is entered.

FontChanged
FontChanged

Occurs when the value of the Font property changes.

GiveFeedback
GiveFeedback

Occurs during a drag operation.

HelpRequested
HelpRequested

Occurs when the user requests help for a control.

ImeModeChanged
ImeModeChanged

Occurs when the value of the ImeMode property changes.

ItemAdded
ItemAdded

Occurs when a new ToolStripItem is added to the ToolStripItemCollection.

ItemClicked
ItemClicked

Occurs when the ToolStripItem is clicked.

ItemRemoved
ItemRemoved

Occurs when a ToolStripItem is removed from the ToolStripItemCollection.

KeyDown
KeyDown

Occurs when a key is pressed and the control has focus.


KeyPress
KeyPress

Occurs when a key is pressed and the control has focus.

KeyUp
KeyUp

Occurs when a key is released and the control has focus.

Layout
Layout

Occurs when a control should reposition its child controls.

LayoutCompleted
LayoutCompleted

Occurs when the layout of the ToolStrip is complete.

LayoutStyleChanged
LayoutStyleChanged

Occurs when the value of the LayoutStyle property changes.

Leave
Leave

Occurs when the input focus leaves the control.

LocationChanged
LocationChanged

Occurs when the value of the Location property changes.

MarginChanged
MarginChanged

Occurs when the value of the Margin property changes.

MouseCaptureChanged
MouseCaptureChanged

Occurs when the control loses or gains mouse capture.


MouseClick
MouseClick

Occurs when the control is clicked by the mouse.

MouseDoubleClick
MouseDoubleClick

Occurs when the control is double-clicked by the mouse.

MouseDown
MouseDown

Occurs when the mouse pointer is over the control and a mouse button is pressed.

MouseEnter
MouseEnter

Occurs when the mouse pointer enters the control.

MouseHover
MouseHover

Occurs when the mouse pointer rests on the control.

MouseLeave
MouseLeave

Occurs when the mouse pointer leaves the control.

MouseMove
MouseMove

Occurs when the mouse pointer is moved over the control.

MouseUp
MouseUp

Occurs when the mouse pointer is over the control and a mouse button is released.

Move
Move

Occurs when the control is moved.


PaddingChanged
PaddingChanged

Occurs when the control's Padding property changes.

Paint
Paint

Occurs when the control is redrawn.

PaintGrip
PaintGrip

Occurs when the ToolStrip move handle is painted.

ParentChanged
ParentChanged

Occurs when the control's Parent property changes.

QueryAccessibilityHelp
QueryAccessibilityHelp

Occurs when an AccessibleObject is providing Help to accessibility applications.

QueryContinueDrag
QueryContinueDrag

Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.

RegionChanged
RegionChanged

Occurs when the value of the Region property changes.

Resize
Resize

Occurs when the control is resized.

RightToLeftChanged
RightToLeftChanged

Occurs when the RightToLeftChanged property value changes.


Scroll
Scroll

Occurs when the user or code scrolls through the client area.

SizeChanged
SizeChanged

Occurs when the Size property value changes.

StyleChanged
StyleChanged

Occurs when the control style changes.

SystemColorsChanged
SystemColorsChanged

Occurs when the system colors change.

TabIndexChanged
TabIndexChanged

Occurs when the TabIndex property value changes.

TabStopChanged
TabStopChanged

Occurs when the TabStop property value changes.

TextChanged
TextChanged

Occurs when the Text property value changes.

Validated
Validated

Occurs when the control is finished validating.

Validating
Validating

Occurs when the control is validating.


VisibleChanged
VisibleChanged

Occurs when the Visible property value changes.


[Link] [Link]
Changed
I n this Article
Occurs when the value of the AutoSize property changes.

public event EventHandler AutoSizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the AutoSize property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ColorChanged
I n this Article
Occurs when the value of the BackColor property changes.

public event EventHandler BackColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BackColor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolStripArray.
BackgroundImageChanged
I n this Article
Occurs when the value of the BackgroundImage property changes.

public event EventHandler BackgroundImageChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BackgroundImage property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] Tool
[Link]
I n this Article
Occurs when the value of the BackgroundImageLayout property changes.

public event EventHandler BackgroundImageLayoutChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BackgroundImageLayout property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the user starts to drag the ToolStrip control.
public event EventHandler BeginDrag;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolStripArray.
BindingContextChanged
I n this Article
Occurs when the value of the BindingContext property changes.

public event EventHandler BindingContextChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BindingContext property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets a value that determines whether a control is a member of a ToolStripArray.
public bool CanExtend (object target);
abstract member CanExtend : obj -> bool
override [Link] : obj -> bool

Parameters
target Object Object
A ToolStrip control.
Returns
Boolean Boolean
true if target is a member of the control array; otherwise false .

Remarks
The CanExtend method can be used to determine whether a specific ToolStrip control is the base element of the
control array from which the other elements were cloned.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Cues
I n this Article
Occurs when the focus or keyboard user interface (UI) cues change.

public event [Link] ChangeUICues;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a ToolStrip in a ToolStripArray is clicked.
public event EventHandler Click;
member [Link] : EventHandler

Remarks
The Click event passes an EventArgs to its event handler. Therefore it only indicates that a click has occurred. If you
need more specific mouse information (button, number of clicks, wheel rotation, or location), use the MouseClick event.
However, the MouseClick event will not be raised if the click is caused by action other than that of the mouse, such as
pressing the ENTER key.
A double-click is determined by the mouse settings of the user's operating system. The user can set the time between
clicks of a mouse button that should be considered a double-click instead of two clicks. The Click event is raised every
time that a control is double-clicked. For example, if you have event handlers for the Click and DoubleClick events of
a control, the Click and DoubleClick events are raised when the control is double-clicked and both methods are
called. If a control is double-clicked and that control does not support the DoubleClick event, the Click event might be
raised two times.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
SizeChanged
I n this Article
Occurs when the value of the ClientSize property changes.

public event EventHandler ClientSizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ClientSize property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolStripArray.
ContextMenuChanged
I n this Article
Occurs when the value of the ContextMenu property changes.

[[Link](false)]
public event EventHandler ContextMenuChanged;
member [Link] : EventHandler

Attributes BrowsableAttribute

Remarks
This event is raised if the ContextMenu property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolStripArray.
ContextMenuStripChanged
I n this Article
Occurs when the value of the ContextMenuStrip property changes.

public event EventHandler ContextMenuStripChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ContextMenuStrip property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Dock property changes.

public event EventHandler DockChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Dock property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a ToolStrip control in a ToolStripArray is double-clicked.
public event EventHandler DoubleClick;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a drag-and-drop operation is completed.
public event [Link] DragDrop;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged into the control's bounds.
public event [Link] DragEnter;
member [Link] : [Link]

Remarks
The DragEnter event is raised when the user first drags the mouse cursor over the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged out of the control's bounds.
public event EventHandler DragLeave;
member [Link] : EventHandler

Remarks
The DragLeave event is raised when the user drags the cursor out of the control or the user cancels the current drag-
and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged over the control's bounds.
public event [Link] DragOver;
member [Link] : [Link]

Remarks
The DragOver event is raised when the mouse cursor moves within the bounds of the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Enabled property changes.

public event EventHandler EnabledChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Enabled property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the user stops dragging the ToolStrip control.
public event EventHandler EndDrag;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is entered.
public event EventHandler Enter;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the value of the Font property changes.
public event EventHandler FontChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Font property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolStripArray.
GetControlInstanceType
I n this Article
Overrides GetControlInstanceType().

protected override Type GetControlInstanceType ();


override [Link] : unit -> Type

Returns
Type Type
The ToolStripArray class is the base class for all control arrays that are used in applications upgraded from Visual Basic
6.0. Because this class is not typically used to create an instance of the class, this Protected method is usually not
called directly but is instead called by a derived class.

Remarks
This method cannot be called from your application's code. Use the GetType method instead.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the index of a ToolStrip in a ToolStripArray.
public short GetIndex ([Link] o);
member [Link] : [Link] -> int16

Parameters
o ToolStrip ToolStrip
A ToolStrip in the control array.
Returns
Int16 Int16
A Short that represents the index of the specified ToolStrip.

Remarks
This method can be used to retrieve the index for the specified ToolStrip.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Feedback
I n this Article
Occurs during a drag operation.

public event [Link] GiveFeedback;


member [Link] : [Link]

Remarks
The GiveFeedback event is raised when a drag-and-drop operation is started. With the GiveFeedback event, the
source of a drag event can modify the appearance of the mouse pointer in order to give the user visual feedback during
a drag-and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Requested
I n this Article
Occurs when the user requests help for a control.

public event [Link] HelpRequested;


member [Link] : [Link]

Remarks
The HelpRequested event is typically raised when the user presses the F1 key or an associated context-sensitive Help
button is clicked.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolStripArray.
HookUpControlEvents
I n this Article
Overrides HookUpControlEvents(Object).

protected override void HookUpControlEvents (object o);


override [Link] : obj -> unit

Parameters
o Object Object
An Object.

Remarks
This method cannot be called from your application's code. Use AddHandler to hook up events for any controls that
are added by using the Load method.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ModeChanged
I n this Article
Occurs when the value of the ImeMode property changes.

public event EventHandler ImeModeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ImeMode property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link][Int16] [Link][Int16]
I n this Article
Gets a specific element of a ToolStripArray by index. Read-only.
public [Link] this[short Index] { get; }
member [Link](int16) : [Link]

Parameters
Index Int16 Int16
A Short that specifies the position of an element of the control array.
Returns
ToolStrip ToolStrip
A ToolStrip at the specified Index in the control array.

Remarks
The Item property is the default property for a control array. Therefore, the following lines of code are equivalent.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a new ToolStripItem is added to the ToolStripItemCollection.
public event [Link] ItemAdded;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the ToolStripItem is clicked.
public event [Link] ItemClicked;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Removed
I n this Article
Occurs when a ToolStripItem is removed from the ToolStripItemCollection.

public event [Link] ItemRemoved;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is pressed and the control has focus.
public event [Link] KeyDown;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown

KeyPress
KeyUp
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is pressed and the control has focus.
public event [Link] KeyPress;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress

KeyUp
The KeyPress event is not raised by noncharacter keys; however, the noncharacter keys do raise the KeyDown and
KeyUp events.
Use the KeyChar property to sample keystrokes at run time and to consume or modify a subset of common keystrokes.
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is released and the control has focus.
public event [Link] KeyUp;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress
KeyUp

To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a control should reposition its child controls.
public event [Link] Layout;
member [Link] : [Link]

Remarks
The Layout event occurs when child controls are added or removed, when the bounds of the control changes, and
when other changes occur that can affect the layout of the control. The layout event can be suppressed by using the
SuspendLayout and ResumeLayout methods. Suspending layout enables you to perform multiple actions on a control
without having to perform a layout for each change. For example, if you resize and move a control, each operation
would raise a Layout event.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Completed
I n this Article
Occurs when the layout of the ToolStrip is complete.

public event EventHandler LayoutCompleted;


member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolStripArray.
LayoutStyleChanged
I n this Article
Occurs when the value of the LayoutStyle property changes.

public event EventHandler LayoutStyleChanged;


member [Link] : EventHandler

Remarks
This event is raised if the LayoutStyle property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the input focus leaves the control.
public event EventHandler Leave;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), or by calling the Select or
SelectNextControl method, focus events occur in the following order:
Enter
GotFocus
Leave

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Location property changes.

public event EventHandler LocationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Location property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Margin property changes.

public event EventHandler MarginChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Margin property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolStripArray.
MouseCaptureChanged
I n this Article
Occurs when the control loses or gains mouse capture.

public event EventHandler MouseCaptureChanged;


member [Link] : EventHandler

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown
Click
MouseClick

MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate an MouseDoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a control. They are often raised by other actions, such as pressing the
ENTER key when the control has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is clicked by the mouse.
public event [Link] MouseClick;
member [Link] : [Link]

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown
Click
MouseClick

MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate a MouseDoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a shape. They are often raised by other actions, such as pressing the
ENTER key when the shape has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
DoubleClick
I n this Article
Occurs when the control is double-clicked by the mouse.

public event [Link] MouseDoubleClick;


member [Link] : [Link]

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown
Click
MouseClick
MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate a DoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a shape. They are often raised by other actions, such as pressing the
ENTER key when the shape has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is pressed.
public event [Link] MouseDown;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer enters the control.
public event EventHandler MouseEnter;
member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter

MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer rests on the control.
public event EventHandler MouseHover;
member [Link] : EventHandler

Remarks
A typical use of MouseHover is to display a tool tip when the mouse pauses on a control within a specified area around
the control (the "hover rectangle"). The pause required for this event to be raised is specified in milliseconds by the
MouseHoverTime property.
The MouseHover event is defined and detected in connection with the MouseHoverSize and MouseHoverTime
properties.
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer leaves the control.
public event EventHandler MouseLeave;
member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is moved over the control.
public event [Link] MouseMove;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove

MouseHover / MouseDown / MouseWheel


MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is released.
public event [Link] MouseUp;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp

MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is moved.
public event EventHandler Move;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control's Padding property changes.

public event EventHandler PaddingChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Padding property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is redrawn.
public event [Link] Paint;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the ToolStrip move handle is painted.
public event [Link] PaintGrip;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control's Parent property changes.

public event EventHandler ParentChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Parent property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolStripArray.
QueryAccessibilityHelp
I n this Article
Occurs when an AccessibleObject is providing Help to accessibility applications.

public event [Link] QueryAccessibilityHelp;


member [Link] : [Link]

Remarks
You should use the HelpProvider class to enable users to invoke Help on your accessible object by pressing the F1 key.
The HelpProvider gives you complete information in the QueryAccessibilityHelpEventArgs.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ContinueDrag
I n this Article
Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.
public event [Link] QueryContinueDrag;
member [Link] : [Link]

Remarks
The QueryContinueDrag event is raised when there is a change in the keyboard or mouse button state during a drag-
and-drop operation. The QueryContinueDrag event enables the drag source to determine whether the drag-and-drop
operation should be canceled.
For more information about handling events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Region property changes.

public event EventHandler RegionChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Region property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
The ResetIndex method is not supported in the ToolStripArray class.

public void ResetIndex ([Link] o);


member [Link] : [Link] -> unit

Parameters
o ToolStrip ToolStrip
A Control.

Remarks
This method is not supported, and calling it does not raise an exception.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is resized.
public event EventHandler Resize;
member [Link] : EventHandler

Remarks
To determine the Size of the resized control, you can cast the sender parameter of the EventArgs data to a Control and
get its Size property (or Height and Width properties individually).
To handle custom layouts, use the Layout event instead of the Resize event. The Layout event is raised in response to
a Resize event, but also in response to other changes that affect the layout of the control.

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ToLeftChanged
I n this Article
Occurs when the RightToLeftChanged property value changes.

public event EventHandler RightToLeftChanged;


member [Link] : EventHandler

Remarks
This event is raised if the RightToLeft property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the user or code scrolls through the client area.
public event [Link] Scroll;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Sets the index of the initial ToolStrip in a ToolStripArray.
public void SetIndex ([Link] o, short Index);
member [Link] : [Link] * int16 -> unit

Parameters
o ToolStrip ToolStrip
A ToolStrip in the control array.
Index Int16 Int16
A Short that represents the index of the specified ToolStrip.

Remarks
The SetIndex method should only be called when you are creating the initial element in the control array. To add
subsequent elements, call the Load method and specify the Index .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolStripArray.
ShouldSerializeIndex
I n this Article
Returns a value that indicates whether a ToolStrip is a member of this ToolStripArray.

public bool ShouldSerializeIndex ([Link] o);


member [Link] : [Link] -> bool

Parameters
o ToolStrip ToolStrip
A ToolStrip in the control array.
Returns
Boolean Boolean
true if o is a member of this control array; otherwise, false .

Remarks
If the specified ToolStrip is a member of a different ToolStripArray, ShouldSerializeIndex returns false .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the Size property value changes.
public event EventHandler SizeChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Size property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control style changes.

public event EventHandler StyleChanged;


member [Link] : EventHandler

Remarks
The StyleChanged event occurs when ControlStyles flags have been added or changed.
This event is raised if the control style is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolStripArray.
SystemColorsChanged
I n this Article
Occurs when the system colors change.

public event EventHandler SystemColorsChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SystemColors is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the TabIndex property value changes.

public event EventHandler TabIndexChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabIndex property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the TabStop property value changes.

public event EventHandler TabStopChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabStop property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the Text property value changes.
public event EventHandler TextChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Text property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
ToolStripArray ToolStripArray
I n this Article

Overloads
ToolStripArray()
Initializes a new instance of the ToolStripArray class.

ToolStripArray(IContainer) ToolStripArray(IContainer)
Initializes a new instance of the ToolStripArray class, specifying
its container.

ToolStripArray()
Initializes a new instance of the ToolStripArray class.
public ToolStripArray ();

Remarks
When you instantiate a ToolStripArray, you must also call the SetIndex method to create the initial element in the array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

ToolStripArray(IContainer) ToolStripArray(IContainer)
Initializes a new instance of the ToolStripArray class, specifying its container.
public ToolStripArray ([Link] Container);
new [Link] : [Link] ->
[Link]

Parameters
Container IContainer IContainer
The IContainer where the control array will be hosted.
Remarks
When you instantiate a ToolStripArray, you must also call the SetIndex method to create the initial element in the array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is finished validating.
public event EventHandler Validated;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated

If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is validating.
public event [Link] Validating;
member [Link] : [Link]

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated
If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Visible property value changes.

public event EventHandler VisibleChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Visible property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
ToolStripMenuItemArray ToolStripMenuItemArray Class
Provides a control array of ToolStripMenuItem controls

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class ToolStripMenuItemArray : [Link],
[Link]
type ToolStripMenuItemArray = class
inherit BaseControlArray
interface IExtenderProvider

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component
BaseControlArray BaseControlArray

Remarks
The ToolStripMenuArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0 Menu array. It
does not provide the design-time features of a Visual Basic 6.0 control array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
ToolStripMenuItemArray()
ToolStripMenuItemArray()

Initializes a new instance of the ToolStripMenuItemArray class.

ToolStripMenuItemArray(IContainer)
ToolStripMenuItemArray(IContainer)

Initializes a new instance of the ToolStripMenuItemArray class, specifying its container.

Properties
Item[Int16]
Item[Int16]

Gets a specific element of a ToolStripMenuItemArray by index. Read-only.


Methods
CanExtend(Object)
CanExtend(Object)

Gets a value that determines whether a control is a member of a ComboBoxArray.

GetControlInstanceType()
GetControlInstanceType()

Overrides GetControlInstanceType().

GetIndex(ToolStripMenuItem)
GetIndex(ToolStripMenuItem)

Gets the index of a ToolStripMenuItem in a ToolStripMenuItemArray.

HookUpControlEvents(Object)
HookUpControlEvents(Object)

Overrides HookUpControlEvents(Object).

ResetIndex(ToolStripMenuItem)
ResetIndex(ToolStripMenuItem)

Not supported in the ToolStripMenuItemArray class.

SetIndex(ToolStripMenuItem, Int16)
SetIndex(ToolStripMenuItem, Int16)

Sets the index of the initial ToolStripMenuItem in a ToolStripMenuItemArray.

ShouldSerializeIndex(ToolStripMenuItem)
ShouldSerializeIndex(ToolStripMenuItem)

Returns a value that indicates whether a ToolStripMenuItem is a member of this ToolStripMenuItemArray.

Events
BackColorChanged
BackColorChanged

Occurs when the value of the BackColor property changes.

CheckedChanged
CheckedChanged

Occurs when the value of the Checked property changes.

CheckStateChanged
CheckStateChanged

Occurs when the value of the CheckState property changes.

Click
Click

Occurs when a ToolStripMenuItem in a ToolStripMenuItemArray is clicked.

DisplayStyleChanged
DisplayStyleChanged

Occurs when the DisplayStyle has changed.

DoubleClick
DoubleClick

Occurs when a ToolStripMenuItem control in a ToolStripMenuItemArray is double-clicked.

DropDownClosed
DropDownClosed

Occurs when the drop-down part of the ToolStripMenuItem is no longer visible.

DropDownItemClicked
DropDownItemClicked

Occurs when the ToolStripDropDown is clicked.

DropDownOpened
DropDownOpened

Occurs when the ToolStripDropDown has opened.

DropDownOpening
DropDownOpening

Occurs as the ToolStripDropDown is opening.


EnabledChanged
EnabledChanged

Occurs when the value of the Enabled property changes.

ForeColorChanged
ForeColorChanged

Occurs when the value of the ForeColor property changes.

LocationChanged
LocationChanged

Occurs when the value of the Location property changes.

MouseDown
MouseDown

Occurs when the mouse pointer is over the control and a mouse button is pressed.

MouseEnter
MouseEnter

Occurs when the mouse pointer enters the control.

MouseHover
MouseHover

Occurs when the mouse pointer rests on the control.

MouseLeave
MouseLeave

Occurs when the mouse pointer leaves the control.

MouseMove
MouseMove

Occurs when the mouse pointer is moved over the control.

MouseUp
MouseUp

Occurs when the mouse pointer is over the control and a mouse button is released.
OwnerChanged
OwnerChanged

Occurs when the Owner property changes.

Paint
Paint

Occurs when the item is redrawn.

QueryAccessibilityHelp
QueryAccessibilityHelp

Occurs when an AccessibleObject is providing Help to accessibility applications.

RightToLeftChanged
RightToLeftChanged

Occurs when the RightToLeftChanged property value changes.

TextChanged
TextChanged

Occurs when the Text property value changes.

VisibleChanged
VisibleChanged

Occurs when the Visible property value changes.


[Link] ToolStrip
[Link]
I n this Article
Occurs when the value of the BackColor property changes.

public event EventHandler BackColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BackColor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolStripMenuItem
[Link]
I n this Article
Gets a value that determines whether a control is a member of a ComboBoxArray.

public bool CanExtend (object target);


abstract member CanExtend : obj -> bool
override [Link] : obj -> bool

Parameters
target Object Object
A ToolStripMenuItem control.
Returns
Boolean Boolean
true if target is a member of the control array; otherwise false .

Remarks
The CanExtend method can be used to determine whether a specific ToolStripMenuItem control is the base element of
the control array from which the other elements were cloned.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolStrip
[Link]
I n this Article
Occurs when the value of the Checked property changes.

public event EventHandler CheckedChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Checked property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolStrip
[Link]
I n this Article
Occurs when the value of the CheckState property changes.

public event EventHandler CheckStateChanged;


member [Link] : EventHandler

Remarks
This event is raised if the CheckState property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolStripMenuItemArray.
Click
I n this Article
Occurs when a ToolStripMenuItem in a ToolStripMenuItemArray is clicked.

public event EventHandler Click;


member [Link] : EventHandler

Remarks
The Click event passes an EventArgs to its event handler. Therefore it only indicates that a click has occurred. If you
need more specific mouse information (button, number of clicks, wheel rotation, or location), use the MouseClick event.
However, the MouseClick event will not be raised if the click is caused by action other than that of the mouse, such as
pressing the ENTER key.
A double-click is determined by the mouse settings of the user's operating system. The user can set the time between
clicks of a mouse button that should be considered a double-click instead of two clicks. The Click event is raised every
time that a control is double-clicked. For example, if you have event handlers for the Click and DoubleClick events of
a control, the Click and DoubleClick events are raised when the control is double-clicked and both methods are
called. If a control is double-clicked and that control does not support the DoubleClick event, the Click event might be
raised two times.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolStrip
[Link]
I n this Article
Occurs when the DisplayStyle has changed.

public event EventHandler DisplayStyleChanged;


member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolStripMenuItem
[Link]
I n this Article
Occurs when a ToolStripMenuItem control in a ToolStripMenuItemArray is double-clicked.

public event EventHandler DoubleClick;


member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolStrip
[Link]
I n this Article
Occurs when the drop-down part of the ToolStripMenuItem is no longer visible.

public event EventHandler DropDownClosed;


member [Link] : EventHandler

Remarks
Use the DropDownClosed event to restore the state of the ToolStripMenuItem from changes you made in response to
the DropDown event.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolStrip
[Link]
I n this Article
Occurs when the ToolStripDropDown is clicked.

public event [Link] DropDownItemClicked;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolStrip
[Link]
I n this Article
Occurs when the ToolStripDropDown has opened.

public event EventHandler DropDownOpened;


member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolStrip
[Link]
I n this Article
Occurs as the ToolStripDropDown is opening.

public event EventHandler DropDownOpening;


member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolStripMenu
[Link]
I n this Article
Occurs when the value of the Enabled property changes.

public event EventHandler EnabledChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Enabled property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolStrip
[Link]
I n this Article
Occurs when the value of the ForeColor property changes.

public event EventHandler ForeColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ForeColor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] Tool
[Link]
I n this Article
Overrides GetControlInstanceType().

protected override Type GetControlInstanceType ();


override [Link] : unit -> Type

Returns
Type Type
The ToolStripMenuItemArray class is the base class for all control arrays that are used in applications upgraded from
Visual Basic 6.0. Because this class is not typically used to create an instance of the class, this Protected method is
usually not called directly but is instead called by a derived class.

Remarks
This method cannot be called from your application's code. Use the GetType method instead.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolStripMenuItem
[Link]
I n this Article
Gets the index of a ToolStripMenuItem in a ToolStripMenuItemArray.

public short GetIndex ([Link] o);


member [Link] : [Link] -> int16

Parameters
o ToolStripMenuItem ToolStripMenuItem
A ToolStripMenuItem in the control array.
Returns
Int16 Int16
A Short that represents the index of the specified ToolStripMenuItem.

Remarks
This method can be used to retrieve the index for the specified ToolStripMenuItem.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolStrip
[Link]
I n this Article
Overrides HookUpControlEvents(Object).

protected override void HookUpControlEvents (object o);


override [Link] : obj -> unit

Parameters
o Object Object
An Object.

Remarks
This method cannot be called from your application's code. Use AddHandler to hook up events for any controls that
are added by using the Load method.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link][Int16] ToolStripMenuItem
[Link][Int16]
I n this Article
Gets a specific element of a ToolStripMenuItemArray by index. Read-only.

public [Link] this[short Index] { get; }


member [Link](int16) : [Link]

Parameters
Index Int16 Int16
A Short that specifies the position of an element of the control array.
Returns
ToolStripMenuItem ToolStripMenuItem
A ToolStripMenuItem at the specified Index in the control array.

Remarks
The Item property is the default property for a control array. Therefore, the following lines of code are equivalent.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolStrip
[Link]
I n this Article
Occurs when the value of the Location property changes.

public event EventHandler LocationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Location property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolStripMenuItem
[Link]
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is pressed.

public event [Link] MouseDown;


member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel

MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolStripMenuItem
[Link]
I n this Article
Occurs when the mouse pointer enters the control.

public event EventHandler MouseEnter;


member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter

MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolStripMenuItem
[Link]
I n this Article
Occurs when the mouse pointer rests on the control.

public event EventHandler MouseHover;


member [Link] : EventHandler

Remarks
A typical use of MouseHover is to display a tool tip when the mouse pauses on a control within a specified area around
the control (the "hover rectangle"). The pause required for this event to be raised is specified in milliseconds by the
MouseHoverTime property.
The MouseHover event is defined and detected in connection with the MouseHoverSize and MouseHoverTime
properties.
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolStripMenuItem
[Link]
I n this Article
Occurs when the mouse pointer leaves the control.

public event EventHandler MouseLeave;


member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolStripMenuItem
[Link]
I n this Article
Occurs when the mouse pointer is moved over the control.

public event [Link] MouseMove;


member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove

MouseHover / MouseDown / MouseWheel


MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolStripMenuItem
[Link]
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is released.

public event [Link] MouseUp;


member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp

MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolStripMenu
[Link]
I n this Article
Occurs when the Owner property changes.

public event EventHandler OwnerChanged;


member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolStripMenuItemArray.
Paint
I n this Article
Occurs when the item is redrawn.

public event [Link] Paint;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] Tool
[Link]
I n this Article
Occurs when an AccessibleObject is providing Help to accessibility applications.

public event [Link] QueryAccessibilityHelp;


member [Link] : [Link]

Remarks
You should use the HelpProvider class to enable users to invoke Help on your accessible object by pressing the F1 key.
The HelpProvider gives you complete information in the QueryAccessibilityHelpEventArgs.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolStripMenuItem
[Link]
I n this Article
Not supported in the ToolStripMenuItemArray class.

public void ResetIndex ([Link] o);


member [Link] : [Link] -> unit

Parameters
o ToolStripMenuItem ToolStripMenuItem
A Control.

Remarks
This method is not supported, and calling it does not raise an exception.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolStrip
[Link]
I n this Article
Occurs when the RightToLeftChanged property value changes.

public event EventHandler RightToLeftChanged;


member [Link] : EventHandler

Remarks
This event is raised if the RightToLeft property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolStripMenuItem
[Link]
I n this Article
Sets the index of the initial ToolStripMenuItem in a ToolStripMenuItemArray.

public void SetIndex ([Link] o, short Index);


member [Link] : [Link] * int16 -> unit

Parameters
o ToolStripMenuItem ToolStripMenuItem
A ToolStripMenuItem in the control array.
Index Int16 Int16
A Short that represents the index of the specified ToolStripMenuItem.

Remarks
The SetIndex method should only be called when you are creating the initial element in the control array. To add
subsequent elements, call the Load method and specify the Index .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolStrip
[Link]
I n this Article
Returns a value that indicates whether a ToolStripMenuItem is a member of this ToolStripMenuItemArray.

public bool ShouldSerializeIndex ([Link] o);


member [Link] : [Link] -> bool

Parameters
o ToolStripMenuItem ToolStripMenuItem
A ToolStripMenuItem in the control array.
Returns
Boolean Boolean
true if o is a member of this control array; otherwise, false .

Remarks
If the specified ToolStripMenuItem is a member of a different ToolStripMenuItemArray, ShouldSerializeIndex
returns false .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolStripMenu
[Link]
I n this Article
Occurs when the Text property value changes.

public event EventHandler TextChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Text property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
ToolStripMenuItemArray ToolStripMenuItemArray
I n this Article

Overloads
ToolStripMenuItemArray()
Initializes a new instance of the ToolStripMenuItemArray class.

ToolStripMenuItemArray(IContainer) ToolStripMenuItemArray(
IContainer) Initializes a new instance of the ToolStripMenuItemArray class,
specifying its container.

ToolStripMenuItemArray()
Initializes a new instance of the ToolStripMenuItemArray class.
public ToolStripMenuItemArray ();

Remarks
When you instantiate a ToolStripMenuItemArray, you must also call the SetIndex method to create the initial element
in the array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

ToolStripMenuItemArray(IContainer)
ToolStripMenuItemArray(IContainer)
Initializes a new instance of the ToolStripMenuItemArray class, specifying its container.

public ToolStripMenuItemArray ([Link] Container);


new [Link] :
[Link] -> [Link]

Parameters
Container IContainer IContainer
The IContainer where the control array will be hosted.
Remarks
When you instantiate a ToolStripMenuItemArray, you must also call the SetIndex method to create the initial element
in the array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] ToolStripMenu
[Link]
I n this Article
Occurs when the Visible property value changes.

public event EventHandler VisibleChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Visible property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
TreeViewArray TreeViewArray Class
Provides a control array of TreeView controls

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class TreeViewArray : [Link],
[Link]
type TreeViewArray = class
inherit BaseControlArray
interface IExtenderProvider

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component
BaseControlArray BaseControlArray

Remarks
The TreeViewArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0 TreeView array. It
does not provide the design-time features of a Visual Basic 6.0 control array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
TreeViewArray()
TreeViewArray()

Initializes a new instance of the TreeViewArray class.

TreeViewArray(IContainer)
TreeViewArray(IContainer)

Initializes a new instance of the TreeViewArray class, specifying its container.

Properties
Item[Int16]
Item[Int16]

Gets a specific element of a TreeViewArray by index. Read-only.


Methods
CanExtend(Object)
CanExtend(Object)

Gets a value that determines whether a control is a member of a TreeViewArray.

GetControlInstanceType()
GetControlInstanceType()

Overrides GetControlInstanceType().

GetIndex(TreeView)
GetIndex(TreeView)

Gets the index of a TreeView in a TreeViewArray.

HookUpControlEvents(Object)
HookUpControlEvents(Object)

Overrides HookUpControlEvents(Object).

ResetIndex(TreeView)
ResetIndex(TreeView)

Not supported in the TreeViewArray class.

SetIndex(TreeView, Int16)
SetIndex(TreeView, Int16)

Sets the index of the initial TreeView in a TreeViewArray.

ShouldSerializeIndex(TreeView)
ShouldSerializeIndex(TreeView)

Returns a value that indicates whether a TreeView is a member of this TreeViewArray.

Events
AfterCheck
AfterCheck

Occurs after the tree node check box is selected.

AfterCollapse
AfterCollapse

Occurs after the tree node is collapsed.

AfterExpand
AfterExpand

Occurs after the tree node is expanded.

AfterLabelEdit
AfterLabelEdit

Occurs when the label for an item is edited by the user.

AfterSelect
AfterSelect

Occurs after the tree node is selected.

BackColorChanged
BackColorChanged

Occurs when the value of the BackColor property changes.

BeforeCheck
BeforeCheck

Occurs before the tree node check box is checked.

BeforeCollapse
BeforeCollapse

Occurs before the tree node is collapsed.

BeforeExpand
BeforeExpand

Occurs before the tree node is expanded.

BeforeLabelEdit
BeforeLabelEdit

Occurs before the tree node label text is edited.


BeforeSelect
BeforeSelect

Occurs before the tree node is selected.

BindingContextChanged
BindingContextChanged

Occurs when the value of the BindingContext property changes.

CausesValidationChanged
CausesValidationChanged

Occurs when the value of the CausesValidation property changes.

ChangeUICues
ChangeUICues

Occurs when the focus or keyboard user interface (UI) cues change.

Click
Click

Occurs when a TreeView in a TreeViewArray is clicked.

ClientSizeChanged
ClientSizeChanged

Occurs when the value of the ClientSize property changes.

ContextMenuChanged
ContextMenuChanged

Occurs when the value of the ContextMenu property changes.

ContextMenuStripChanged
ContextMenuStripChanged

Occurs when the value of the ContextMenuStrip property changes.

ControlAdded
ControlAdded

Occurs when a new control is added to the TreeViewArray.


ControlRemoved
ControlRemoved

Occurs when a control is removed from the TreeViewArray.

CursorChanged
CursorChanged

Occurs when the value of the Cursor property changes.

DockChanged
DockChanged

Occurs when the value of the Dock property changes.

DoubleClick
DoubleClick

Occurs when a TreeView control in a TreeViewArray is double-clicked.

DragDrop
DragDrop

Occurs when a drag-and-drop operation is completed.

DragEnter
DragEnter

Occurs when an object is dragged into the control's bounds.

DragLeave
DragLeave

Occurs when an object is dragged out of the control's bounds.

DragOver
DragOver

Occurs when an object is dragged over the control's bounds.

DrawNode
DrawNode

Occurs when a TreeView is drawn and the DrawMode property is set to a TreeViewDrawMode value other than
Normal .
EnabledChanged
EnabledChanged

Occurs when the value of the Enabled property changes.

Enter
Enter

Occurs when the control is entered.

FontChanged
FontChanged

Occurs when the value of the Font property changes.

ForeColorChanged
ForeColorChanged

Occurs when the value of the ForeColor property changes.

GiveFeedback
GiveFeedback

Occurs during a drag operation.

HelpRequested
HelpRequested

Occurs when the user requests help for a control.

ImeModeChanged
ImeModeChanged

Occurs when the value of the ImeMode property changes.

ItemDrag
ItemDrag

Occurs when the user starts dragging a node.

KeyDown
KeyDown

Occurs when a key is pressed and the control has focus.


KeyPress
KeyPress

Occurs when a key is pressed and the control has focus.

KeyUp
KeyUp

Occurs when a key is released and the control has focus.

Layout
Layout

Occurs when a control should reposition its child controls.

Leave
Leave

Occurs when the input focus leaves the control.

LocationChanged
LocationChanged

Occurs when the value of the Location property changes.

MarginChanged
MarginChanged

Occurs when the value of the Margin property changes.

MouseCaptureChanged
MouseCaptureChanged

Occurs when the control loses or gains mouse capture.

MouseClick
MouseClick

Occurs when the control is clicked by the mouse.

MouseDoubleClick
MouseDoubleClick

Occurs when the control is double-clicked by the mouse.


MouseDown
MouseDown

Occurs when the mouse pointer is over the control and a mouse button is pressed.

MouseEnter
MouseEnter

Occurs when the mouse pointer enters the control.

MouseHover
MouseHover

Occurs when the mouse pointer rests on the control.

MouseLeave
MouseLeave

Occurs when the mouse pointer leaves the control.

MouseMove
MouseMove

Occurs when the mouse pointer is moved over the control.

MouseUp
MouseUp

Occurs when the mouse pointer is over the control and a mouse button is released.

Move
Move

Occurs when the control is moved.

NodeMouseClick
NodeMouseClick

Occurs when the user clicks a TreeNode with the mouse.

NodeMouseDoubleClick
NodeMouseDoubleClick

Occurs when the user double-clicks a TreeNode with the mouse.


NodeMouseHover
NodeMouseHover

Occurs when the mouse hovers over a TreeNode.

PaddingChanged
PaddingChanged

Occurs when the control's Padding property changes.

ParentChanged
ParentChanged

Occurs when the control's Parent property changes.

QueryAccessibilityHelp
QueryAccessibilityHelp

Occurs when an AccessibleObject is providing Help to accessibility applications.

QueryContinueDrag
QueryContinueDrag

Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.

RegionChanged
RegionChanged

Occurs when the value of the Region property changes.

Resize
Resize

Occurs when the control is resized.

RightToLeftChanged
RightToLeftChanged

Occurs when the RightToLeftChanged property value changes.

RightToLeftLayoutChanged
RightToLeftLayoutChanged

Occurs when the RightToLeftLayout property changes.


SizeChanged
SizeChanged

Occurs when the Size property value changes.

StyleChanged
StyleChanged

Occurs when the control style changes.

SystemColorsChanged
SystemColorsChanged

Occurs when the system colors change.

TabIndexChanged
TabIndexChanged

Occurs when the TabIndex property value changes.

TabStopChanged
TabStopChanged

Occurs when the TabStop property value changes.

Validated
Validated

Occurs when the control is finished validating.

Validating
Validating

Occurs when the control is validating.

VisibleChanged
VisibleChanged

Occurs when the Visible property value changes.


[Link] [Link]
I n this Article
Occurs after the tree node check box is selected.
public event [Link] AfterCheck;
member [Link] : [Link]

Remarks
Setting the Checked property from within a BeforeCheck or AfterCheck event handler causes the event to be raised
multiple times and can result in unexpected behavior. To prevent the event from being raised multiple times, add logic
to your event handler that only executes your recursive code if the Action property of the TreeViewEventArgs is not
set to Unknown.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Collapse
I n this Article
Occurs after the tree node is collapsed.

public event [Link] AfterCollapse;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs after the tree node is expanded.
public event [Link] AfterExpand;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Edit
I n this Article
Occurs when the label for an item is edited by the user.

public event [Link] AfterLabelEdit;


member [Link] : [Link]

Remarks
The AfterLabelEdit event occurs when the user finishes modifying the text for an item. The new string that the user
types for the item is passed to the event, and the event handler can reject the change. If the event handler rejects the
change, the text reverts to the text as it was before the user began editing the item.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs after the tree node is selected.
public event [Link] AfterSelect;
member [Link] : [Link]

Remarks
This event does not occur when the node is unselected. To detect this occurrence, handle the MouseUp event and test
the IsSelected property.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ColorChanged
I n this Article
Occurs when the value of the BackColor property changes.

public event EventHandler BackColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BackColor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs before the tree node check box is checked.
public event [Link] BeforeCheck;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Collapse
I n this Article
Occurs before the tree node is collapsed.

public event [Link] BeforeCollapse;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Expand
I n this Article
Occurs before the tree node is expanded.

public event [Link] BeforeExpand;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
LabelEdit
I n this Article
Occurs before the tree node label text is edited.

public event [Link] BeforeLabelEdit;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs before the tree node is selected.
public event [Link] BeforeSelect;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] TreeViewArray.
BindingContextChanged
I n this Article
Occurs when the value of the BindingContext property changes.

public event EventHandler BindingContextChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BindingContext property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets a value that determines whether a control is a member of a TreeViewArray.
public bool CanExtend (object target);
abstract member CanExtend : obj -> bool
override [Link] : obj -> bool

Parameters
target Object Object
A TreeView control.
Returns
Boolean Boolean
true if target is a member of the control array; otherwise false .

Remarks
The CanExtend method can be used to determine whether a specific TreeView control is the base element of the
control array from which the other elements were cloned.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] TreeViewArray.
CausesValidationChanged
I n this Article
Occurs when the value of the CausesValidation property changes.

public event EventHandler CausesValidationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the CausesValidation property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Cues
I n this Article
Occurs when the focus or keyboard user interface (UI) cues change.

public event [Link] ChangeUICues;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a TreeView in a TreeViewArray is clicked.
public event EventHandler Click;
member [Link] : EventHandler

Remarks
The Click event passes an EventArgs to its event handler. Therefore it only indicates that a click has occurred. If you
need more specific mouse information (button, number of clicks, wheel rotation, or location), use the MouseClick event.
However, the MouseClick event will not be raised if the click is caused by action other than that of the mouse, such as
pressing the ENTER key.
A double-click is determined by the mouse settings of the user's operating system. The user can set the time between
clicks of a mouse button that should be considered a double-click instead of two clicks. The Click event is raised every
time that a control is double-clicked. For example, if you have event handlers for the Click and DoubleClick events of
a control, the Click and DoubleClick events are raised when the control is double-clicked and both methods are
called. If a control is double-clicked and that control does not support the DoubleClick event, the Click event might be
raised two times.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
SizeChanged
I n this Article
Occurs when the value of the ClientSize property changes.

public event EventHandler ClientSizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ClientSize property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] TreeViewArray.
ContextMenuChanged
I n this Article
Occurs when the value of the ContextMenu property changes.

[[Link](false)]
public event EventHandler ContextMenuChanged;
member [Link] : EventHandler

Attributes BrowsableAttribute

Remarks
This event is raised if the ContextMenu property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] TreeView
[Link]
I n this Article
Occurs when the value of the ContextMenuStrip property changes.

public event EventHandler ContextMenuStripChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ContextMenuStrip property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Added
I n this Article
Occurs when a new control is added to the TreeViewArray.

public event [Link] ControlAdded;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Removed
I n this Article
Occurs when a control is removed from the TreeViewArray.

public event [Link] ControlRemoved;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Cursor property changes.

public event EventHandler CursorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Cursor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Dock property changes.

public event EventHandler DockChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Dock property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a TreeView control in a TreeViewArray is double-clicked.
public event EventHandler DoubleClick;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a drag-and-drop operation is completed.
public event [Link] DragDrop;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged into the control's bounds.
public event [Link] DragEnter;
member [Link] : [Link]

Remarks
The DragEnter event is raised when the user first drags the mouse cursor over the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged out of the control's bounds.
public event EventHandler DragLeave;
member [Link] : EventHandler

Remarks
The DragLeave event is raised when the user drags the pointer out of the control or the user cancels the current drag-
and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged over the control's bounds.
public event [Link] DragOver;
member [Link] : [Link]

Remarks
The DragOver event is raised when the mouse pointer moves within the bounds of the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a TreeView is drawn and the DrawMode property is set to a TreeViewDrawMode value other than
Normal .

public event [Link] DrawNode;


member [Link] : [Link]

Remarks
Use this event to customize the appearance of nodes in a TreeView control using owner drawing.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Enabled property changes.

public event EventHandler EnabledChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Enabled property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is entered.
public event EventHandler Enter;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the value of the Font property changes.
public event EventHandler FontChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Font property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ColorChanged
I n this Article
Occurs when the value of the ForeColor property changes.

public event EventHandler ForeColorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ForeColor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] TreeViewArray.
GetControlInstanceType
I n this Article
Overrides GetControlInstanceType().

protected override Type GetControlInstanceType ();


override [Link] : unit -> Type

Returns
Type Type
This method must be overridden. The TreeViewArray class is the base class for all control arrays that are used in
applications upgraded from Visual Basic 6.0. Because this class is not typically used to create an instance of the class,
this Protected method is usually not called directly but is instead called by a derived class.

Remarks
This method cannot be called from your application's code. Use the GetType method instead.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the index of a TreeView in a TreeViewArray.
public short GetIndex ([Link] o);
member [Link] : [Link] -> int16

Parameters
o TreeView TreeView
A TreeView in the control array.
Returns
Int16 Int16
A Short that represents the index of the specified TreeView.

Remarks
This method can be used to retrieve the index for the specified TreeView.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Feedback
I n this Article
Occurs during a drag operation.

public event [Link] GiveFeedback;


member [Link] : [Link]

Remarks
The GiveFeedback event is raised when a drag-and-drop operation is started. You can use the GiveFeedback event to
configure the source of a drag event to modify the appearance of the mouse pointer in order to give the user visual
feedback during a drag-and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Requested
I n this Article
Occurs when the user requests help for a control.

public event [Link] HelpRequested;


member [Link] : [Link]

Remarks
The HelpRequested event is typically raised when the user presses the F1 key or an associated context-sensitive Help
button is clicked.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] TreeViewArray.
HookUpControlEvents
I n this Article
Overrides HookUpControlEvents(Object).

protected override void HookUpControlEvents (object o);


override [Link] : obj -> unit

Parameters
o Object Object
An Object.

Remarks
This method cannot be called from your application's code. Use AddHandler to hook up events for any controls that
are added by using the Load method.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ModeChanged
I n this Article
Occurs when the value of the ImeMode property changes.

public event EventHandler ImeModeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ImeMode property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link][Int16] [Link][Int16]
I n this Article
Gets a specific element of a TreeViewArray by index. Read-only.
public [Link] this[short Index] { get; }
member [Link](int16) : [Link]

Parameters
Index Int16 Int16
A Short that specifies the position of an element of the control array.
Returns
TreeView TreeView
A TreeView at the specified Index in the control array.

Remarks
The Item property is the default property for a control array. Therefore, the following lines of code are equivalent.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the user starts dragging a node.
public event [Link] ItemDrag;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is pressed and the control has focus.
public event [Link] KeyDown;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown

KeyPress
KeyUp
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is pressed and the control has focus.
public event [Link] KeyPress;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress

KeyUp
The KeyPress event is not raised by noncharacter keys; however, the noncharacter keys do raise the KeyDown and
KeyUp events.
Use the KeyChar property to sample keystrokes at run time and to consume or modify a subset of common keystrokes.
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is released and the control has focus.
public event [Link] KeyUp;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress
KeyUp

To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a control should reposition its child controls.
public event [Link] Layout;
member [Link] : [Link]

Remarks
The Layout event occurs when child controls are added or removed, when the bounds of the control changes, and
when other changes occur that can affect the layout of the control. The layout event can be suppressed by using the
SuspendLayout and ResumeLayout methods. Suspending layout enables you to perform multiple actions on a control
without having to perform a layout for each change. For example, if you resize and move a control, each operation
would raise a Layout event.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the input focus leaves the control.
public event EventHandler Leave;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), or by calling the Select or
SelectNextControl method, focus events occur in the following order:
Enter
GotFocus
Leave

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Location property changes.

public event EventHandler LocationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Location property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Margin property changes.

public event EventHandler MarginChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Margin property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] TreeViewArray.
MouseCaptureChanged
I n this Article
Occurs when the control loses or gains mouse capture.

public event EventHandler MouseCaptureChanged;


member [Link] : EventHandler

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown
Click
MouseClick

MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate an MouseDoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a control. They are often raised by other actions, such as pressing the
ENTER key when the control has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is clicked by the mouse.
public event [Link] MouseClick;
member [Link] : [Link]

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown
Click
MouseClick

MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate a MouseDoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a shape. They are often raised by other actions, such as pressing the
ENTER key when the shape has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
DoubleClick
I n this Article
Occurs when the control is double-clicked by the mouse.

public event [Link] MouseDoubleClick;


member [Link] : [Link]

Remarks
Clicking a mouse button when the pointer is over a shape typically raises the following series of events from the
control:
MouseDown
Click
MouseClick
MouseUp
Two clicks that occur close enough in time, as determined by the mouse settings of the user's operating system, will
generate a DoubleClick event instead of the second MouseClick event.
Note

Click events are logically higher-level events of a shape. They are often raised by other actions, such as pressing the
ENTER key when the shape has focus.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is pressed.
public event [Link] MouseDown;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer enters the control.
public event EventHandler MouseEnter;
member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter

MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer rests on the control.
public event EventHandler MouseHover;
member [Link] : EventHandler

Remarks
A typical use of MouseHover is to display a tool tip when the mouse pauses on a control within a specified area around
the control (the "hover rectangle"). The pause required for this event to be raised is specified in milliseconds by the
MouseHoverTime property.
The MouseHover event is defined and detected in connection with the MouseHoverSize and MouseHoverTime
properties.
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer leaves the control.
public event EventHandler MouseLeave;
member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is moved over the control.
public event [Link] MouseMove;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove

MouseHover / MouseDown / MouseWheel


MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer is over the control and a mouse button is released.
public event [Link] MouseUp;
member [Link] : [Link]

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp

MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is moved.
public event EventHandler Move;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
MouseClick
I n this Article
Occurs when the user clicks a TreeNode with the mouse.

public event [Link] NodeMouseClick;


member [Link] : [Link]

Remarks
This event occurs when the user clicks any part of a tree node with the mouse, including the plus sign (+) or minus sign
(-) that indicates whether the node is collapsed or expanded.

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] TreeViewArray.
NodeMouseDoubleClick
I n this Article
Occurs when the user double-clicks a TreeNode with the mouse.

public event [Link] NodeMouseDoubleClick;


member [Link] : [Link]

Remarks
This event occurs when the user double-clicks any part of a tree node with the mouse, including the plus sign (+) or
minus sign (-) that indicates whether the node is collapsed or expanded.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
MouseHover
I n this Article
Occurs when the mouse hovers over a TreeNode.

public event [Link] NodeMouseHover;


member [Link] : [Link]

Remarks
If the mouse is located over a TreeNode, the NodeMouseHover event will occur before the MouseHover event.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control's Padding property changes.

public event EventHandler PaddingChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Padding property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control's Parent property changes.

public event EventHandler ParentChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Parent property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] TreeViewArray.
QueryAccessibilityHelp
I n this Article
Occurs when an AccessibleObject is providing Help to accessibility applications.

public event [Link] QueryAccessibilityHelp;


member [Link] : [Link]

Remarks
You should use the HelpProvider class to enable users to invoke Help on your accessible object by pressing the F1 key.
The HelpProvider gives you complete information in the QueryAccessibilityHelpEventArgs.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ContinueDrag
I n this Article
Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.
public event [Link] QueryContinueDrag;
member [Link] : [Link]

Remarks
The QueryContinueDrag event is raised when there is a change in the keyboard or mouse button state during a drag-
and-drop operation. The QueryContinueDrag event enables the drag source to determine whether the drag-and-drop
operation should be canceled.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Region property changes.

public event EventHandler RegionChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Region property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Not supported in the TreeViewArray class.
public void ResetIndex ([Link] o);
member [Link] : [Link] -> unit

Parameters
o TreeView TreeView
A Control.

Remarks
This method is not supported, and calling it does not raise an exception.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is resized.
public event EventHandler Resize;
member [Link] : EventHandler

Remarks
To determine the Size of the resized control, you can cast the sender parameter of the EventArgs data to a Control and
get its Size property (or Height and Width properties individually).
To handle custom layouts, use the Layout event instead of the Resize event. The Layout event is raised in response to
a Resize event, but also in response to other changes that affect the layout of the control.

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
ToLeftChanged
I n this Article
Occurs when the RightToLeftChanged property value changes.

public event EventHandler RightToLeftChanged;


member [Link] : EventHandler

Remarks
This event is raised if the RightToLeft property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] TreeView
[Link]
I n this Article
Occurs when the RightToLeftLayout property changes.

public event EventHandler RightToLeftLayoutChanged;


member [Link] : EventHandler

Remarks
This event is raised if the RightToLeftLayout property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Sets the index of the initial TreeView in a TreeViewArray.
public void SetIndex ([Link] o, short Index);
member [Link] : [Link] * int16 -> unit

Parameters
o TreeView TreeView
A TreeView in the control array.
Index Int16 Int16
A Short that represents the index of the specified TreeView.

Remarks
The SetIndex method should only be called when you are creating the initial element in the control array. To add
subsequent elements, call the Load method and specify the Index .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] TreeViewArray.
ShouldSerializeIndex
I n this Article
Returns a value that indicates whether a TreeView is a member of this TreeViewArray.

public bool ShouldSerializeIndex ([Link] o);


member [Link] : [Link] -> bool

Parameters
o TreeView TreeView
A TreeView in the control array.
Returns
Boolean Boolean
true if o is a member of this control array; otherwise, false .

Remarks
If the specified TreeView is a member of a different TreeViewArray, ShouldSerializeIndex returns false .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the Size property value changes.
public event EventHandler SizeChanged;
member [Link] : EventHandler

Remarks
This event is raised if the Size property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control style changes.

public event EventHandler StyleChanged;


member [Link] : EventHandler

Remarks
The StyleChanged event occurs when ControlStyles flags have been added or changed.
This event is raised if the control style is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] TreeViewArray.
SystemColorsChanged
I n this Article
Occurs when the system colors change.

public event EventHandler SystemColorsChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SystemColors is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the TabIndex property value changes.

public event EventHandler TabIndexChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabIndex property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the TabStop property value changes.

public event EventHandler TabStopChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabStop property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
TreeViewArray TreeViewArray
I n this Article

Overloads
TreeViewArray()
Initializes a new instance of the TreeViewArray class.

TreeViewArray(IContainer) TreeViewArray(IContainer)
Initializes a new instance of the TreeViewArray class, specifying
its container.

TreeViewArray()
Initializes a new instance of the TreeViewArray class.
public TreeViewArray ();

Remarks
When you instantiate a TreeViewArray, you must also call the SetIndex method to create the initial element in the array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

TreeViewArray(IContainer) TreeViewArray(IContainer)
Initializes a new instance of the TreeViewArray class, specifying its container.
public TreeViewArray ([Link] Container);
new [Link] : [Link] ->
[Link]

Parameters
Container IContainer IContainer
The IContainer where the control array will be hosted.
Remarks
When you instantiate a TreeViewArray, you must also call the SetIndex method to create the initial element in the array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is finished validating.
public event EventHandler Validated;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated

If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is validating.
public event [Link] Validating;
member [Link] : [Link]

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated
If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Visible property value changes.

public event EventHandler VisibleChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Visible property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
UGUID UGUID Struct
Provides a Structure that represents a Guid in an application that has been upgraded from Visual Basic 6.0.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
[[Link](false)]
public struct UGUID
type UGUID = struct

I nheritance H ierarchy
Object Object
ValueType ValueType

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Fields
guid
guid

A field containing a Guid for the internal UGUID structure.


[Link] [Link]
I n this Article
A field containing a Guid for the internal UGUID structure.
public Guid guid;
val mutable guid : Guid

Returns
Guid Guid

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
UNAME UNAME Struct
Provides a Structure that represents a pointer to a Name property in an application that has been upgraded from
Visual Basic 6.0.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
[[Link](false)]
public struct UNAME
type UNAME = struct

I nheritance H ierarchy
Object Object
ValueType ValueType

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Fields
name
name

Contains a IntPtr for the internal UNAME structure.


[Link] [Link]
I n this Article
Contains a IntPtr for the internal UNAME structure.
public IntPtr name;
val mutable name : nativeint

Returns
IntPtr IntPtr

Remarks
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
UpdateMode UpdateMode Enum
Provides constants for compatibility with the Visual Basic 6.0 UpdateMode method.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
[[Link]("4BFADC70-4994-11D1-A3A8-00A0C90F26FA")]
public enum UpdateMode
type UpdateMode =

I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum

Remarks
These constants enable code that has been upgraded from Visual Basic 6.0 to continue to run without additional
modification.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Fields
vbUpdateWhenPropertyChanges vbUpdateWhenPropertyChanges 1

vbUpdateWhenRowChanges vbUpdateWhenRowChanges 2

vbUsePropertyAttributes vbUsePropertyAttributes 0
VScrollBarArray VScrollBarArray Class
Provides a control array of VScrollBar controls.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class VScrollBarArray : [Link],
[Link]
type VScrollBarArray = class
inherit BaseControlArray
interface IExtenderProvider

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component
BaseControlArray BaseControlArray

Remarks
The VScrollBarArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0 VScrollBar
array. It does not provide the design-time features of a Visual Basic 6.0 control array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
VScrollBarArray()
VScrollBarArray()

Initializes a new instance of the VScrollBarArray class.

VScrollBarArray(IContainer)
VScrollBarArray(IContainer)

Initializes a new instance of the VScrollBarArray class, specifying its container.

Properties
Item[Int16]
Item[Int16]

Gets a specific element of a VScrollBarArray by index. Read-only.


Methods
CanExtend(Object)
CanExtend(Object)

Gets a value that determines whether a control is a member of a VScrollBarArray.

GetControlInstanceType()
GetControlInstanceType()

Overrides GetControlInstanceType().

GetIndex(VScrollBar)
GetIndex(VScrollBar)

Gets the index of a VScrollBar in a VScrollBarArray.

HookUpControlEvents(Object)
HookUpControlEvents(Object)

Gets a value that determines whether a control is a member of a VScrollBarArray.

ResetIndex(VScrollBar)
ResetIndex(VScrollBar)

The ResetIndex method is not supported in the VScrollBarArray class.

SetIndex(VScrollBar, Int16)
SetIndex(VScrollBar, Int16)

Sets the index of the initial VScrollBar in a VScrollBarArray.

ShouldSerializeIndex(VScrollBar)
ShouldSerializeIndex(VScrollBar)

Returns a value that indicates whether a VScrollBar is a member of this VScrollBarArray.

Events
BindingContextChanged
BindingContextChanged

Occurs when the value of the BindingContext property changes.

CausesValidationChanged
CausesValidationChanged

Occurs when the value of the CausesValidation property changes.

ChangeUICues
ChangeUICues

Occurs when the focus or keyboard user interface (UI) cues change.

ClientSizeChanged
ClientSizeChanged

Occurs when the value of the ClientSize property changes.

ContextMenuChanged
ContextMenuChanged

Occurs when the value of the ContextMenu property changes.

ContextMenuStripChanged
ContextMenuStripChanged

Occurs when the value of the ContextMenuStrip property changes.

ControlAdded
ControlAdded

Occurs when a new control is added to the VScrollBarArray.

ControlRemoved
ControlRemoved

Occurs when a control is removed from the VScrollBarArray.

CursorChanged
CursorChanged

Occurs when the value of the Cursor property changes.

DockChanged
DockChanged

Occurs when the value of the Dock property changes.


DragDrop
DragDrop

Occurs when a drag-and-drop operation is completed.

DragEnter
DragEnter

Occurs when an object is dragged into the control's bounds.

DragLeave
DragLeave

Occurs when an object is dragged out of the control's bounds.

DragOver
DragOver

Occurs when an object is dragged over the control's bounds.

EnabledChanged
EnabledChanged

Occurs when the value of the Enabled property changes.

Enter
Enter

Occurs when the control is entered.

GiveFeedback
GiveFeedback

Occurs during a drag operation.

HelpRequested
HelpRequested

Occurs when the user requests Help for a control.

KeyDown
KeyDown

Occurs when a key is pressed and the control has focus.


KeyPress
KeyPress

Occurs when a key is pressed and the control has focus.

KeyUp
KeyUp

Occurs when a key is released and the control has focus.

Layout
Layout

Occurs when a control should reposition its child controls.

Leave
Leave

Occurs when the input focus leaves the control.

LocationChanged
LocationChanged

Occurs when the value of the Location property changes.

MarginChanged
MarginChanged

Occurs when the value of the Margin property changes.

MouseCaptureChanged
MouseCaptureChanged

Occurs when the control loses or gains mouse capture.

MouseEnter
MouseEnter

Occurs when the mouse pointer enters the control.

MouseHover
MouseHover

Occurs when the mouse pointer rests on the control.


MouseLeave
MouseLeave

Occurs when the mouse pointer leaves the control.

Move
Move

Occurs when the control is moved.

PaddingChanged
PaddingChanged

Occurs when the control's Padding property changes.

ParentChanged
ParentChanged

Occurs when the control's Parent property changes.

QueryAccessibilityHelp
QueryAccessibilityHelp

Occurs when an AccessibleObject is providing Help to accessibility applications.

QueryContinueDrag
QueryContinueDrag

Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.

RegionChanged
RegionChanged

Occurs when the value of the Region property changes.

Resize
Resize

Occurs when the control is resized.

Scroll
Scroll

Occurs when the user scrolls the VScrollBar control.


SizeChanged
SizeChanged

Occurs when the Size property value changes.

StyleChanged
StyleChanged

Occurs when the control style changes.

SystemColorsChanged
SystemColorsChanged

Occurs when the system colors change.

TabIndexChanged
TabIndexChanged

Occurs when the TabIndex property value changes.

TabStopChanged
TabStopChanged

Occurs when the TabStop property value changes.

Validated
Validated

Occurs when the control is finished validating.

Validating
Validating

Occurs when the control is validating.

ValueChanged
ValueChanged

Occurs when the Value property changes.

VisibleChanged
VisibleChanged

Occurs when the Visible property value changes.


[Link] VScrollBar
[Link]
I n this Article
Occurs when the value of the BindingContext property changes.

public event EventHandler BindingContextChanged;


member [Link] : EventHandler

Remarks
This event is raised if the BindingContext property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets a value that determines whether a control is a member of a VScrollBarArray.
public bool CanExtend (object target);
abstract member CanExtend : obj -> bool
override [Link] : obj -> bool

Parameters
target Object Object
A VScrollBar control.
Returns
Boolean Boolean
true if target is a member of the control array; otherwise, false .

Remarks
The CanExtend method can be used to determine whether a specific VScrollBar control is the base element of the
control array from which the other elements were cloned.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] VScrollBar
[Link]
I n this Article
Occurs when the value of the CausesValidation property changes.

public event EventHandler CausesValidationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the CausesValidation property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
UICues
I n this Article
Occurs when the focus or keyboard user interface (UI) cues change.

public event [Link] ChangeUICues;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] VScrollBarArray.
ClientSizeChanged
I n this Article
Occurs when the value of the ClientSize property changes.

public event EventHandler ClientSizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ClientSize property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] VScrollBarArray.
ContextMenuChanged
I n this Article
Occurs when the value of the ContextMenu property changes.

[[Link](false)]
public event EventHandler ContextMenuChanged;
member [Link] : EventHandler

Attributes BrowsableAttribute

Remarks
This event is raised if the ContextMenu property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] VScrollBar
[Link]
I n this Article
Occurs when the value of the ContextMenuStrip property changes.

public event EventHandler ContextMenuStripChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ContextMenuStrip property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Added
I n this Article
Occurs when a new control is added to the VScrollBarArray.

public event [Link] ControlAdded;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] VScrollBarArray.
ControlRemoved
I n this Article
Occurs when a control is removed from the VScrollBarArray.

public event [Link] ControlRemoved;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Cursor property changes.

public event EventHandler CursorChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Cursor property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Dock property changes.

public event EventHandler DockChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Dock property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a drag-and-drop operation is completed.
public event [Link] DragDrop;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged into the control's bounds.
public event [Link] DragEnter;
member [Link] : [Link]

Remarks
The DragEnter event is raised when the user first drags the mouse cursor over the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged out of the control's bounds.
public event EventHandler DragLeave;
member [Link] : EventHandler

Remarks
The DragLeave event is raised when the user drags the cursor out of the control or the user cancels the current drag-
and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when an object is dragged over the control's bounds.
public event [Link] DragOver;
member [Link] : [Link]

Remarks
The DragOver event is raised when the mouse cursor moves within the bounds of the control during a drag-and-drop
operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] VScrollBarArray.
EnabledChanged
I n this Article
Occurs when the value of the Enabled property changes.

public event EventHandler EnabledChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Enabled property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is entered.
public event EventHandler Enter;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), or by calling the Select or
SelectNextControl method, focus events occur in the following order:
Enter

GotFocus
Leave
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter

GotFocus
LostFocus
Leave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] VScrollBarArray.
GetControlInstanceType
I n this Article
Overrides GetControlInstanceType().

protected override Type GetControlInstanceType ();


override [Link] : unit -> Type

Returns
Type Type
The type of a control in a control array.

Remarks
This method cannot be called from your application's code. Use the GetType method instead.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the index of a VScrollBar in a VScrollBarArray.
public short GetIndex ([Link] o);
member [Link] : [Link] -> int16

Parameters
o VScrollBar VScrollBar
A Short that specifies the position of an element of the control array.
Returns
Int16 Int16
A VScrollBar at the specified Index in the control array.

Remarks
The Item property is the default property for a control array. Therefore, the following lines of code are equivalent.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Feedback
I n this Article
Occurs during a drag operation.

public event [Link] GiveFeedback;


member [Link] : [Link]

Remarks
The GiveFeedback event is raised when a drag-and-drop operation is started. By using the GiveFeedback event, the
source of a drag event can modify the appearance of the mouse pointer in order to give the user visual feedback during
a drag-and-drop operation.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Requested
I n this Article
Occurs when the user requests Help for a control.

public event [Link] HelpRequested;


member [Link] : [Link]

Remarks
The HelpRequested event is typically raised when the user presses the F1 key or an associated context-sensitive Help
button is clicked.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] VScrollBarArray.
HookUpControlEvents
I n this Article
Gets a value that determines whether a control is a member of a VScrollBarArray.

protected override void HookUpControlEvents (object o);


override [Link] : obj -> unit

Parameters
o Object Object
A VScrollBar control.

Remarks
The CanExtend method can be used to determine whether a specific VScrollBar control is the base element of the
control array from which the other elements were cloned.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link][Int16] [Link][Int16]
I n this Article
Gets a specific element of a VScrollBarArray by index. Read-only.
public [Link] this[short Index] { get; }
member [Link](int16) : [Link]

Parameters
Index Int16 Int16
A Short that specifies the position of an element of the control array.
Returns
VScrollBar VScrollBar
A VScrollBar at the specified Index in the control array.

Remarks
The Item property is the default property for a control array. Therefore, the following lines of code are equivalent.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is pressed and the control has focus.
public event [Link] KeyDown;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown

KeyPress
KeyUp
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is pressed and the control has focus.
public event [Link] KeyPress;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress

KeyUp
The KeyPress event is not raised by non-character keys; however, the non-character keys do raise the KeyDown and
KeyUp events.
Use the KeyChar property to sample keystrokes at run time and to consume or modify a subset of common keystrokes.
To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a key is released and the control has focus.
public event [Link] KeyUp;
member [Link] : [Link]

Remarks
Key events occur in the following order:
KeyDown
KeyPress
KeyUp

To handle keyboard events only at the form level and not enable controls to receive keyboard events, set the Handled
property in the form's KeyPress event-handling method to true .
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when a control should reposition its child controls.
public event [Link] Layout;
member [Link] : [Link]

Remarks
The Layout event occurs when child controls are added or removed, when the bounds of the control changes, and
when other changes occur that can affect the layout of the control. The layout event can be suppressed by using the
SuspendLayout and ResumeLayout methods. Suspending layout enables you to perform multiple actions on a control
without having to perform a layout for each change. For example, if you resize and move a control, each operation
would raise a Layout event.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the input focus leaves the control.
public event EventHandler Leave;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), or by calling the Select or
SelectNextControl method, focus events occur in the following order:
Enter
GotFocus
Leave

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] VScrollBarArray.
LocationChanged
I n this Article
Occurs when the value of the Location property changes.

public event EventHandler LocationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Location property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Margin property changes.

public event EventHandler MarginChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Margin property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] VScrollBarArray.
MouseCaptureChanged
I n this Article
Occurs when the control loses or gains mouse capture.

public event EventHandler MouseCaptureChanged;


member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the mouse pointer enters the control.
public event EventHandler MouseEnter;
member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter

MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Hover
I n this Article
Occurs when the mouse pointer rests on the control.

public event EventHandler MouseHover;


member [Link] : EventHandler

Remarks
A typical use of MouseHover is to display a tool tip when the mouse pauses on a control within a specified area around
the control (the "hover rectangle"). The pause required for this event to be raised is specified in milliseconds by the
MouseHoverTime property.
The MouseHover event is defined and detected in connection with the MouseHoverSize and MouseHoverTime
properties.
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover

MouseDown / MouseWheel
MouseUp
MouseLeave
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Leave
I n this Article
Occurs when the mouse pointer leaves the control.

public event EventHandler MouseLeave;


member [Link] : EventHandler

Remarks
Mouse events occur in the following order:
MouseEnter
MouseMove
MouseHover / MouseDown / MouseWheel
MouseUp
MouseLeave

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is moved.
public event EventHandler Move;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] VScrollBarArray.
PaddingChanged
I n this Article
Occurs when the control's Padding property changes.

public event EventHandler PaddingChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Padding property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control's Parent property changes.

public event EventHandler ParentChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Parent property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] VScrollBarArray.
QueryAccessibilityHelp
I n this Article
Occurs when an AccessibleObject is providing Help to accessibility applications.

public event [Link] QueryAccessibilityHelp;


member [Link] : [Link]

Remarks
You should use the HelpProvider class to enable users to invoke Help on your accessible object by pressing the F1 key.
The HelpProvider gives you complete information in the QueryAccessibilityHelpEventArgs.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] VScrollBarArray.
QueryContinueDrag
I n this Article
Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop
operation should be canceled.
public event [Link] QueryContinueDrag;
member [Link] : [Link]

Remarks
The QueryContinueDrag event is raised when there is a change in the keyboard or mouse button state during a drag-
and-drop operation. The QueryContinueDrag event enables the drag source to determine whether the drag-and-drop
operation should be canceled.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Region property changes.

public event EventHandler RegionChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Region property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
The ResetIndex method is not supported in the VScrollBarArray class.

public void ResetIndex ([Link] o);


member [Link] : [Link] -> unit

Parameters
o VScrollBar VScrollBar
A Control.

Remarks
This method is not supported, and calling it does not raise an exception.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is resized.
public event EventHandler Resize;
member [Link] : EventHandler

Remarks
To determine the Size of the resized control, you can cast the sender parameter of the EventArgs data to a Control and
get its Size property (or Height and Width properties individually).
To handle custom layouts, use the Layout event instead of the Resize event. The Layout event is raised in response to
a Resize event, but also in response to other changes that affect the layout of the control.

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the user scrolls the VScrollBar control.
public event [Link] Scroll;
member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Sets the index of the initial VScrollBar in a VScrollBarArray.
public void SetIndex ([Link] o, short Index);
member [Link] : [Link] * int16 -> unit

Parameters
o VScrollBar VScrollBar
A VScrollBar in the control array.
Index Int16 Int16
A Short that represents the index of the specified VScrollBar.

Remarks
The SetIndex method should only be called when you are creating the initial element in the control array. To add
subsequent elements, call the Load method and specify the Index .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] VScrollBarArray.
ShouldSerializeIndex
I n this Article
Returns a value that indicates whether a VScrollBar is a member of this VScrollBarArray.

public bool ShouldSerializeIndex ([Link] o);


member [Link] : [Link] -> bool

Parameters
o VScrollBar VScrollBar
A VScrollBar in the control array.
Returns
Boolean Boolean
true if o is a member of this control array; otherwise, false .

Remarks
If the specified VScrollBar is a member of a different VScrollBarArray, ShouldSerializeIndex returns false .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Size property value changes.

public event EventHandler SizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Size property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the control style changes.

public event EventHandler StyleChanged;


member [Link] : EventHandler

Remarks
The StyleChanged event occurs when ControlStyles flags have been added or changed.
This event is raised if the control style is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] VScrollBarArray.
SystemColorsChanged
I n this Article
Occurs when the system colors change.

public event EventHandler SystemColorsChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SystemColors is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
IndexChanged
I n this Article
Occurs when the TabIndex property value changes.

public event EventHandler TabIndexChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabIndex property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
StopChanged
I n this Article
Occurs when the TabStop property value changes.

public event EventHandler TabStopChanged;


member [Link] : EventHandler

Remarks
This event is raised if the TabStop property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is finished validating.
public event EventHandler Validated;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated

If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is validating.
public event [Link] Validating;
member [Link] : [Link]

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated
If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Value property changes.

public event EventHandler ValueChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Value property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Visible property value changes.

public event EventHandler VisibleChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Visible property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
VScrollBarArray VScrollBarArray
I n this Article

Overloads
VScrollBarArray()
Initializes a new instance of the VScrollBarArray class.

VScrollBarArray(IContainer) VScrollBarArray(IContainer)
Initializes a new instance of the VScrollBarArray class,
specifying its container.

VScrollBarArray()
Initializes a new instance of the VScrollBarArray class.
public VScrollBarArray ();

Remarks
When you instantiate a VScrollBarArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

VScrollBarArray(IContainer) VScrollBarArray(IContainer)
Initializes a new instance of the VScrollBarArray class, specifying its container.

public VScrollBarArray ([Link] Container);


new [Link] : [Link] ->
[Link]

Parameters
Container IContainer IContainer
The IContainer where the control array will be hosted.
Remarks
When you instantiate a VScrollBarArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
WebBrowserArray WebBrowserArray Class
Provides a control array of WebBrowser controls

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class WebBrowserArray : [Link],
[Link]
type WebBrowserArray = class
inherit BaseControlArray
interface IExtenderProvider

I nheritance H ierarchy
Object Object
MarshalByRefObject MarshalByRefObject
Component Component
BaseControlArray BaseControlArray

Remarks
The WebBrowserArray class provides an equivalent for the run-time functionality of a Visual Basic 6.0 WebBrowser
array. It does not provide the design-time features of a Visual Basic 6.0 control array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
WebBrowserArray()
WebBrowserArray()

Initializes a new instance of the WebBrowserArray class.

WebBrowserArray(IContainer)
WebBrowserArray(IContainer)

Initializes a new instance of the WebBrowserArray class, specifying its container.

Properties
Item[Int16]
Item[Int16]

Gets a specific element of a WebBrowserArray by index. Read-only.


Methods
CanExtend(Object)
CanExtend(Object)

Gets a value that determines whether a control is a member of a WebBrowserArray.

GetControlInstanceType()
GetControlInstanceType()

Overrides GetControlInstanceType().

GetIndex(WebBrowser)
GetIndex(WebBrowser)

Gets the index of a WebBrowser in a WebBrowserArray.

HookUpControlEvents(Object)
HookUpControlEvents(Object)

Overrides HookUpControlEvents(Object).

ResetIndex(WebBrowser)
ResetIndex(WebBrowser)

The ResetIndex method is not supported in the WebBrowserArray class.

SetIndex(WebBrowser, Int16)
SetIndex(WebBrowser, Int16)

Sets the index of the initial WebBrowser in a WebBrowserArray.

ShouldSerializeIndex(WebBrowser)
ShouldSerializeIndex(WebBrowser)

Returns a value that indicates whether a WebBrowser is a member of this WebBrowserArray.

Events
CausesValidationChanged
CausesValidationChanged

Occurs when the value of the CausesValidation property changes.

ClientSizeChanged
ClientSizeChanged

Occurs when the value of the ClientSize property changes.

ContextMenuChanged
ContextMenuChanged

Occurs when the value of the ContextMenu property changes.

ContextMenuStripChanged
ContextMenuStripChanged

Occurs when the value of the ContextMenuStrip property changes.

ControlAdded
ControlAdded

Occurs when a new control is added to the WebBrowserArray.

ControlRemoved
ControlRemoved

Occurs when a control is removed from the WebBrowserArray.

DockChanged
DockChanged

Occurs when the value of the Dock property changes.

DocumentCompleted
DocumentCompleted

Occurs when the WebBrowser control finishes loading a document.

FileDownload
FileDownload

Occurs when the WebBrowser control downloads a file.

LocationChanged
LocationChanged

Occurs when the value of the Location property changes.


MarginChanged
MarginChanged

Occurs when the value of the Margin property changes.

Move
Move

Occurs when the control is moved.

Navigated
Navigated

Occurs when the WebBrowser control has navigated to a new document and has begun loading it.

Navigating
Navigating

Occurs before the WebBrowser control navigates to a new document.

NewWindow
NewWindow

Occurs before a new browser window is opened.

ParentChanged
ParentChanged

Occurs when the control's Parent property changes.

ProgressChanged
ProgressChanged

Occurs when the WebBrowser control has updated information about the download progress of a document that
it is navigating to.

RegionChanged
RegionChanged

Occurs when the value of the Region property changes.

Resize
Resize

Occurs when the control is resized.


SizeChanged
SizeChanged

Occurs when the Size property value changes.

SystemColorsChanged
SystemColorsChanged

Occurs when the system colors change.

Validated
Validated

Occurs when the control is finished validating.

Validating
Validating

Occurs when the control is validating.

VisibleChanged
VisibleChanged

Occurs when the Visible property value changes.


[Link] [Link]
Extend
I n this Article
Gets a value that determines whether a control is a member of a WebBrowserArray.

public bool CanExtend (object target);


abstract member CanExtend : obj -> bool
override [Link] : obj -> bool

Parameters
target Object Object
A WebBrowser control.
Returns
Boolean Boolean
true if target is a member of the control array; otherwise false .

Remarks
The CanExtend method can be used to determine whether a specific WebBrowser control is the base element of the
control array from which the other elements were cloned.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] Web
[Link]
I n this Article
Occurs when the value of the CausesValidation property changes.

public event EventHandler CausesValidationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the CausesValidation property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] WebBrowserArray.
ClientSizeChanged
I n this Article
Occurs when the value of the ClientSize property changes.

public event EventHandler ClientSizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ClientSize property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] WebBrowser
[Link]
I n this Article
Occurs when the value of the ContextMenu property changes.

[[Link](false)]
public event EventHandler ContextMenuChanged;
member [Link] : EventHandler

Attributes BrowsableAttribute

Remarks
This event is raised if the ContextMenu property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] Web
[Link]
I n this Article
Occurs when the value of the ContextMenuStrip property changes.

public event EventHandler ContextMenuStripChanged;


member [Link] : EventHandler

Remarks
This event is raised if the ContextMenuStrip property is changed by either a programmatic modification or user
interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] WebBrowserArray.
ControlAdded
I n this Article
Occurs when a new control is added to the WebBrowserArray.

public event [Link] ControlAdded;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] WebBrowserArray.
ControlRemoved
I n this Article
Occurs when a control is removed from the WebBrowserArray.

public event [Link] ControlRemoved;


member [Link] : [Link]

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the value of the Dock property changes.

public event EventHandler DockChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Dock property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] WebBrowser
[Link]
I n this Article
Occurs when the WebBrowser control finishes loading a document.

public event [Link] DocumentCompleted;


member [Link] : [Link]

Remarks
The WebBrowser control navigates to a new document whenever one of the following properties is set or methods is
called:
Url
DocumentText
DocumentStream
Navigate
GoBack
GoForward
GoHome
GoSearch
Handle the DocumentCompleted event to receive notification when the new document finishes loading. When the
DocumentCompleted event occurs, the new document is fully loaded, which means you can access its contents through
the Document, DocumentText, or DocumentStream property.
To receive notification before navigation starts, handle the Navigating event. Handling this event lets you cancel
navigation if certain conditions have not been met, for example, when the user has not completely filled out a form.
Handle the Navigated event to receive notification when the WebBrowser control finishes navigation and has begun
loading the document at the new location.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Download
I n this Article
Occurs when the WebBrowser control downloads a file.

public event EventHandler FileDownload;


member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] WebBrowser
[Link]
I n this Article
Overrides GetControlInstanceType().

protected override Type GetControlInstanceType ();


override [Link] : unit -> Type

Returns
Type Type
The type of a control in a control array.

Remarks
This method cannot be called from your application's code. Use the GetType method instead.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets the index of a WebBrowser in a WebBrowserArray.
public short GetIndex ([Link] o);
member [Link] : [Link] -> int16

Parameters
o WebBrowser WebBrowser
A WebBrowser in the control array.
Returns
Int16 Int16
A Short that represents the index of the specified WebBrowser.

Remarks
This method can be used to retrieve the index for the specified WebBrowser.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] WebBrowser
[Link]
I n this Article
Overrides HookUpControlEvents(Object).

protected override void HookUpControlEvents (object o);


override [Link] : obj -> unit

Parameters
o Object Object
An Object.

Remarks
This method cannot be called from your application's code. Use AddHandler to hook up events for any controls that
are added by using the Load method.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link][Int16] [Link][
Int16]
I n this Article
Gets a specific element of a WebBrowserArray by index. Read-only.

public [Link] this[short Index] { get; }


member [Link](int16) : [Link]

Parameters
Index Int16 Int16
A Short that specifies the position of an element of the control array.
Returns
WebBrowser WebBrowser
A WebBrowser at the specified Index in the control array.

Remarks
The Item property is the default property for a control array. Therefore, the following lines of code are equivalent.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] WebBrowserArray.
LocationChanged
I n this Article
Occurs when the value of the Location property changes.

public event EventHandler LocationChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Location property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] WebBrowserArray.
MarginChanged
I n this Article
Occurs when the value of the Margin property changes.

public event EventHandler MarginChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Margin property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is moved.
public event EventHandler Move;
member [Link] : EventHandler

Remarks
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] WebBrowserArray.
Navigated
I n this Article
Occurs when the WebBrowser control has navigated to a new document and has begun loading it.

public event [Link] Navigated;


member [Link] : [Link]

Remarks
The WebBrowser control navigates to a new document whenever one of the following properties is set or methods is
called:
Url
DocumentText
DocumentStream
Navigate
GoBack
GoForward
GoHome
GoSearch
Handle the Navigated event to receive notification when the WebBrowser control has navigated to a new document.
When the Navigated event occurs, the new document has begun loading, which means you can access the loaded
content through the Document, DocumentText, and DocumentStream properties. Handle the DocumentCompleted
event to receive notification when the WebBrowser control finishes loading the new document.
You can also receive notification before navigation starts by handling the Navigating event. Handling this event lets
you cancel navigation if certain conditions have not been met, for example, the user has not filled out a form.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] WebBrowserArray.
Navigating
I n this Article
Occurs before the WebBrowser control navigates to a new document.

public event [Link] Navigating;


member [Link] : [Link]

Remarks
The WebBrowser control navigates to a new document whenever one of the following properties is set or methods is
called:
Url
DocumentText
DocumentStream
Navigate
GoBack
GoForward
GoHome
GoSearch
-
You can handle the Navigating event to cancel navigation if certain conditions have not been met, for example, when
the user has not completely filled out a form. To cancel navigation, set the Cancel property of the
WebBrowserNavigatingEventArgs object passed to the event handler to true . You can also use this object to retrieve
the URL of the new document through the Url property. If the new document will be displayed in a Web page frame,
you can retrieve the name of the frame through the TargetFrameName property.
Handle the Navigated event to receive notification when the WebBrowser control finishes navigation and has begun
loading the document at the new location. Handle the DocumentCompleted event to receive notification when the
WebBrowser control finishes loading the new document.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Window
I n this Article
Occurs before a new browser window is opened.

public event [Link] NewWindow;


member [Link] : [Link]

Remarks
The WebBrowser control opens a separate browser window when the appropriate overload of the Navigate method is
called or when the user clicks Open in New Window on the browser shortcut menu when the mouse pointer hovers
over a hyperlink. You can disable the shortcut menu by setting the IsWebBrowserContextMenuEnabled property to
false .

The NewWindow event occurs before the new browser window is opened. You can handle this event, for example, to
prevent the window from opening when certain conditions have not been met.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] WebBrowserArray.
ParentChanged
I n this Article
Occurs when the control's Parent property changes.

public event EventHandler ParentChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Parent property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] WebBrowserArray.
ProgressChanged
I n this Article
Occurs when the WebBrowser control has updated information about the download progress of a document that it is
navigating to.
public event [Link] ProgressChanged;
member [Link] : [Link]

Remarks
You can use a handler for this event to implement a navigation progress bar similar to the one in Internet Explorer. Use
the CurrentProgress property to determine the number of bytes that have been downloaded successfully. Use the
MaximumProgress property to determine the total number of bytes available for downloading.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] WebBrowserArray.
RegionChanged
I n this Article
Occurs when the value of the Region property changes.

public event EventHandler RegionChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Region property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Index
I n this Article
The ResetIndex method is not supported in the WebBrowserArray class.

public void ResetIndex ([Link] o);


member [Link] : [Link] -> unit

Parameters
o WebBrowser WebBrowser
A Control.

Remarks
This method is not supported, and calling it does not raise an exception.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is resized.
public event EventHandler Resize;
member [Link] : EventHandler

Remarks
To determine the Size of the resized control, you can cast the sender parameter of the EventArgs data to a Control and
get its Size property (or Height and Width properties individually).
To handle custom layouts, use the Layout event instead of the Resize event. The Layout event is raised in response to
a Resize event, but also in response to other changes that affect the layout of the control.

For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Sets the index of the initial WebBrowser in a WebBrowserArray.
public void SetIndex ([Link] o, short Index);
member [Link] : [Link] * int16 -> unit

Parameters
o WebBrowser WebBrowser
A WebBrowser in the control array.
Index Int16 Int16
A Short that represents the index of the specified WebBrowser.

Remarks
The SetIndex method should only be called when you are creating the initial element in the control array. To add
subsequent elements, call the Load method and specify the Index .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] WebBrowser
[Link]
I n this Article
Returns a value that indicates whether a WebBrowser is a member of this WebBrowserArray.

public bool ShouldSerializeIndex ([Link] o);


member [Link] : [Link] -> bool

Parameters
o WebBrowser WebBrowser
A WebBrowser in the control array.
Returns
Boolean Boolean
true if o is a member of this control array; otherwise, false .

Remarks
If the specified WebBrowser is a member of a different WebBrowserArray, ShouldSerializeIndex returns false .
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Changed
I n this Article
Occurs when the Size property value changes.

public event EventHandler SizeChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Size property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] WebBrowser
[Link]
I n this Article
Occurs when the system colors change.

public event EventHandler SystemColorsChanged;


member [Link] : EventHandler

Remarks
This event is raised if the SystemColors is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is finished validating.
public event EventHandler Validated;
member [Link] : EventHandler

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating
Validated

LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating
Validated

If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Occurs when the control is validating.
public event [Link] Validating;
member [Link] : [Link]

Remarks
When you change the focus by using the keyboard (TAB, SHIFT+TAB, and so on), by calling the Select or
SelectNextControl methods, or by setting the ActiveControl property to the current form, focus events occur in the
following order:
Enter
GotFocus
Leave
Validating

Validated
LostFocus
When you change the focus by using the mouse or by calling the Focus method, focus events occur in the following
order:
Enter
GotFocus
LostFocus
Leave
Validating

Validated
If the CausesValidation property is set to false , the Validating and Validated events are suppressed.
If the Cancel property of the CancelEventArgs is set to true in the Validating event delegate, all events that would
usually occur after the Validating event are suppressed.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] WebBrowserArray.
VisibleChanged
I n this Article
Occurs when the Visible property value changes.

public event EventHandler VisibleChanged;


member [Link] : EventHandler

Remarks
This event is raised if the Visible property is changed by either a programmatic modification or user interaction.
For more information about how to handle events, see Handling and Raising Events.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
WebBrowserArray WebBrowserArray
I n this Article

Overloads
WebBrowserArray()
Initializes a new instance of the WebBrowserArray class.

WebBrowserArray(IContainer) WebBrowserArray(IContainer)
Initializes a new instance of the WebBrowserArray class,
specifying its container.

WebBrowserArray()
Initializes a new instance of the WebBrowserArray class.
public WebBrowserArray ();

Remarks
When you instantiate a WebBrowserArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

WebBrowserArray(IContainer) WebBrowserArray(IContainer)
Initializes a new instance of the WebBrowserArray class, specifying its container.

public WebBrowserArray ([Link] Container);


new [Link] : [Link] ->
[Link]

Parameters
Container IContainer IContainer
The IContainer where the control array will be hosted.
Remarks
When you instantiate a WebBrowserArray, you must also call the SetIndex method to create the initial element in the
array.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
WebClass WebClass Class
Enables upgraded Visual Basic 6.0 WebClass projects to run in [Link].

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class WebClass
type WebClass = class

I nheritance H ierarchy
Object Object

Remarks
When a Visual Basic 6.0 WebClass project is upgraded to Visual Basic, it is converted to an [Link] Web-site project.

Declarations are added to your project: one for the WebClass and one for each WebItem and Template in the
WebClass project. A Page_Load event procedure is added to the project. This creates first a WebClass object and then
WebItem objects for each WebItem and Template associated with the Visual Basic 6.0 WebClass project. Finally, in the
Page_Load event procedure, you will see a call to the WebClass Compatibility runtime: ProcessEvents. This enables the
runtime to render the WebItem specified in the Request URL. This code is the only new code added to your upgraded
project and serves only to emulate the underlying behavior of the Visual Basic 6.0 WebClass runtime.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
WebClass(String, String, Object)
WebClass(String, String, Object)

Initializes a new instance of the WebClass class.

Properties
Name
Name

Gets the name that is used in code to identify a WebClass object.

NextItem
NextItem

Gets or sets another WebItem object in the current WebClass object.


UrlData
UrlData

Gets or sets a parameter that is appended to the end of any URL that is generated by using the URLFor method.

Methods
ProcessEvents(HttpRequest)
ProcessEvents(HttpRequest)

Renders a WebItem in a WebClass.

URLFor(WebItem, String)
URLFor(WebItem, String)

Specifies the URL that the system must have to reference a WebClassWebItem in the browser.

URLFor(String, String)
URLFor(String, String)

Specifies the URL that the system must have to reference a WebClassWebItem in the browser.
[Link] [Link]
I n this Article
Gets the name that is used in code to identify a WebClass object.

public string Name { get; }


member [Link] : string

Returns
String String
A String that contains the name for the WebClass object.

Remarks
Read-only.
The WebClass class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web-
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets or sets another WebItem object in the current WebClass object.
public [Link] NextItem { get; set; }
member [Link] : [Link] with get, set

Returns
WebItem WebItem
A WebItem object.

Remarks
Used to shift processing from one WebItem to another during a single request.
The WebClass class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web-
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Renders a WebItem in a WebClass.
public void ProcessEvents ([Link] Request);
member [Link] : [Link] -> unit

Parameters
Request HttpRequest HttpRequest
An HttpRequest object.

Remarks
The WebClass class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web-
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets or sets a parameter that is appended to the end of any URL that is generated by using the URLFor method.
public string UrlData { get; set; }
member [Link] : string with get, set

Returns
String String
A String that contains the parameter that will be appended.

Remarks
The WebClass class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web-
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article

Overloads
URLFor(WebItem, String) URLFor(WebItem, String)
Specifies the URL that the system must have to reference a
WebClassWebItem in the browser.

URLFor(String, String) URLFor(String, String)


Specifies the URL that the system must have to reference a
WebClassWebItem in the browser.

URLFor(WebItem, String) URLFor(WebItem, String)


Specifies the URL that the system must have to reference a WebClassWebItem in the browser.
public string URLFor ([Link] obj, string EventName = "");
member [Link] : [Link] * string -> string

Parameters
obj WebItem WebItem
A WebItem object for which you want to generate a URL and raise an event.
EventName String String
Optional. A String that refers to an event in the WebItem.
Returns
String String
A String that contains the URL.
Remarks
The WebClass class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web-
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

URLFor(String, String) URLFor(String, String)


Specifies the URL that the system must have to reference a WebClassWebItem in the browser.
public string URLFor (string objName, string EventName = "");
member [Link] : string * string -> string

Parameters
objName String String
A String that contains the name of the WebItem object for which you want to generate a URL and raise an event.
EventName String String
Optional. A String that refers to an event in the WebItem.
Returns
String String
A String that contains the URL.
Remarks
The WebClass class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web-
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
WebClass WebClass
I n this Article
Initializes a new instance of the WebClass class.
public WebClass (string UserWebClassName, string WebClassFileName, object ContainingClass);
new [Link] : string * string * obj ->
[Link]

Parameters
UserWebClassName String String
A String that contains the Name property for the Visual Basic 6.0 WebClass object.
WebClassFileName String String
A String that contains the file name for the Visual Basic 6.0 WebClass object.
ContainingClass Object Object
A String that contains the Application property for the Visual Basic 6.0 WebClass object.

Remarks
The WebClass class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web-
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
WebClassContainingClassNotOptional WebClass
ContainingClassNotOptional Class
Raises an Exception if the ContainingClass value is missing.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class WebClassContainingClassNotOptional : Exception
type WebClassContainingClassNotOptional = class
inherit Exception

I nheritance H ierarchy
Object Object
Exception Exception

Remarks
The WebClass class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web-
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
WebClassContainingClassNotOptional()
WebClassContainingClassNotOptional()

Initializes a new instance of the WebClassContainingClassNotOptional class.


WebClassContainingClassNotOptional
I n this Article
Initializes a new instance of the WebClassContainingClassNotOptional class.
public WebClassContainingClassNotOptional ();

Remarks
The WebClass class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web-
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
WebClassCouldNotFindEvent WebClassCouldNotFind
Event Class
Raises an Exception for a missing event parameter in a WebClass.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class WebClassCouldNotFindEvent : Exception
type WebClassCouldNotFindEvent = class
inherit Exception

I nheritance H ierarchy
Object Object
Exception Exception

Remarks
The WebClass class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web-
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
WebClassCouldNotFindEvent()
WebClassCouldNotFindEvent()

Initializes a new instance of the WebClassCouldNotFindEvent class.

WebClassCouldNotFindEvent(String)
WebClassCouldNotFindEvent(String)

Initializes a new instance of the WebClassCouldNotFindEvent class.


WebClassCouldNotFindEvent WebClassCouldNotFind
Event
I n this Article

Overloads
WebClassCouldNotFindEvent()
Initializes a new instance of the WebClassCouldNotFindEvent
class.

WebClassCouldNotFindEvent(String) WebClassCouldNotFind
Event(String) Initializes a new instance of the WebClassCouldNotFindEvent
class.

WebClassCouldNotFindEvent()
Initializes a new instance of the WebClassCouldNotFindEvent class.
public WebClassCouldNotFindEvent ();

Remarks
The WebClass class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web-
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

WebClassCouldNotFindEvent(String)
WebClassCouldNotFindEvent(String)
Initializes a new instance of the WebClassCouldNotFindEvent class.
public WebClassCouldNotFindEvent (string eventName);
new [Link] : string ->
[Link]

Parameters
eventName String String
A String that contains the name of the missing event parameter.
Remarks
The WebClass class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web-
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
WebClassNextItemCannotBeCurrentWebItem WebClass
NextItemCannotBeCurrentWebItem Class
Raises an Exception in a WebClass.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class WebClassNextItemCannotBeCurrentWebItem : Exception
type WebClassNextItemCannotBeCurrentWebItem = class
inherit Exception

I nheritance H ierarchy
Object Object
Exception Exception

Remarks
The WebClass class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web-
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
WebClassNextItemCannotBeCurrentWebItem()
WebClassNextItemCannotBeCurrentWebItem()

Initializes a new instance of the WebClassNextItemCannotBeCurrentWebItem class.


WebClassNextItemCannotBeCurrentWebItem
I n this Article
Initializes a new instance of the WebClassNextItemCannotBeCurrentWebItem class.
public WebClassNextItemCannotBeCurrentWebItem ();

Remarks
The WebClass class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web-
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
WebClassNextItemRespondNotFound WebClassNextItem
RespondNotFound Class
Raises an Exception in a WebClass.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class WebClassNextItemRespondNotFound : Exception
type WebClassNextItemRespondNotFound = class
inherit Exception

I nheritance H ierarchy
Object Object
Exception Exception

Remarks
The WebClass class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web-
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
WebClassNextItemRespondNotFound()
WebClassNextItemRespondNotFound()

Initializes a new instance of the WebClassNextItemRespondNotFound class.


WebClassNextItemRespondNotFound
I n this Article
Initializes a new instance of the WebClassNextItemRespondNotFound class.
public WebClassNextItemRespondNotFound ();

Remarks
The WebClass class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web-
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
WebClassUserWebClassNameNotOptional WebClassUser
WebClassNameNotOptional Class
Raises an Exception if the UserWebClassName value is missing.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class WebClassUserWebClassNameNotOptional : Exception
type WebClassUserWebClassNameNotOptional = class
inherit Exception

I nheritance H ierarchy
Object Object
Exception Exception

Remarks
The WebClass class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web-
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
WebClassUserWebClassNameNotOptional()
WebClassUserWebClassNameNotOptional()

Initializes a new instance of the WebClassUserWebClassNameNotOptional class.


WebClassUserWebClassNameNotOptional
I n this Article
Initializes a new instance of the WebClassUserWebClassNameNotOptional class.
public WebClassUserWebClassNameNotOptional ();

Remarks
The WebClass class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web-
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
WebClassWebClassFileNameNotOptional WebClassWeb
ClassFileNameNotOptional Class
Raises an Exception if the WebClassFileName value is missing.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class WebClassWebClassFileNameNotOptional : Exception
type WebClassWebClassFileNameNotOptional = class
inherit Exception

I nheritance H ierarchy
Object Object
Exception Exception

Remarks
The WebClass class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web-
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
WebClassWebClassFileNameNotOptional()
WebClassWebClassFileNameNotOptional()

Initializes a new instance of the WebClassWebClassFileNameNotOptional class.


WebClassWebClassFileNameNotOptional
I n this Article
Initializes a new instance of the WebClassWebClassFileNameNotOptional class.
public WebClassWebClassFileNameNotOptional ();

Remarks
The WebClass class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web-
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
WebClassWebItemNotValid WebClassWebItemNotValid
Class
Raises an Exception if the WebItem value is not valid.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class WebClassWebItemNotValid : Exception
type WebClassWebItemNotValid = class
inherit Exception

I nheritance H ierarchy
Object Object
Exception Exception

Remarks
The WebClass class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web-
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
WebClassWebItemNotValid(String)
WebClassWebItemNotValid(String)

Initializes a new instance of the WebClassWebItemNotValid class.


WebClassWebItemNotValid WebClassWebItemNotValid
I n this Article
Initializes a new instance of the WebClassWebItemNotValid class.
public WebClassWebItemNotValid (string itemName);
new [Link] : string ->
[Link]

Parameters
itemName String String
A String that represents the WebItem.

Remarks
The WebClass class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web-
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
WebItem WebItem Class
Enables upgraded Visual Basic 6.0 WebClass projects to run in [Link].

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class WebItem
type WebItem = class

I nheritance H ierarchy
Object Object

Remarks
When a Visual Basic 6.0 WebClass project is upgraded to Visual Basic, it is converted to an [Link] Web site project.

Declarations are added to your project: one for the WebClass and one for each of the WebItems and Templates in the
WebClass project. A Page_Load event procedure is added to the project, creating first a WebClass object and then
WebItem objects for each of the WebItems and Templates associated with the Visual Basic 6.0 WebClass project.
Finally, in the Page_Load event procedure, you will see a call to the WebClass Compatibility runtime: ProcessEvents.
This enables the runtime to render the WebItem specified in the Request URL. This code is the only new code added to
your upgraded project and only serves to emulate the underlying behavior of the Visual Basic 6.0 WebClass runtime.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
WebItem(String, WebClass, String)
WebItem(String, WebClass, String)

Initializes a new instance of the WebItem class.

Properties
Name
Name

Gets the name that is used in code to identify a WebItem object.

ReScanReplacements
ReScanReplacements

Gets or sets a value that determines whether to rescan for tokens that are contained within replacement text.
TagPrefix
TagPrefix

Gets or sets the string that is used to prefix replacement tag names in an HTML template.

Methods
WriteTemplate(HttpResponse, String)
WriteTemplate(HttpResponse, String)

Processes an HTML template attached to a WebItem object and returns it to the browser.
[Link] [Link]
I n this Article
Gets the name that is used in code to identify a WebItem object.
public string Name { get; }
member [Link] : string

Returns
String String
A String that contains the name for the WebItem object.

Remarks
Read-only.
The WebItem class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
Replacements
I n this Article
Gets or sets a value that determines whether to rescan for tokens that are contained within replacement text.

public bool ReScanReplacements { get; set; }


member [Link] : bool with get, set

Returns
Boolean Boolean
true if the text should be rescanned; otherwise false . The default is false .

Remarks
The WebItem class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Gets or sets the string that is used to prefix replacement tag names in an HTML template.
public string TagPrefix { get; set; }
member [Link] : string with get, set

Returns
String String
A String that identifies the TagPrefix sequence used to recognize replacement tags in an HTML template.

Remarks
The WebItem class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
WebItem WebItem
I n this Article
Initializes a new instance of the WebItem class.
public WebItem (string Name, [Link] AssociatedWebClass,
string HtmlTemplateFilename = "");
new [Link] : string *
[Link] * string ->
[Link]

Parameters
Name String String
A String that contains the Name property for the Visual Basic 6.0 WebClass object.

AssociatedWebClass WebClass WebClass


The WebClass object that contains this WebItem.
HtmlTemplateFilename String String
Optional. The file name of a Visual Basic 6.0 Template that was associated with the Visual Basic 6.0 WebItem .

Remarks
The WebItem class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
[Link] [Link]
I n this Article
Processes an HTML template attached to a WebItem object and returns it to the browser.

public void WriteTemplate ([Link] Response, string HtmlTemplateFilename = "");


member [Link] : [Link] * string -> unit

Parameters
Response HttpResponse HttpResponse
A HttpResponse object.
HtmlTemplateFilename String String
Optional. The file name of a Visual Basic 6.0 Template that was associated with the Visual Basic 6.0 WebItem .

Remarks
The WebItem class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
WebItemAssociatedWebClassNotOptional WebItem
AssociatedWebClassNotOptional Class
Raises an Exception if the AssociatedWebClass value for a WebItem is missing.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class WebItemAssociatedWebClassNotOptional : Exception
type WebItemAssociatedWebClassNotOptional = class
inherit Exception

I nheritance H ierarchy
Object Object
Exception Exception

Remarks
The WebClass class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web-
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
WebItemAssociatedWebClassNotOptional()
WebItemAssociatedWebClassNotOptional()

Initializes a new instance of the WebItemAssociatedWebClassNotOptional class.


WebItemAssociatedWebClassNotOptional
I n this Article
Initializes a new instance of the WebItemAssociatedWebClassNotOptional class.
public WebItemAssociatedWebClassNotOptional ();

Remarks
The WebClass class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web-
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
WebItemClosingTagNotFound WebItemClosingTagNot
Found Class
Raises an Exception if the closing tag for a template associated with a WebItem is missing.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class WebItemClosingTagNotFound : Exception
type WebItemClosingTagNotFound = class
inherit Exception

I nheritance H ierarchy
Object Object
Exception Exception

Remarks
The WebClass class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web-
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
WebItemClosingTagNotFound(String)
WebItemClosingTagNotFound(String)

Initializes a new instance of the WebItemClosingTagNotFound class.


WebItemClosingTagNotFound WebItemClosingTagNot
Found
I n this Article
Initializes a new instance of the WebItemClosingTagNotFound class.

public WebItemClosingTagNotFound (string TagName);


new [Link] : string ->
[Link]

Parameters
TagName String String
A String that contains the name of the tag.

Remarks
The WebClass class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web-
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
WebItemCouldNotLoadEmbeddedResource WebItem
CouldNotLoadEmbeddedResource Class
Raises an Exception when an embedded resource specified in a WebItem is missing.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class WebItemCouldNotLoadEmbeddedResource : Exception
type WebItemCouldNotLoadEmbeddedResource = class
inherit Exception

I nheritance H ierarchy
Object Object
Exception Exception

Remarks
The WebClass class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
WebItemCouldNotLoadEmbeddedResource()
WebItemCouldNotLoadEmbeddedResource()

Initializes a new instance of the WebItemCouldNotLoadEmbeddedResource class.


WebItemCouldNotLoadEmbeddedResource
I n this Article
Initializes a new instance of the WebItemCouldNotLoadEmbeddedResource class.
public WebItemCouldNotLoadEmbeddedResource ();

Remarks
The WebClass class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
WebItemCouldNotLoadTemplateFile WebItemCouldNot
LoadTemplateFile Class
Raises an Exception if a template file for a WebItem is missing.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class WebItemCouldNotLoadTemplateFile : Exception
type WebItemCouldNotLoadTemplateFile = class
inherit Exception

I nheritance H ierarchy
Object Object
Exception Exception

Remarks
The WebClass class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
WebItemCouldNotLoadTemplateFile()
WebItemCouldNotLoadTemplateFile()

Initializes a new instance of the WebItemCouldNotLoadTemplateFile class.


WebItemCouldNotLoadTemplateFile
I n this Article
Initializes a new instance of the WebItemCouldNotLoadTemplateFile class.
public WebItemCouldNotLoadTemplateFile ();

Remarks
The WebClass class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
WebItemNameNotOptional WebItemNameNotOptional
Class
Raises an Exception if the Name value for a WebItem is missing.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class WebItemNameNotOptional : Exception
type WebItemNameNotOptional = class
inherit Exception

I nheritance H ierarchy
Object Object
Exception Exception

Remarks
The WebClass class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
WebItemNameNotOptional()
WebItemNameNotOptional()

Initializes a new instance of the WebItemNameNotOptional class.


WebItemNameNotOptional
I n this Article
Initializes a new instance of the WebItemNameNotOptional class.
public WebItemNameNotOptional ();

Remarks
The WebClass class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
WebItemNoTemplateSpecified WebItemNoTemplate
Specified Class
Raises an Exception if the Template value for a WebItem is missing.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class WebItemNoTemplateSpecified : Exception
type WebItemNoTemplateSpecified = class
inherit Exception

I nheritance H ierarchy
Object Object
Exception Exception

Remarks
The WebClass class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web-
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
WebItemNoTemplateSpecified()
WebItemNoTemplateSpecified()

Initializes a new instance of the WebItemNoTemplateSpecified class.


WebItemNoTemplateSpecified
I n this Article
Initializes a new instance of the WebItemNoTemplateSpecified class.
public WebItemNoTemplateSpecified ();

Remarks
The WebClass class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web-
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
WebItemTooManyNestedTags WebItemTooManyNested
Tags Class
Raises an Exception if the template for a WebItem contains too many nested tags.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class WebItemTooManyNestedTags : Exception
type WebItemTooManyNestedTags = class
inherit Exception

I nheritance H ierarchy
Object Object
Exception Exception

Remarks
The WebClass class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
WebItemTooManyNestedTags()
WebItemTooManyNestedTags()

Initializes a new instance of the WebItemTooManyNestedTags class.


WebItemTooManyNestedTags
I n this Article
Initializes a new instance of the WebItemTooManyNestedTags class.
public WebItemTooManyNestedTags ();

Remarks
The WebClass class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
WebItemUnexpectedErrorReadingTemplateFile WebItem
UnexpectedErrorReadingTemplateFile Class
Raises an Exception if the template for a WebItem cannot be opened or read.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public class WebItemUnexpectedErrorReadingTemplateFile : Exception
type WebItemUnexpectedErrorReadingTemplateFile = class
inherit Exception

I nheritance H ierarchy
Object Object
Exception Exception

Remarks
The WebClass class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web-
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Constructors
WebItemUnexpectedErrorReadingTemplateFile(String)
WebItemUnexpectedErrorReadingTemplateFile(String)

Initializes a new instance of the WebItemUnexpectedErrorReadingTemplateFile class.


WebItemUnexpectedErrorReadingTemplateFile WebItem
UnexpectedErrorReadingTemplateFile
I n this Article
Initializes a new instance of the WebItemUnexpectedErrorReadingTemplateFile class.

public WebItemUnexpectedErrorReadingTemplateFile (string innerMessage);


new [Link] : string ->
[Link]

Parameters
innerMessage String String
A String that contains the error message.

Remarks
The WebClass class is used by the upgrade tools to upgrade a Visual Basic 6.0 WebClass project to an [Link] Web-
site project.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic 2008. In most cases, these functions and objects duplicate functionality
that you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.
ZOrderConstants ZOrderConstants Enum
Provides constants for compatibility with the Visual Basic 6.0 ZOrder method.

D eclaration
[[Link]("[Link].* classes are obsolete and supported
within 32 bit processes only. [Link]
public enum ZOrderConstants
type ZOrderConstants =

I nheritance H ierarchy
Object Object
ValueType ValueType
Enum Enum

Remarks
In Visual Basic, the Visual Basic ZOrder method is replaced by the BringToFront and SendToBack functions. These
constants enable code that has been upgraded from Visual Basic 6.0 to continue to run without additional modification.
Note

Functions and objects in the [Link].VB6 namespace are provided for use by the tools for
upgrading from Visual Basic 6.0 to Visual Basic. In most cases, these functions and objects duplicate functionality that
you can find in other namespaces in the .NET Framework. They are necessary only when the Visual Basic 6.0 code
model differs significantly from the .NET Framework implementation.

Fields
BringToFront BringToFront Equivalent to the Visual Basic 6.0 constant vbBringToFront .

SendToBack SendToBack Equivalent to the Visual Basic 6.0 constant vbSend ToBack .

You might also like