Home | Index | Dotnet4all Snippets | Submit resources
About | Mail us 
How to show icons in a checked list box? (Thursday, January 26, 2006)

 

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

 
Previous Posts
    - Grabber control ?
    - Datagrid with grouping
    - How to change Character Entered?
    - Launch another application and wait for it to comp...
    - Launch another application and wait for it to comp...
    - How to get Windows Directory?
    - Closing MDI Child Form
    - Anyone with VB .NET 2003, please help!
    - Write to a file in a dll
    - Pass variables to another program



Disclaimer & Terms of Use | DotNet4All.Com concept & © 2004 - 2007 by Zelders² - Holland