Home > Enterprise >  Hiding Items in designer
Hiding Items in designer

Time:06-17

Is there a way to hide items in the designer view? for example, I have 2 radio buttons, that when selected show different textboxes etc... but I cannot add the other items into my form without them interfering with the current items already in place.

I have a comboBox placed down, but want to place labels in that same place when a specific radio button is selected, I have the coding down, so when my app launches it knows to automatically hide said ComboBox unless radio button is selected - I want to hide it in the designer form.

enter image description here

The image shows the combobox that I want to hide.

I'm using Winforms / C# Thanks in advance.

CodePudding user response:

As far as I know, this is not really possible. But there are some "tricks". You will probably find something suitable here: https://stackoverflow.com/a/9998893/19353358

CodePudding user response:

Try using the .Visible = false; attribute after whatever code you have implemented. Example:

label1.Visible = false;
  • Related