Skip to main content
gamedev.net
🔒 Locked

Visual Basic: Image Visible based on name

Started by Goguis Aug 7, 2007 at 1:47 PM 0 replies 650+ views
Original Post
Goguis
Goguis
Hey Guys. I have the following problem: i'm managing several images and just one of them needs to be visible. How can i do to make one of them visible based on an integer variables called (for example) ImageNumber then i just need to say something like this: ImageFile"ImageNumber".Visible = false Thanks
TheTroll
TheTroll
I would suggest using an indexer.

ImageFile[ImageNumber].Visible = false

theTroll

I don't really use VB at all now days.

[Edited by - TheTroll on August 7, 2007 2:05:32 PM]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.