private void OnKeyDownHandler(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { Ribbon1.OnButtonSendClick(sender, e); } }
private void FormLiveInline_FormClosing(object sender, CancelEventArgs e) { Ribbon1.textBox2.Text = "done"; if (formClosing == false) { formClosing = true; e.Cancel = true; Ribbon1.OnButtonSendClick(sender, e); } }