Tech Off Post

Single Post Permalink

View Thread: Getting at the Parent of a Component
  • User profile image
    Gimped

    I have a custom componet (inherets from System.ComponentModel.Componet) and I am trying to find the Type of the Container to this component. I wasn't sure what to use, so I tried the Container property and the Site property and neither gave me anything when I called GetType().

    My component has a string property that defines an event in the parent. Once I know what the event is, I want to wire up an EventHandler in my component to the event specified in the property.

    If someone can help me, I would really appreciate it. I have been stuck on this for a while.

    -Gimped