• C# Question hide and show labels

    Arnold Member

    Trying to learn C#. So i have 2 labels, label1 and label2 i put label1 on top of label2. label1 has an english word text over it and the label2 has its definitions. i manage to make the 2 labels clickable. how can i make the label2 show and hide the label1 vice versa, when i run it?

    Thanks i’m using vs2012

  • Amit Member

    http://lmgtfy.com/?q=C%23+hide+label

  • Ganesh Member

    in order to become a programmer, you have to learn to use google for finding the answers you need.
    That’s the first thing you need to learn.

    If you have a label called label1 then:

    to hide it: label1.Visible = False;
    to show it: label1.Visible = True;
    
Viewing 2 reply threads
  • You must be logged in to reply to this topic.
en_USEnglish