Esempio n. 1
0
 protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
 {
     if (!ShareUtils.IsValidKeyForReadOnlyFields(keyData))
     {
         return(true);
     }
     return(base.ProcessCmdKey(ref msg, keyData));
 }
Esempio n. 2
0
 protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
 {
     if (keyData == Keys.Enter)
     {
         SendMessage();
     }
     if (listViewMessage.Focused && !ShareUtils.IsValidKeyForReadOnlyFields(keyData))
     {
         return(true);
     }
     return(base.ProcessCmdKey(ref msg, keyData));
 }