Found the following interesting discussion in the Newsgroups:
| Showing icons in a checked list box by:Anonymous | |
| Hi! We have an application that searches Active Directory and returns user and contact lists to a checked list box, ready for selecting.... We would like to show whether the item displayed in the list box is either a user or a contact object by using a small image for each type of object. Is this possible using the standard check list box control? If not, does anyone have any idea how to obtain such a control? Thanks Phil | |
| Reply: by:Jeff Johnson [MVP: VB] | |
No. Try a list view control instead. | |
| Reply: by:hirf-spam-me-here@gmx.at (Herfried K. Wagner [MVP]) | |
I would use a listview control with 'CheckBoxes' set to 'True' (and maybe 'View' set to 'Details' and 'FullRowSelect' set to 'True'). -- Herfried K. Wagner | |
| Reply: by:Anonymous | |
| OK, I will try this, but how can I then display the correct image? Thanks again! Phil | |
| Reply: by:hirf-spam-me-here@gmx.at (Herfried K. Wagner [MVP]) | |
Have a look at the listview's '*ImageList' properties and the 'ListViewItem''s 'ImageList' and 'ImageIndex' properties. -- Herfried K. Wagner | |
Posted by Xander Zelders

0 Comments:
Post a Comment
<< Home