Image visibility in Visual Studio 2008?

You don't indicate which language your are using within VS but since they are all .NET based they will be similar. You can add a timer to the form, set it's interval based on how long you want the image to appear or not (interval is in milliseconds so 5*1000 would be 5 seconds). You use the enable property to activate it.

Double clicking the timer will create a handler which will allow you to control the picture. Assuming you are using a picture box control you could do the following in the handler

if (pictureBox.Visible)
picturebox.Visible = false;
else
picturebox.Visible = true;

That would show or hide it based on current settings.

Does that help?
 
In game lingo, when you animate, it's commonly called a sprite. You can download libraries to do the heavy lifting for you, for most major languages, if you're working at doing a game.

Otherwise, it's pretty simple; as the other poster noted, use a timer.
 
Back
Top