help adding selected items in list box to multi picturebox
Hey guys! just new to VB and need help building simple program that i could print index pictures to 11x17 size paper. and came across with listbox multi items selected and wanted to add them to different picture boxes any coding would you suggest? thanks
Re: help adding selected items in list box to multi picturebox
You can get the items selected in a ListBox using its SelectedItems collection, e.g.
vb.net Code:
For Each item As SomeType In myListBox.SelectedItems
'Use item here in whatever way is appropriate.
Next
If, for example, the item is the path of an image file, you could call Image.FromFile inside the loop.