December 6th, 1999, 11:57 AM
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
Aaron Young
December 6th, 1999, 02:12 PM
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
adyoung@win.bright.net
aarony@redwingsoftware.com
December 6th, 1999, 02:59 PM
Thank very much!!! :-)
December 6th, 1999, 03:00 PM
Oppps...
Thank YOU very much!!!