VIEWING DATA FILE MANAGER STYLE WITH THE TREEVIEW CONTROL

The last control to examine is the TreeView control. This ActiveX control allows you to view your data in a manner similar to Windows Explorer, with the added feature of being able to include graphic images. An example of a TreeView control can be found on the WindowsCommonControlsTreeView form, which is in Chap14.mdb in the \Examples\Chap14 folder on the accompanying CD-ROM. Figure 14.22 shows the WindowsCommonControlsTreeView form as a source object for the WindowsCommonControls form.

Figure 14.22. The ImageList control is again used for the TreeView control to store the bitmaps displayed.

Notice in Figure 14.22 how the expanded category, called a node, is displaying a different image ...

Get F. Scott Barker's Microsoft® Access 2000 Power Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.