按 tab 键从 textbox1 移到 textbox2
(附: 和 TabIndex 有关, 二者的数字相关, 如果textbox1 的 TabIndex 为1, 那 textbox2 就应为2 )
private void textBox2_KeyUp(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Tab)
{
listBox1.Visible = false;
}
}
按 tab 键从 textbox1 移到 textbox2
(附: 和 TabIndex 有关, 二者的数字相关, 如果textbox1 的 TabIndex 为1, 那 textbox2 就应为2 )
private void textBox2_KeyUp(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Tab)
{
listBox1.Visible = false;
}
}