Recursively notify child controls via C#

前端 未结 4 1993
执笔经年
执笔经年 2020-12-18 08:56

I have a form MainForm which is a Windows Forms form that contains many child controls. I want to call one function on MainForm that notifies all o

4条回答
  •  一整个雨季
    2020-12-18 09:44

    No, there isn't. You must roll out your own.

    On a side note - WPF has "routed events" which is exactly this and more.

提交回复
热议问题