I ll keep this short and simple... I asked this question before, but It wasn t answered. I d like to get several images from a folder, and add them to an array. This is not working, can someone explicitly tell me how to do it? Thanks!
表格装载:
Private Sub Button1_Add(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim PictureArray As New List(Of Image)
For Each item As String In Directory.GetFiles("C:Users urcotdDesktopITLPers", "*.jpg", IO.SearchOption.AllDirectories)
Dim _Image As Image = Image.FromFile(item)
PictureArray.Add(_Image)
Next
If (i < 6) Then
Dim pb As New PictureBox
Me.FlowLayoutPanel1.Controls.Add(pb)
pb.Image = PictureArray(i)
i = i + 1
Thanks!!!