Sorry about the mix up with the forums guys.

Thanks for your help gonzalioz, I can get your code to work in a file on its own but when I try to integrate it to my original code, it has no effect, I'm wondering if the code I wrote to connect to the interface board is causing problems for my other code even though it's telling me there are no errors, could that be the case?

Or is the fact that I placed buttons on my form a factor? Is there a setting I missed related to this?

Also I didnt know about the KeyPreview property so thanks for that

Thanks,
Oisin