Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Reflections VBA - Prevent keyboard input

Status
Not open for further replies.

BobEulberg

Programmer
Feb 22, 2005
15
0
0
US
I'm trying to find a way to prevent user input via the keyboard in Reflections VBA.

I use WaitForEvent rcEnterPos... quite a bit in my code, to the point where I don't think they'd have an occasion where they would want to type anything. But I've written programs in the past where users type and royally offset what the code is doing and would like to prevent it completely if possible.

Thanks, Bob
 
Thanks DrBowes, but I tried Application.Interactive = False and it wasn't recognized. I searched for 'interact' in VBA help and couldn't find anything helpful.

I'm in Reflection v9.0.3 and Windows XP, so I'm using the Reflection 9.0 and Visual Basic 6.3 if that helps at all.

Thanks again, Bob
 
Hi.
What about using KeyCode = 0 in KeyDown event ?
Regards.
Nick.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top