Cheetaiean
Member
- Joined
- Jan 20, 2014
- Messages
- 13
- Programming Experience
- Beginner
I have code where I have assigned a specific Tag to certain pictureboxes.
What I want is for all picture boxes whose tag is equal to "Tree" to do something.
I have tried:
Note that this works if it were
, but PictureBox does not count as an object or something. If someone could find a way to make this work it would be great.
For those who don't understand what i'm trying to do: something along the lines of :
If the tag of a picturebox is equal to "Tree" Then do this.
What I want is for all picture boxes whose tag is equal to "Tree" to do something.
I have tried:
VB.NET:
If PictureBox.Tag = "Tree" Then imgSki.Top = 10
End If
Note that this works if it were
VB.NET:
imgSki.Tag
For those who don't understand what i'm trying to do: something along the lines of :
If the tag of a picturebox is equal to "Tree" Then do this.