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