hey guys i want to put an image strip on my form that will load all the images in the image directory automatically.now button..
and can it scroll?meaning i dont want the form to bbe to wide..lol
thx for the guidance!
Printable View
hey guys i want to put an image strip on my form that will load all the images in the image directory automatically.now button..
and can it scroll?meaning i dont want the form to bbe to wide..lol
thx for the guidance!
Put a flowlayoutpanel on your form and set the autoscroll property to true. Then add pictureboxes to it like this:
Code:Dim dir As New IO.DirectoryInfo("C:\Patato\With\Salt\Images")
For Each file As IO.FileInfo In dir.GetFiles
Dim picturebox As New PictureBox
picturebox.ImageLocation = file.FullName
FlowLayoutPanel1.Controls.Add(picturebox)
Next
Hi,
You should use a Listbox and Imagelist for that.
Here you can find some explanation.
i have been trying it but its only one file at a time..