D
David Veeneman
I need to get a parent's private variable from within a control. Here's what
I'm doing: I have a control that I want to be able to detect the presence of
a particular (System.ComponentModel) component on the same form. Components
aren't contained in the Form.Controls collection--they are contained in a
private Designer variable called 'components'. So, to detect the component,
I'm going to need to get to that private variable from the control's parent
form.
Does anyone have any sample code to get a private variable from a parent?
I'm new to Reflection, and I'm struggling a bit to sort it out. Thanks.
I'm doing: I have a control that I want to be able to detect the presence of
a particular (System.ComponentModel) component on the same form. Components
aren't contained in the Form.Controls collection--they are contained in a
private Designer variable called 'components'. So, to detect the component,
I'm going to need to get to that private variable from the control's parent
form.
Does anyone have any sample code to get a private variable from a parent?
I'm new to Reflection, and I'm struggling a bit to sort it out. Thanks.