Possible Duplicate:
Find row index of control added to TableLayoutPanel
Can we raise ParentChanged
event programmatically in Windows Forms for a control?
Or for that matter raise any event of a control programmatically?
Possible Duplicate:
Find row index of control added to TableLayoutPanel
Can we raise ParentChanged
event programmatically in Windows Forms for a control?
Or for that matter raise any event of a control programmatically?
Generally, this is not possible from an outside caller.
In a Control-derived class, you can call:
base.OnParentChanged(EventArgs.Empty);