I am using VB.Net. Basically I want a label to appear for only 3 seconds in my code as it executes..
This is what I have...
Dim timeOut As DateTime = Now.AddMilliseconds(3000) '3 seconds
lbMsg3.Visible = True
lbMsg3.Text = "INVALID TAG NUMBER"
lbMsg3.ForeColor = Color.FromArgb(205, 38, 38)
Loop Until Now < timeOut
'after 3 seconds I want the message to disappear
lbMsg3.Visible = False
This is the code I have for a label but I want it to disappear after 3 seconds of it displaying....but I don't see it first or last....I suspect it is skipping my DO Loop...
How I pause the application so that I see the lable for 3 seconds and have it disappear once 3 seconds have elapsed.
Any hep or insight would be much appreciated.