السلام عليكم ورحمة الله وبركاته
الدالة GetAllPictureFiles تعيد اسماء ملفات الصور في مجلد محدد وهي تعيدها كمصفوفة اريد ان احمل اسماء الصور في المجلد الى قائمة List Box
هذا الكود كاملا
GetAllPictureFiles - The list of all image files in a directory tree
' Returns a collection with the names of all the image
' files in a directory or a directory tree
' this includes all the image types that can be loaded into a PictureBox control
'
' NOTE: Uses the GetFiles, GetDirectories, and GetAllFiles routines
Function GetAllPictureFiles(ByVal path As String, _
Optional RecurseDirs As Boolean) As Collection
Set GetAllPictureFiles = GetAllFiles(path, _
"*.bmp;*.dib;*.gif;*.jpg;*.jpeg;*.wmf;*.emf;*.ico;*.cur", RecurseDirs)
End Function
للاسف خبرتي محدودة في التعامل مع المصفوفات والمجموعات فهل اجد عندكم المساعدة ؟
