M
michael sorens
In my code for a custom user control, is there a way to determine whether or
not I am inside the standard user control TestContainer? I was hoping that I
could perhaps examine a unique characteristic of the parent, if it is
accessible. Ultimately what I would like to do is exercise more of my custom
control than just seeing how it renders, something along the lines of: if
inside the TestContainer, then show a hidden "Step" button. I could then
press the Step button to make the control do some action; press it again for
the next action, etc.
I am running VS2008, with .NET 2 or 3 or 3.5.
not I am inside the standard user control TestContainer? I was hoping that I
could perhaps examine a unique characteristic of the parent, if it is
accessible. Ultimately what I would like to do is exercise more of my custom
control than just seeing how it renders, something along the lines of: if
inside the TestContainer, then show a hidden "Step" button. I could then
press the Step button to make the control do some action; press it again for
the next action, etc.
I am running VS2008, with .NET 2 or 3 or 3.5.