Hi. I want to detect key presses in my textBox1,then change and write them to textBox2.(ex.:when user pressed "a" in textBox1, textBox2 must change and write it to "y")
I don't know could I explained my problem,sorry for my English.
How can I detect key presses?
5 Answers
Know the answer? Post it. Somebody with the same question will find it here.


PJ MartinsRank #2,548 · 548 reputationPosted Jun 28, 2010, 4:26 PM EDT
private void textBox1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.A)
textBox2.Text += "y";
}
PJ MartinsRank #2,548 · 548 reputationPosted Jun 26, 2010, 8:53 PM EDT
Abdullah AKALIN30 reputationPosted Jun 28, 2010, 9:12 AM EDT
Ankur GuptaRank #1,017 · 1.9K reputationPosted Jun 28, 2010, 9:37 PM EDT
Abdullah AKALIN30 reputationPosted Jun 29, 2010, 1:04 AM EDT