if(e.KeyChar == 'a')
{
MessageBox.Show ("a");
}تفيذ امر عند الضغط على زر معين في حدث KeyPress
مغلق
private void richTextBox1_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
{
if(e.KeyChar == ' ')
{
MessageBox.Show("Space !");
}
}اذا اردت تنفيذ شى ما عند ضغط enter استخدم "/r"
" " " " " " " " " " backspace " " "/b"
هذا الموضوع مغلق.