Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

get name of picture?

Tags:

c#

image

winforms

if(pictureBox4.Image.ToString() == 
    ePRO_Decision_Tool.Properties.Resources.mod_onalertq.ToString())...

How to read name of image file loaded in pictureBox (or from resources)?

like image 793
ilija veselica Avatar asked Dec 24 '10 14:12

ilija veselica


1 Answers

The image loaded in PictureBox is just an array of bytes, so to find out what is the filename you must fill the Tag property of PictureBox when any image loaded in it.

like image 97
Jahan Zinedine Avatar answered Sep 20 '22 16:09

Jahan Zinedine