Get Component's Parent Form

后端 未结 10 1020
再見小時候
再見小時候 2020-12-03 01:40

I have a non-visual component which manages other visual controls.

I need to have a reference to the form that the component is operating on, but i don\'t know how

10条回答
  •  旧巷少年郎
    2020-12-03 01:56

    I think you want to use the Site property of the IComponent. It's more or less an equivalent to the Parent property.

提交回复
热议问题