private void textbox1_keydown(object sender, KeyEventArgs e)
{
          //if(e.KeyCode == Keys.Enter)   <--或這樣
            if (e.KeyCode.ToString() == "Return")
            {
                summit.Focus();
                summit_Click(sender, e);
            }
}

創作者介紹
創作者 Ks Notes 的頭像
Ching

Ks Notes

Ching 發表在 痞客邦 留言(0) 人氣( 1843 )