Jaruzel.com

Disable Beep in a Textbox


'This will process all messages that are queued up. Doevents()
'will keep your application from appearing frozen to the user
'while your loops or whatever code is processing. If you are
'going to use long loops or code where you will be needing to
'use DoEvents() for a extended period of time, I highly
'recommend you use the GetInputState() Api Call instead of
'allowing the application to continuously call DoEvents(). Your
'application will gain LOTS of speed by using GetInputState()
'and it will NOT freeze on the user, thus still allowing them
'to interact with your application.

Application.DoEvents()