none
Form RRS feed

All replies

  • What do you mean ? You can hide a visual component by setting 

    componentname.Visible = false;


    "If there's nothing wrong with me, maybe there's something wrong with the universe!"

    Thursday, September 25, 2014 6:28 AM
  • If all the components belong to a panel you can hide the panel instead. If you want to hide multiple components you can either loop through the form components and look for that name like:

          foreach (Control control in (this.Controls.Find("button1", true))) {
                    control.Visible = false;
                }


    "If there's nothing wrong with me, maybe there's something wrong with the universe!"

    Thursday, September 25, 2014 6:38 AM
  • You can write a Method with (bool visibility) as a parameter.

    under which you can set all controls visible property with "visibility" passed in method call.

    Use method every time you want to change visibility of several controls.


    Jiten Patoliya Windows C# developer

    Thursday, September 25, 2014 7:18 AM