Image Picture Property Other Than Number? 
Author Message
 Image Picture Property Other Than Number?

No, the image control does not contain a file name. You will need to keep
track of that your self. Perhaps using the tag property.

   Image1.Picture = LoadPicture("c:\ATE_Station1(bevel).gif")
   Image1.Tag = "c:\ATE_Station1(bevel).gif"
   If Image1.Tag = "c:\ATE_Station1(bevel).gif" Then
      Debug.Print "Ok"
   End If

David


Quote:
> How can I reference an image picture property in an IF statement like
> this:

> IF image1.picture = "d:\my.ico" THEN
> do something

> I get a number back that differs each time instead of a name when I
> look at the picture value.  Is there a way to refer to the picture by
> name and make it work?



Sun, 26 Sep 2004 10:29:34 GMT  
 Image Picture Property Other Than Number?
Maybe there's an API to compare 2 DC's?  You could just for 1ms put both
pictures on the form, etc, etc


Quote:
> No, the image control does not contain a file name. You will need to keep
> track of that your self. Perhaps using the tag property.

>    Image1.Picture = LoadPicture("c:\ATE_Station1(bevel).gif")
>    Image1.Tag = "c:\ATE_Station1(bevel).gif"
>    If Image1.Tag = "c:\ATE_Station1(bevel).gif" Then
>       Debug.Print "Ok"
>    End If

> David



> > How can I reference an image picture property in an IF statement like
> > this:

> > IF image1.picture = "d:\my.ico" THEN
> > do something

> > I get a number back that differs each time instead of a name when I
> > look at the picture value.  Is there a way to refer to the picture by
> > name and make it work?



Tue, 16 Nov 2004 19:58:03 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Replacing a pictures properties with another pictures properties

2. Find number of colors in a Image Picture, Clipboard or File

3. Setting the picture property of an image

4. Saving and retrieving image control picture property in MSSQL7

5. Picture Property Of Image

6. ActiveX - Image Control - Picture Property

7. aving and retrieving image control picture property in MSSQL7

8. Image array Picture Property

9. Saving a Picture Box's IMAGE property

10. Image property stops picture resizing correctly ?

11. How to copy hDC property of picture control to an image control

12. Set Image.Picture Stretch property.

 

 
Powered by phpBB® Forum Software