|
-
Jul 27th, 2006, 02:42 PM
#1
Thread Starter
Member
[RESOLVED] File ListBox
How do I move up and down a file listbox using two buttons?
Note when it reaches the end of the list it should go to the first.
-
Jul 27th, 2006, 02:53 PM
#2
Addicted Member
Re: File ListBox
select the nth item in the listbox when the item selection reaches index = 0;
somewhere on this line ... i m not coding and trying this.. .so u may try to code in this direction!!
- cha0s4u ENJOI
Do Remember to RATE a post if it helps u,
Ratings encrougage those who Know enough,to help others 
-
Jul 27th, 2006, 02:56 PM
#3
Thread Starter
Member
Re: File ListBox
I am sorry that has not helped, I need a snippet of code
-
Jul 27th, 2006, 03:11 PM
#4
Re: File ListBox
Do you mean...
VB Code:
Private Sub cmdDown_Click()
If File1.ListIndex < File1.ListCount - 1 Then
File1.ListIndex = File1.ListIndex + 1
Else
File1.ListIndex = 0
End If
End Sub
Private Sub cmdUp_Click()
If File1.ListIndex > 0 Then
File1.ListIndex = File1.ListIndex - 1
Else
File1.ListIndex = File1.ListCount - 1
End If
End Sub
-
Jul 27th, 2006, 03:18 PM
#5
Addicted Member
- cha0s4u ENJOI
Do Remember to RATE a post if it helps u,
Ratings encrougage those who Know enough,to help others 
-
Jul 27th, 2006, 03:21 PM
#6
Thread Starter
Member
Re: File ListBox
You have to understand some of us are new to VB sorry for not being a pro!!!
-
Jul 27th, 2006, 03:23 PM
#7
Thread Starter
Member
Re: File ListBox
Great Thank you very much, It really hepled GAVIO
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
|