CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Key Down Event

Threaded View

  1. #1
    Join Date
    Jan 2009
    Posts
    146

    Key Down Event

    I am trying to create a simple MessageBox as I hit the Down Arrow Key, below is my code(Windows Forms):


    Code:
    private: System::Void Form1_KeyDown(System::Object^  sender, System::Windows::Forms::KeyEventArgs^  e) 
    			 {
    				 MessageBox::Show("Error: There was an error in showing the previous error message","@_@");
    			 }
    Nothing happens as I press the Down Arrow Key during runtime, Please help! Thanks
    Last edited by Elite Commando; May 19th, 2009 at 08:58 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured