public override bool Equals(object obj) { var bar = obj as Bar; return bar != null && this.form.Handle == bar.form.Handle; }