private void OnUpdateTextBox() { if (this.UpdateTextBox != null) { UpdateTextBoxEventArgs e = new UpdateTextBoxEventArgs(this.txtmle.Text); this.UpdateTextBox.Invoke(this, e); } }
void form2_UpdateTextBox(object sender, EventArgs e) { UpdateTextBoxEventArgs tbea = e as UpdateTextBoxEventArgs; this.txtmle.Text = tbea.Text; }