I am designing my first OCX which is working for my original purposes but I want to add some new features.

At the keypress event I am executing some code but I will like that this code takes in consideration two boolean variables added to keyascii but when I try to type in the keyascii event declaration VB gives a sintaxis error.

How can I create a code for keypress event using more variables than keyascii?