CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2004
    Posts
    22

    Exclamation 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

  2. #2
    Join Date
    Apr 2004
    Location
    Austria
    Posts
    43
    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

  3. #3
    Join Date
    Apr 2004
    Posts
    22

    Exclamation

    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

  4. #4
    Join Date
    Apr 2004
    Posts
    14
    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.

  5. #5
    Join Date
    Apr 2004
    Posts
    22

    Exclamation

    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.

  6. #6
    Join Date
    Apr 2002
    Location
    Melbourne, Victoria, Australia
    Posts
    1,792
    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
  •  





Click Here to Expand Forum to Full Width

Featured