C# 鍵盤的按鍵判斷
本帖最后由 seamone 于 2013-6-23 15:38 编辑private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
{
//判斷 textbox1 裡面是不是 按Enter(Enter = 13) ,如果是 才動作
if (e.KeyChar == 13)
{
button1.Focus();
}求赞扬!
Thanks, prised! 不错的分享。 。 Thank for your sharing Thank for your sharing
页:
[1]