hexagon logo

Wish Escape key 'worked'?

JUST REALIZED THIS IS IN THE WRONG FORUM. IT SHOULD BE IN CODE SAMPLES.


A little project I've been working on to handle my biggest pet peeve about PcDmis. The Escape key doesn't close every window like I wish it did, like in most other software I use. I am huge on only using the keyboard when I'm programming (as much as possible of course), I am too lazy to reach over to the mouse hehe I'm probably going to hear it but let's face it...it slows you down. PCDMIS looses focus to dialogue windows like if the developers did it on purpose. I'll stop knocking on my fav CMM software now before there are threats of switching over to something 'better' from my management.

Anyway, paste this code in a VB.NET project and please take it further and touch back with your improvements. I will keep furthering this little project until I have everything taken care of. Right now it 'should' handle all windows when the ESCAPE key is pressed it closes the dialogue. When RETURN or ENTER key is pressed it accepts or 'OK' the dialogue (Auto Feature only at the moment give me some time, I'll to the rest).



AGAIN please share your code don't be [....].

Thanks,
KP61dude!

EDIT:

Reached maximum text limit, see next post for source code.
Parents Reply Children
No Data