Results 1 to 7 of 7

Thread: [RESOLVED] Move Item in the listbox

Threaded View

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2007
    Location
    Malaysia
    Posts
    1,370

    Resolved [RESOLVED] Move Item in the listbox

    How to move Item from the first index to second index one by one until last index. I have select the item. I want to move it down,just change the position. Code below does not works


    Code:
    For c = 0 To ListBox1.ListCount - 1
        
        If ListBox1.Selected(c) = True Then
                    Dim idx As Integer
                    idx = ListBox1.ListIndex
                    If ListBox1.ListIndex > 0 Then
                    ListBox1.ListIndex = idx - 1
                    
                    End If
                    
        End If
    Next
    Attached Images Attached Images  

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