How to make text go away after a few seconds?
-
When I click a button in my program some text pops up in a label. Is there a way to automatically clear/erase the text 5 seconds after clicking the button?
Use a
Timer
control. Start the timer in the click event of the Button and in the Tick event of the Timer, clear the content of the TextBox and stop the timer.Steve Jowett ------------------------- Real programmers don't comment their code. If it was hard to write, it should be hard to read.
-
Use a
Timer
control. Start the timer in the click event of the Button and in the Tick event of the Timer, clear the content of the TextBox and stop the timer.Steve Jowett ------------------------- Real programmers don't comment their code. If it was hard to write, it should be hard to read.
-
When I click a button in my program some text pops up in a label. Is there a way to automatically clear/erase the text 5 seconds after clicking the button?
A ToolTip didn't work for what you wanted?
-
That is why we are here, I still ask. Always nice to Vote Up a helpful response though :)
------------------------------------ I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave