JL.
JL.

Reputation: 81262

How to set a controls visibility to false at design time visual studio 2010?

I have a few group boxes that stack over each each. In previous editions of visual studio I used to move the controls off screen, then set their positions when the form loaded.

This seems like an archaic method, is there a way to set a controls visibility to false at design time? So that it is not visible in the form designer?

Upvotes: 0

Views: 1040

Answers (2)

Nathan Sokalski
Nathan Sokalski

Reputation: 77

I know I am a few years late, but have you tried d:IsHidden="True"?

This uses xmlns:d="http://schemas.microsoft.com/expression/blend/2008" (which is usually included automatically), and it makes the control invisible in the designer, but otherwise does not affect anything.

Upvotes: 0

Gregory A Beamer
Gregory A Beamer

Reputation: 17010

I am not sure what you are having difficulty with, but there is a Visible property for every control I am aware of. To set at design time, you merely choose the control in question and then go through the properties until you find Visible and set it to false.

Am I missing something here?

Upvotes: 1

Related Questions