private void Form1_Keypress(object sender, KeyPressEventsArgs e)
{
if (e.KeyChar == (char)27)
{
Application.Exit();
}
}
dan jangan lupa di form1 properties, bagian KeyPreview = "true". kalo ngga, ngga fungsi juga tuh tombolnya kalau dipencet
catetan pribadi .. biar ngga ilang
di 18.52 | 0 komentar | C#, event handler
Copyright © 2009 Padd Solutions - Magazine WP Themes.
Mahusay WP Theme is designed by Domains for Sale - Bloggerize by Free Blogger Template
In collaboration with EU Personals, Singles Sites, and Reverse Phone Search.
0 komentar:
Posting Komentar