>>Hi Ken,
>>
>>Here goes! I have a loop that calls a form (like thus):
>>
>>glDone = .f.
>>DO WHILE !glDone
>> DO FORM MainForm
>> READ EVENTS
>>ENDDO
>>
>>When exiting the form, the program prints some reports and returns to run the form again so that all the initalization, etc. will run. The problem is that on some slower machines if the user presses the
key to run the reports and then continues to press the key....the program tries to run the form again before the old instance is released. So I thought if I could disable the keyboard till it was "all clear" to do the form again, that would be a good thing. Many thanks for asking.
>>
>>
>>>Hi Ronald,
>>>
>>>You can do this easily enough with individual forms, or are you talking about completely disabling it at the OS level? What is it you're trying to do?
>>>
>>>>Does anybody know of a way to disable the keyboard for a set amount of time. Any help is appreciated.
>
>Try a CLEAR TYPEAHEAD as the last line of your Form.Activate. That way the keyboard buffer should be the last thing cleared when the form is ready to use.
If that doen't work, you might try the Form's GotFocus. That IS the last thing that fires before it's ready to use. Load,Init,Show,Activate,GotFocus