📅  最后修改于: 2022-03-11 14:48:41.098000             🧑  作者: Mango
代码示例1
private void textBox1_KeyDown(object sender, KeyEventArgs e)
{
if (e.Key == Key.Enter)
{
MessageBox.Show("Enter pressed");
}
}