Hi,
When you create a user control and add other controls like buttons to the user control and set their Visible property to false, those invisible controls will still appear at design time on the parent form.
See attached for example.
UserControl1 contains 3 buttons. Button1 and Button2 are set to Visible=True and Button3 is set to Visible=False.
In Window1, an instance of UserControl1 has been added to the design surface. All buttons appear.
This is not critical because when the app is run, Button3 is not visible at runtime, this is just more a visual feedback for the developer.
With the eye uncheck, i not face the issue
Thank You
It’s by design, that’s also the standard behavior of VS designers, otherwise you can’t select the hidden control by clicking on it. Wisej added a button to the Wisej designer bar at the bottom (looks like an eye and is selected by default). It lets you hide/show invisible controls.
When displaying a user control on a parent container, the hidden controls are hidden. See the image I get with your test case.
I face the same issue, why happen this? Do you have a solution?
Please login first to submit.