In VB4 I have a form, a FileListBox (which includes some jpg pictures), an Image and a TextBox.
With a click in the name of any picture in the FileListBox, the picture appears in the Image.
(I use the command:
f$ = File1.Path + "\" + File1.filename
image1.Picture = LoadPicture(f$)
How could I, for any picture I load, a certain text to be displayed in the TextBox? (Which will describe the picture).
I would not like to use the «ListIndex», because the order and the number of the pictures will be change from time to time.
What I want is when the picture (city.jpg for example), is loaded, a certain text for this picture to be displayed.