我如何删除呈现“Enter”的键?我希望程序在用户输入时显示“请输入 Espace 或 Tab”,然后删除此 Enter 键。谢谢!
private: System::Void richTextBoxCommentaire_KeyDown(System::Object^ sender, System::Windows::Forms::KeyEventArgs^ e) {
if (e->KeyValue == (char)13)
{
MessageBox::Show ("Please enter Espace or Tab");
//To delete this Key??
}
}