Hi all,

I am fairly new to programming, and I have two related Problems,

1, i need to capture keypresses globally eg. no matter what is selected if i press 'z' the program will end.

the only way that i could do this so far is to have a handle for each item in my form, however i am getting to the point where i am dealing with too many items

2, once i capture these keypresses i need stop certain keys from going through the system events eg. instead of pressing the selected button it should start another private sub

cheers
__________________
Olly333

"You Don't have to be smart, you just have to know how to Google"

set KeyPreview property.