確認コード:
private void Button1_Click(object sender, System.EventArgs e)
{
//Change KeyPreview property
this.KeyPreview = !this.KeyPreview;
textbox2.Text = this.KeyPreview.ToString();
}
private void Form1_KeyDown(object sender,
System.Windows.Forms.KeyEventArgs e)
{
//Which key?
textBox1.Tex = e.KeyCode.ToString();
}
No comments:
Post a Comment