public int Compare (object x, object y) { if (!(x is Control) || !(y is Control)) throw new ArgumentException (); return (x as Control).TabIndex - (y as Control).TabIndex; } #endregion