Okay, here a situation:
1) I have a Panel called “panel1” that consist one UserControl.
2) If I coded with this line “panel1.dispose();”. Will UserControl inside this panel1 dispose as well?
Okay, here a situation: 1) I have a Panel called panel1 that consist one
Share
Yes.
Disposing a WinForms control will also dispose all of its child controls.
You can see this in the source: