Phreak Posted March 27, 2003 Posted March 27, 2003 Okay, I did a search for this, but had no luck whatsoever, so I'm just going to ask. I want to have some sort of list (probably a listview control), to contain a list of "contacts", next to each contact I would like an image. Is there a way to do this with ListView or do I need to look towards a different control. Example of what I'm looking for would be the "Buddy List" in either AIM or MSN Messenger. Thanks! Quote If it works... don't worry, I'll fix it.
Heiko Posted March 27, 2003 Posted March 27, 2003 Well this is VB6 knowledge but here goes: The ListView is just what you asked for. Just don't forget toset the ListView.View Property to "Details". Then you can give every listitem an icon and show additional information in the subitems. Quote .nerd
Leaders dynamic_sysop Posted March 27, 2003 Leaders Posted March 27, 2003 Add a listview to your form, add an image list, set the listview to smallicon view and then select the imagelist as the smallicon property in listview properties, add an image to the imagelist, in this case it's got only 1 image and the index for that image is 0, then to add the text with that image next to it you do the following... ListView1.Items.Add("Message", 0) '// 0 is the image index for that particular image in the imagelist , the "Message" obviously being your own text to add to the list. hope this helps. Quote
philprice Posted March 27, 2003 Posted March 27, 2003 A buddy list would work from a treeview as well, you could also great groups, just remove the tree lines if you dont want them. Quote Phil Price� Visual Studio .NET 2003 Enterprise Edition Microsoft Student Partner 2004 Microsoft Redmond, EMEA Intern 2004
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.