private void combo_SelectionChangeCommitted(object sender, System.EventArgs e) { if (this.textLog == null) { return; } ComboBoxBaseDataBound c = sender as ComboBoxBaseDataBound; this.textLog.Text += c.Name + "'s SelectionChangeCommitted. New index is:" + c.SelectedIndex + "\r\n"; }
private void combo_Validating(object sender, System.ComponentModel.CancelEventArgs e) { if (this.textLog == null) { return; } ComboBoxBaseDataBound c = sender as ComboBoxBaseDataBound; if (c.SelectedItem != null) { this.textLog.Text += c.Name + "is validating the new entry:" + c.SelectedItem.ToString() + "\r\n"; } else { this.textLog.Text += c.Name + "is validating the new entry:" + c.Text + "\r\n"; } }
private void combo_Validated(object sender, System.EventArgs e) { if (this.textLog == null) { return; } ComboBoxBaseDataBound c = sender as ComboBoxBaseDataBound; if (c.SelectedItem != null) { this.textLog.Text += c.Name + "has validated the new entry. New entry is:" + c.SelectedItem.ToString() + "\r\n"; } else { this.textLog.Text += c.Name + "has validated the new entry. New entry is:" + c.Text + "\r\n"; } }