private static KryptonForm OwningKryptonForm(Control c) { // Climb chain looking for the Krypton Form instance while ((c != null) && !(c is KryptonForm)) c = c.Parent; return c as KryptonForm; }