Reputation: 19
I have a button which browses files into TextBox (image files) and I need to insert these files into imagelist (or/and) PictureBox. I know how to do that other way for example ImageList -> choose Images, but I need to get images from TextBox (where is that location). Is there any way to do that?
Upvotes: 0
Views: 1326
Reputation: 2370
You can load the image directly into a PictureBox using the Load method
myPictureBox.Load("c:\temp\test.jpg")
You can load the image to the imagelist using Image.Add method
ImageList1.Images.Add(New Bitmap("c:\temp\test.jpg"))
Upvotes: 3