Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. How to make text go away after a few seconds?

How to make text go away after a few seconds?

Scheduled Pinned Locked Moved Visual Basic
tutorialquestion
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Adam Wike
    wrote on last edited by
    #1

    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?

    S W 2 Replies Last reply
    0
    • A Adam Wike

      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?

      S Offline
      S Offline
      Steven J Jowett
      wrote on last edited by
      #2

      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.

      A 1 Reply Last reply
      0
      • S Steven J Jowett

        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.

        A Offline
        A Offline
        Adam Wike
        wrote on last edited by
        #3

        Alright thank you :) Im new to this so I didnt even know about that.

        D 1 Reply Last reply
        0
        • A Adam Wike

          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?

          W Offline
          W Offline
          William Winner
          wrote on last edited by
          #4

          A ToolTip didn't work for what you wanted?

          1 Reply Last reply
          0
          • A Adam Wike

            Alright thank you :) Im new to this so I didnt even know about that.

            D Offline
            D Offline
            Dalek Dave
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups