public void LastMessageSet() { frmBaseForm parent = this.ParentForm as frmBaseForm; if (parent == null) { return; } LastMessageError = parent.LastMessageError; LastMessage = parent.LastMessage; }
void subBaseForm_ParentChanged(object sender, EventArgs e) { try { frmBaseForm frm = ((MdiClient)Parent).TopLevelControl as frmBaseForm; if (frm == null) { return; } frm.frmBaseForm_ControlAdded(this, null); } catch { } }