블로그 이미지
stluck

Notice

Recent Post

Recent Comment

Recent Trackback

Archive

calendar

1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
  • total
  • today
  • yesterday
2011. 6. 1. 10:59 Programming/C/C++/C#

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");
    }
}
posted by stluck