1. Drive List Box
· The drive list box control allows a user to select a valid disk drive at run-time. It displays the available drives in a drop-down combo box. No code is needed to load a drive list box; Visual Basic does this for us. We use the box to get the current drive identification.
· Drive List Box Properties:
Drive Contains the name of the currently selected drive.
· Drive List Box Events:
Change Triggered whenever the user or program changes the drive selection.
2. Directory List Box
· The directory list box displays an ordered, hierarchical list of the user's disk directories and subdirectories. The directory structure is displayed in a list box. Like, the drive list box, little coding is needed to use the directory list box - Visual Basic does most of the work for us.
· Directory List Box Properties:
Path Contains the current directory path.
· Directory List Box Events:
Change Triggered when the directory selection is changed.
3. File List Box
· The file list box locates and lists files in the directory specified by its Path property at run-time. You may select the types of files you want to display in the file list box.
· File List Box Properties:
FileName Contains the currently selected file name.
Path Contains the current path directory.
Pattern Contains a string that determines which files will be displayed. It supports the use of * and ? wildcard characters. For example, using *.dat only displays files with the .dat extension.
· File List Box Events:
DblClick Triggered whenever a file name is double-clicked.
PathChange Triggered whenever the path changes in a file list box.
· You can also use the MultiSelect property of the file list box to allow multiple file selection.
.
No comments:
Post a Comment