CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Select ALL

  1. #1
    Guest

    Select ALL

    I have created a FileListBox that displays all the files associated with the Dir.
    Is there a way that i can select all the files when the user clicks a command button "Select ALL"

    Thanks


  2. #2
    Join Date
    Sep 1999
    Location
    Red Wing, MN USA
    Posts
    312

    Re: Select ALL

    Use the Selected Property to Indicate the Item is Selected, (MultiSelect has to have been enabled on the List/FileList Control)..

    private Sub Command1_Click()
    Dim iIndex as Integer
    for iIndex = 0 to File1.ListCount - 1
    File1.Selected(iIndex) = true
    next
    End Sub




    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]
    Aaron Young
    Senior Programmer Analyst (Red Wing Software)
    Certified AllExperts Expert

  3. #3
    Guest

    Re: Select ALL

    Thank very much!!! :-)


  4. #4
    Guest

    Re: Select ALL

    Oppps...

    Thank YOU very much!!!


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

Featured