|
-
May 2nd, 2004, 11:32 PM
#1
Need Help on inserting and removing Icons in specific subitem only in an listview
Hi,
I need to add, change or remove smallicon in listview. The operation should be done to a specific subitem only as and when required.
There is already an example provided in section Listview"2017_subclick" but in this example we can not choose specific but can only populate.
Thus I really appreciate a quick and warm help, thanks
-
May 3rd, 2004, 06:30 AM
#2
Remembering my past Visual Basic Days there was a
Listview1.Listitems.Item(index).Subitems(subindex).Icon property where you can set and remove icons ..
explain a bit closer what you want to do.. maybe we can help better
-
May 4th, 2004, 08:27 PM
#3
Hi Illuvatan,
I appreicate your quick reply.
This is what I am looking for:
I will populate a listview with 5 Cols and 100Rows, At this time I will not have any icons in them at all.
In run time as and when required the program should show, remove an icon or change an icon to another (it may be icon, smallicon,… up to your convenience) in a specific cell(s) say (R=2,C=3). This is what I want. At the same time of your time permits, you may experiment changing back colour of specific cell with the same intention as above.
P.S. Please goto “V.B.-- > section -- >Listview -- >"2017_subclick"” you can already find an example there, and you can inovate from there.
Thanks for your help
-
May 4th, 2004, 10:27 PM
#4
Zubir, i don't think we can manage a specific cell in listview for the icon or back color.
if you want to do that, maybe you should find another component that support the task you want.
-
May 4th, 2004, 11:34 PM
#5
Hi Hendramin,
Thanks, please suggest another suitable component, but please keep in mind my requirement; I will be adding items and sub items at run time plus the required ICON and back color staff at run time.
-
May 5th, 2004, 12:52 AM
#6
Zubir - see my answer here which should be enough to get you well on your way. Don't forget to cite me (and codeguru) in the bibliography for your homework
Be nice to Harley riders...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|