Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 158
  • Last Modified:

Timed events??????

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
atlantis
Asked:
atlantis
1 Solution
 
bin_huwairibCommented:
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now