开发者

How to use KeyPress event in textBox with Tab character?

开发者 https://www.devze.com 2022-12-08 23:53 出处:网络
private void textBox1_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == (char)Keys.Tab)开发者_开发技巧
   private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
    {
        if (e.KeyChar == (char)Keys.Tab)开发者_开发技巧
        {
            keybox4.Focus();
        }
    }

It not working but enter character its Working?


You will need to have the MultiLine property set to true, and AcceptsTab also set to true.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号