Visual Basic, hiding label when mouse clicked

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Fane
    New Member
    • Jul 2008
    • 3

    Visual Basic, hiding label when mouse clicked

    I have a label in program showing that the textbox's text is copied to clipboard. At the start it is not visible, but after the button is clicked, it becomes visible. After this I would want it to become not visible when you click anywhere on the program (form, textbox...). How can I do this?
  • anuragshrivastava64
    New Member
    • Jan 2007
    • 66

    #2
    In Form Load event give Label.Visible = False
    And Button_Click event give Label.Visible =True

    Comment

    • Fane
      New Member
      • Jul 2008
      • 3

      #3
      Doesn't that just make unvisible at the load of start? The label needs to get unvisible many times and I thought that everytime mouse is clicked on the form or textbox would be make it disappear.

      Comment

      • debasisdas
        Recognized Expert Expert
        • Dec 2006
        • 8119

        #4
        Kindly Post What You Have Tried So Far.

        Comment

        • Fane
          New Member
          • Jul 2008
          • 3

          #5
          Well I'm just learning VB so not much. Form.OnClick and MouseButtons.Le ft are the ones so far, but I got error each time. Tried to google around for solution, but couldn't find =/

          Comment

          Working...