Results 1 to 3 of 3

Thread: multi select

  1. #1

    Thread Starter
    Hyperactive Member notquitehere188's Avatar
    Join Date
    Dec 2004
    Posts
    403

    multi select

    how would you get the information for all of the selected items in a filelist box

    for example
    the user selects three items and you need to add all of their names them to a list box
    It's not just Good, It's Good enough!



    Spelling Eludes Me

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: multi select

    Add a listbox, a filelist box, and a command button. Turn MultiSelect to 1-Simple and enjoy.

    VB Code:
    1. Option Explicit
    2.  
    3. Private Sub Command1_Click()
    4.   Dim f%
    5.   For f = 0 To File1.ListCount - 1
    6.     If File1.Selected(f) = True Then
    7.       List1.AddItem File1.List(f)
    8.     End If
    9.   Next f
    10. End Sub
    Last edited by dglienna; May 3rd, 2005 at 07:30 PM.

  3. #3
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: multi select

    VB Code:
    1. Dim i As Integer
    2.    
    3.     For i = 0 To File1.ListCount - 1
    4.         If File1.Selected(i) = True Then
    5.             MsgBox File1.List(i)
    6.         End If
    7.     Next


    Has someone helped you? Then you can Rate their helpful post.

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