
Image array Picture Property
Hi, thanks in advance for reading this.
The intention of my program (beside other things) is that the user
first selects a directory.
Hereafter my program will load all *.bmp pictures available in that
directory, on a form which includes an array of imageboxes.
(Generally I'am using a loop doing following:
- using Dir to get the picturename
- load that picture in a imagebox by using
form1.image1(i).Picture=LoadPicture(Picturename))
This works fine.
Next I want the picturename being visible in a label on a form each
time the user moves its mouse over a particulair picture.
When using for example form1.label1.Caption =
form1.Image1(Index).Picture in the Image1_MouseMove event
(do not look for the exact syntax) , the result present in the label
will NOT be a name(string) but a number?
So the mousemove event works okay, but the picturename will only be
available as a number.
1. Should I create an array with picturenames while loading all
pictures?
2. Any relation between the received number and its corresponding
name?
3. Any other suggestion how to solve this?
P.S I'am using VB4(16bit) and WIN95
Any help would be appreciated.