|
-
Nov 19th, 2012, 10:48 PM
#1
Thread Starter
Addicted Member
listview reached last item help
i need code so if it reaches last item in listview then go to top of list again
-
Nov 20th, 2012, 07:17 AM
#2
Junior Member
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?
-
Nov 20th, 2012, 07:28 AM
#3
Junior Member
Re: listview reached last item help
 Originally Posted by Dr.Evil
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
-
Nov 20th, 2012, 01:02 PM
#4
Thread Starter
Addicted Member
Re: listview reached last item help
-
Nov 20th, 2012, 01:57 PM
#5
Re: listview reached last item help
-
Nov 21st, 2012, 05:35 AM
#6
Junior Member
Re: listview reached last item help
 Originally Posted by bogaa
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|