Getiing Image name from PictureBox

Erdenemandal

Well-known member
Joined
Jul 5, 2004
Messages
63
Location
Deutschland
Hi, all

I have 5 pictureboxes. Using Doubleclick I can change image (System.Drawing.Bitmap.FromFile(OpenFileDialog1.FileName)).

But when I press "save" button I need to get all image names from those PictureBoxes.

Please help me, How can I get Image name from PictureBox ?

Thanks,
Erdenemandal
 
Save the filename in the PictureBoxs Tag property when you load it. When you want to save it just grab the filename from the Tag property.
 
Machaira said:
Save the filename in the PictureBoxs Tag property when you load it. When you want to save it just grab the filename from the Tag property.

Good Idea. Thanks a lot. My problem has solved

Thanks,
Erdenemandal :p
 
Back
Top