Solved

Timed events??????

Posted on 1998-06-03
1
150 Views
Last Modified: 2010-05-03
I would like to put a time limit on how long a label box is displayed for.  But I don't know how, can anyone help??????????????
0
Comment
Question by:atlantis
1 Comment
 
LVL 5

Accepted Solution

by:
bin_huwairib earned 50 total points
ID: 1462505
atlantis,

You can add a Timer control and set the Interval property to a specific time, then when Timer's event executed disable the label box or clear it and then disable the Timer.

Example
=======
Private Sub Form_Load()
 Label1.Caption = "testing..."
 Timer1.Interval = 1400
 Timer1.Enabled = True
End Sub

Private Sub Timer1_Timer()
 Label1.Caption = ""
 Timer1.Enabled = False
End Sub


Best regards
Bin Huwairib
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

914 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now