Results 1 to 6 of 6

Thread: listview reached last item help

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2012
    Posts
    137

    listview reached last item help

    i need code so if it reaches last item in listview then go to top of list again

  2. #2
    Junior Member
    Join Date
    Nov 2012
    Posts
    29

    Question Re: listview reached last item help

    You need a code to do what exactly?
    "if it reaches the last items in listview"

    If what reaches the last item?

    How are you selecting the items in the listview control?
    What exactly do you want to acheive?

  3. #3
    Junior Member
    Join Date
    Nov 2012
    Posts
    29

    Re: listview reached last item help

    Quote Originally Posted by Dr.Evil View Post
    You need a code to do what exactly?
    "if it reaches the last items in listview"

    If what reaches the last item?

    How are you selecting the items in the listview control?
    What exactly do you want to acheive?
    If you simply want the selected item displayed in the listview to move up to thie first one available, uppon clicking the last one aavailable then use this code


    Code:
    Private Sub ListView1_Click()
    If ListView1.ListItems.Item(ListView1.ListItems.Count).Selected = True Then ListView1.ListItems.Item(1).Selected = True
    End Sub

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Oct 2012
    Posts
    137

    Re: listview reached last item help

    this worked good

  5. #5
    PowerPoster SamOscarBrown's Avatar
    Join Date
    Aug 2012
    Location
    NC, USA
    Posts
    9,622

    Re: listview reached last item help

    mark as Resolved.

  6. #6
    Junior Member
    Join Date
    Nov 2012
    Posts
    29

    Re: listview reached last item help

    Quote Originally Posted by bogaa View Post
    this worked good
    If you are happy with the answer, can you mark this thread as resolved.

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