I need to find a way to determine if the Visible property of a control is set by changing the property or if it inherits its value from its parent. Using Reflector, I find that the functions this.GetVisibleCore () and this.GetState () are internal methods, so I cannot call them.
Widgets are created dynamically, so I donβt want to attach the method to the VisibleChanged event immediately after each widget is created, so you can try to control this property. If I should, I think I will, but I'm looking for something a little more elegant.
Edit
What I really want to know is when I hide the form and close it or create the form, but keep it hidden, that the visible values ββare false because the form is hidden and which values ββare false because they were set to false, Again, I don't want to apply a method to every VisibleChanged event of each widget. I just want to somehow read it from a Control object.
source share