Here are the examples of the csharp api class System.Windows.Forms.Control.ControlCollection.FindIndex(System.Predicate) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Example
0
1. Example
View licenseprotected override void Dispose(bool release_all) { if (IsDisposed) return; Disposing = true; if (release_all && Controls.IsReadOnly == false) { for (; Controls.Count > 0;) Controls[0].Dispose(); Controls.Clear(); } if (parent != null) { int self = parent.Controls.FindIndex(control => control == this); if (self > -1) parent.Controls.RemoveAt(self); } if (uwfContext) uwfAppOwner.Contexts.Remove(this); IsDisposed = true; base.Dispose(release_all); }