sarahxiaori
Member
- Joined
- Apr 29, 2012
- Messages
- 6
- Programming Experience
- Beginner
Hi,
I am new to VB.NET and i have a question about image array.
I have a folder that contain many photos(sand.jpg,sea.jpg, flower.jpg....etc etc) and i only need to load the first 12 photo from the folder.
Here is my code:
Error Occur : Illegal characters in path.
Please help:grumpy:
I am new to VB.NET and i have a question about image array.
I have a folder that contain many photos(sand.jpg,sea.jpg, flower.jpg....etc etc) and i only need to load the first 12 photo from the folder.
Here is my code:
VB.NET:
Dim PictureBoxes() = {PictureBox0, PictureBox1, PictureBox2, PictureBox3, PictureBox4, PictureBox5, PictureBox6, PictureBox7, PictureBox8, PictureBox9, PictureBox10, PictureBox11}
Dim PictureFiles(11) As Image
Dim i As Integer = 0
For i = 0 To 11
PictureFiles(i) = Image.FromFile("D:\mis\photo\*.jpg")
Next
Dim a As Integer = 0
For a = 0 To 11
PictureBoxes(a).Image = PictureFiles(a)
Next
Error Occur : Illegal characters in path.
Please help:grumpy: