Results 1 to 5 of 5

Thread: ListView (Resolved)

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949

    ListView (Resolved)

    Hi

    Please can someone say how to:

    1. Find the index of the SelectedItem of a ListView?

    2. Leave the SelectedItem of a ListView highlighted after the
    ListView has lost focus?
    Last edited by taxes; Jun 29th, 2004 at 03:56 PM.
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

  2. #2
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    #1 - Listview1.SelectedItems(0).Index

    #2 - Change the HideSelection property to False.
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949
    Hi crptcblade,

    Many thanks for a fantastically quick response.
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

  4. #4
    Addicted Member
    Join Date
    May 2004
    Posts
    131
    This does work...Although it leaves my selection in Gray when it loses focus. is there any way to keep it in Blue???


    LIKE THIS!!!
    Twisted

  5. #5
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367
    Set the HideSelection property = false.

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