How to appear image and disappear after 5 seconds?
I have a picturebox1, Timer1 and 1 button inside a form. The picturebox1 is set visible=false in form load. What I want to happen is: When I clicked the button,the picturebox should appear and after 5 seconds it should disappear. Please help me. Your answers is highly appreciated. Thank you.
Ranjit PowarPosted Apr 20, 2014, 2:25 PM
private void Form1_Load(object sender, EventArgs e)
{
pictureBox1.Visible = false;
}
private void button1_Click(object sender, EventArgs e)
{
pictureBox1.Visible = true;
timer1.Start();
}
private void timer1_Tick(object sender, EventArgs e)
{
pictureBox1.Visible = false ;
timer1.Stop();
}
Munesh SharmaPosted Apr 20, 2014, 12:54 PM
http://bytes.com/topic/visual-basic-net/answers/707269-updating-picturebox-image-every-x-seconds-how
http://social.msdn.microsoft.com/Forums/en-US/2bc09bbf-afd4-40c8-9829-002969e43f60/image-disappears-from-picturebox