Home > Software engineering >  How to deposit object tag attributes in vb6 and read this object
How to deposit object tag attributes in vb6 and read this object

Time:09-30

Masters:
Such as title, I mean a picturebox object, the object is to own the tag attributes, such as picture1. Tag=picture1, so does the picture1 this object to picture1. The tag, so how can I from the tag width attributes of the object, such as
Dim a as interge
A=picture1. Tag. Width.
This operation can't through why

CodePudding user response:

You didn't see the Tag is of type String?
 'even if the Tag can receive objects, also should use' 
The Set picture1. Tag=picture1

'no Set is the default value of the PictureBox (handle) of the background image is transformed into type String assigned to the Tag'
Picture1. Tag=picture1

CodePudding user response:

The object serialization and deserialization if you can, it can be,
  • Related