How to use KeyPress event in textBox with Tab character?
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
.
精彩评论