Visual Basic Reference
PatternChange Event
Occurs when the file listing pattern, such as "*.*", is changed by setting the FileName or Pattern property in code.
Syntax
Private Subobject_PatternChange([indexAs Integer])
The PatternChange event syntax has these parts:
Part | Description |
object | An object expression that evaluates to an object in the Applies To list. |
index | An integer that uniquely identifies a control if it's in a control array. |
Remarks
You can use a PatternChange event procedure to respond to pattern changes in a FileListBox control. When you assign a string containing a new pattern to the FileName property, the FileListBox invokes the PathChange event.