CompuServe Thread

#Disable User Input?

5 messages in this thread
#1858From: Selden McCabeOct 7, 1991 3:46 PM
I'm trying to completely DISABLE user input while loading a new form. This is to prevent unwanted events when the user clicks more than once on a control. I've tried EnableWindow, but it seems to wait until the form is enabled, and then apply the click that happened 30 seconds ago! Does anyone know how to prevent this scenario? Selden There is 1 Reply.
#1875From: Mark Novisoff/MicroHelpOct 7, 1991 5:20 PM
Selden, Try disabling the form: Form1.Enabled = False Mark There is 1 Reply.
#1946From: Selden McCabeOct 8, 1991 1:07 AM
I tried Form1.Enabled = False, but the same thing happened. apparently, mouse clicks are queued up, and the queue is read AFTER the form is re-enabled! Bah! There is 1 Reply.
#2030From: Jonathan Zuck (UFI)Oct 8, 1991 12:49 PM
Selden, You could set up your own GetMessage loop just before your reenable the form to clear the queue. -=- Jonathan There is 1 Reply.
#2073From: Selden McCabeOct 8, 1991 3:02 PM
Hey, that just might work! I'll give it a try!