KeyDown event дээр keycode ийг тодорхойлох
private void dataGridView1_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Delete)
{
//Keys. тавиад ямар товчлуур дарахаар яах уу гэдгээ тодорхойлох л үлдлээ.
}
}
private void dataGridView1_KeyUp(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.Delete)
{ //Keys. тавиад ямар товчлуур дарахаар яах уу гэдгээ тодорхойлох л үлдлээ.
}
}
9:34 PM
|
Labels:
.NET C# programming
|
This entry was posted on 9:34 PM
and is filed under
.NET C# programming
.
You can follow any responses to this entry through
the RSS 2.0 feed.
You can leave a response,
or trackback from your own site.
0 comments:
Post a Comment