void InitializeComponent(void) {
this->KeyDown += gcnew System::Windows::Forms::KeyEventHandler(this, &Form1::Form1_KeyDown);
}
private: void Form1_KeyDown(System::Object^ sender, System::Windows::Forms::KeyEventArgs^ e)
{
if (e->Control && e->KeyCode == System::Windows::Forms::Keys::D)
MessageBox::Show(this,"KeyPreview is True, and this came from the FORM");
}
}
'Programming > C/C++/C#' 카테고리의 다른 글
[LINUX] TCP/IP Simple Chat (0) | 2012.08.25 |
---|---|
[Visual Studio] Editing시 멈춤 현상 - devenv cpu usage 100% (0) | 2011.07.25 |
[PMIC Software] TI社 USB-GPIO Adaptor Function (1) - i2cWrite (0) | 2011.05.22 |
[Visual Studio] unsigned char 에 Data를 넣을때 Byte Type로 바꿔서 넣자 (0) | 2011.05.22 |
[Visual Studio] TextBox String Read & Write (0) | 2011.05.22 |