Results 1 to 5 of 5

Thread: How to set icon to a list view column header?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2000
    Location
    Auckland, NZ
    Posts
    182

    How to set icon to a list view column header?

    How to set icon to a list view column header? In VB6 it can be done simple by:
    lvLines.ColumnHeaders(1).Icon = 3,
    but I found nothing similar for VB.NET list view.

  2. #2
    Fanatic Member
    Join Date
    Sep 2002
    Posts
    518
    ms-help://MS.VSCC/MS.MSDNVS/cpref/html/frlrfsystemwindowsformscolumnheadermemberstopic.htm

    ColumnHeader doesn't appear to expose an icon property?

  3. #3
    Fanatic Member
    Join Date
    Sep 2002
    Posts
    518
    Duh I can't read!

    ms-help://MS.VSCC/MS.MSDNVS/cpref/html/frlrfsystemwindowsformslistviewitemclassctortopic5.htm

    Initializes a new instance of the ListViewItem class with specified item text and the image index position of the item's icon.


    There ya go!

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Nov 2000
    Location
    Auckland, NZ
    Posts
    182
    Unfortunately that code will instantaite only ListView item (with an icon), but not a header with an icon.

  5. #5
    Fanatic Member
    Join Date
    Sep 2002
    Posts
    518
    Dang, sorry :/ Wish I knew more about customizing controls.

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