Please clarify your situation.
In a normal event-driven application, you don't need to "prevent" the user
from doing anything, you simply don't program a response to a given event
and the event is ignored by your application.
I suspect this is not what you have in mind, so please educate us further.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.