April 22nd, 2013, 05:38 AM
Limiting the Acceptance of Keyboard Interrupts
Hey Codeguru community, I need some quick advice on a problem and just found out that this site existed, hope I can find some help here.
I'm designing a program that will accept commands via the keyboard, I've already programmed the interrupts so that when they're pressed an action will occur depending on what key was pressed, but I want it to only interrupt the program after a certain button on the main form was clicked, my issue is that if I haven't clicked the button yet and keys are being quickly pressed one after another, the program will become constantly interrupted and will essentially freeze the form from accepting any clicking on any buttons or what-not.
My question is, is there a way to have the program accept interrupts after a certain event has passed, aka. I've clicked the button on the main form. I'm not sure if there's some sort of enable_interrupt variable or something that's intrinsically included in a VB program.
Any help would be appreciated, thank you.
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!