Problem with KeyDown() method not executing

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • lakepeir@yahoo.com

    #1

    Problem with KeyDown() method not executing

    Hello,

    I have method frmMain_KeyDown () method that should execute anytime a
    key is pressed down. I do not have any textbox or input field to
    accept the key pressed. I just want the form to execute this method if
    the key is pressed when running my program. For some reason, the method
    never executes. Any help is appreciated. Thanks.

  • Cyril Gupta

    #2
    Re: Problem with KeyDown() method not executing

    Hello lakepeir@yahoo. com,

    Have you tried setting the Keypreview property of the form to true?


    Regards,
    Cyril Gupta
    Hello,
    >
    I have method frmMain_KeyDown () method that should execute anytime a
    key is pressed down. I do not have any textbox or input field to
    accept the key pressed. I just want the form to execute this method
    if the key is pressed when running my program. For some reason, the
    method never executes. Any help is appreciated. Thanks.
    >

    Comment

    Working...