hehe ok good, I'm glad I could help
and I'm sorry Swan.. will do that next time :laugh:
ehh, no I don't think so... I guess you want to close the form when you have pressed Tab two times... I'm pretty sure there is better ways to do it but this could be one way
Code:
bool keyPressedOnce = false;
private void Form1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Tab && keyPressedOnce == true)
{
this.Dispose();
}
}
private void Form1_KeyUp(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Tab)
{
keyPressedOnce = true;
}
}