Quantcast
Viewing all articles
Browse latest Browse all 12583

How to hide child control

Hello. i want to implement a custom panel, which has a property i called ShowChild. if set ShowChild false, panel's child controls are hidden, otherwise, child controls shows up.

For now, i accomplish this by setting all child controls' Visible property to false, but this seems not to be a perfect solution, because others may set some child control's Visible property to true after i set false.

Can anyone help me with my problem?

Thanks for any suggestion.


Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>