i try to dispose controls in split container using this code.
foreach (Control c in splitContainerMain.Panel2.Controls)
{
c.Dispose();
}
but problem is split container has contains two controls and get count is two. but i try to dispose using this code then one control is dispose successfully but second control can not be disposed.