日期:2014-05-17 浏览次数:20847 次
private void label3_Click(object sender, EventArgs e)
{
Form_pos form3=new Form_pos();
ShowInTaskbar = false;
Hide();
form3.ShowDialog();
Close();
}
private void Form_select_KeyPress(object sender, KeyPressEventArgs e)
{
char key = e.KeyChar;
switch (key) {
case (char)Keys.D1: label3.Click(); break; //这里能否直接主动去触发事件?
}
}
private void Form_select_KeyPress(object sender, KeyPressEventArgs e)
{
char key = e.KeyChar;
switch (key) {
case (char)Keys.D1: label3_Click(null,null); break;
}
}