Solved

Timed events??????

Posted on 1998-06-03
1
149 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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

706 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

16 Experts available now in Live!

Get 1:1 Help Now