private void Mission_KeyDown(object sender, KeyEventArgs e,short i)
{
if (e.KeyCode == Keys.Enter)
{
//对i操作
}
}
这样写无法引用,求问有什么办法可以实现?
private void Mission_KeyDown(object sender, KeyEventArgs e,short i)
{
if (e.KeyCode == Keys.Enter)
{
//对i操作
}
}
这样写无法引用,求问有什么办法可以实现?
把i这个参数放进TextBox控件的Tag对像中传入
private void Mission_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Enter)
{
TextBox tt = TextBox as sender; //对i操作
short i = (short) tt.tag;
}
}