السلام عليكم ورحمة الله وبركاته
وهذه طريقة أخرى لاختيار مجموعة ملفات دفعة واحدة
PHP كود :
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim ofd As New OpenFileDialog
ofd.Title = "إختيار ملفات"
ofd.Multiselect = True
ofd.Filter = "All files (*.*)|*.* | Images (*.jpg;*.bmp;*.png;*.gif;*.tiff)|*.jpg;*.jpeg;*.bmp;*.png;*.gif;*.tif;*.tiff"
ofd.FilterIndex = 2
If ofd.ShowDialog = Windows.Forms.DialogResult.OK Then
For Each f As String In ofd.FileNames
If Not Me.ListBox1.Items.Contains(f) Then
Me.ListBox1.Items.Add(f)
End If
Next
End If
End Sub
السلام عليكم ورحمة الله وبركاته
