List/Tree View

Badman3k
07-04-2004, 02:23 PM
Two quick questions:

Q1:
I have a listview box called results, which displays the contents of a text file. I want to have different column headings, but can't seem to find the code to do so.

Does anyone have any ideas how to do this?

Q2:
I also have a treeview box, which has a number of default items, but I was wondering how I can add little icons before the text, similar to that found in Outlook Express.

Again if anyone knows how to do this, please let me know.

Many thanks in advance,

Iceplug
07-07-2004, 07:11 AM
For the first one, you can look at the Columns property of the ListBox to set the column properties. :)
Haven't looked at the Treeview yet.

okie20
07-07-2004, 08:40 AM
For the tree view, use the image list property. For the imagelist, you just add the control and then it is just adding files to the collection property of it.

Badman3k
07-07-2004, 12:11 PM
Thank you, but I'd like to ask another little question.

In the ListView, with multiply columns, is it possible to having an image/icon instead of text for the column text?

Many thanks again,

okie20
07-07-2004, 12:44 PM
I would say no, so there is probably a way to do it. The item.add allows for an imageindex, and the subitems I think you can only change the colors.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum