0

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?

Community
  • 1
  • 1
Brij
  • 11,731
  • 22
  • 78
  • 116
  • Found answer at http://stackoverflow.com/questions/293007/is-it-possible-to-steal-an-event-handler-from-one-control-and-give-it-to-anoth see post from Hans Passant – Brij Nov 17 '12 at 14:49

1 Answers1

0

Generally, this is not possible from an outside caller.

In a Control-derived class, you can call:

base.OnParentChanged(EventArgs.Empty);
John Arlen
  • 6,539
  • 2
  • 33
  • 42