Hi!
Ko, you're right. But the solution is much more simple - use tree-view ActiveX control. It allows to define color for each node separately. However, it requires some procramming...
>>I want to change the color of a listbox item if a user right clicks that item. "Listbox.SelectedItemForecolor" doesn't work because it sets the forecolor for every item that becomes selected, whether or not the user right-clicks it.
>If you mean a multiselct listbox that it is not possible i think
>But if you only may select one file you can set the selecteditemforecolor in the rightclick method to the other color and reset it in the click or lostfocus event.
>Otherwise (multiselect) i think you need a grid here
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.