[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

I want to display a picture in a picturebox for only ten seconds

Posted on 2004-11-03
2
Medium Priority
?
220 Views
Last Modified: 2010-04-23
New in VB.net. When I click a button a picture is displayed in the picturebox, I want this picture to be display for only ten seconds and disappear.
Thanks for helping
0
Comment
Question by:cappelaere
2 Comments
 
LVL 19

Accepted Solution

by:
arif_eqbal earned 2000 total points
ID: 12490036
Use a Timer Control

Set the Interval of the Timer to 10 Sec (10000)

then to load and show a picture

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
       PictureBox1.Image=Image.FromFile("C:\YourImage.jpg")
       Timer1.Enabled = True
    End Sub


  Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        PictureBox1.Visible = False
        Timer1.Enabled=False
    End Sub

0
 

Author Comment

by:cappelaere
ID: 12490068
Thanks very very much, fantastic!!!!!
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since .Net 2.0, Visual Basic has made it easy to create a splash screen and set it via the "Splash Screen" drop down in the Project Properties.  A splash screen set in this manner is automatically created, displayed and closed by the framework itsel…
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question