not to do.
No application, plug-in, or other very nice piece of code can ever be so special as to invade - even for a short time - what the user has: his user interface.
The old new thing ( Raymond Chen ) has some very good posts in this, from LockWindowUpdate , to locking gadgets in place and other custom features .
Living in a multi-threaded world means that you should expect your user to do several things at once.
Blocking anything for purposes like โto make it look beautifulโ - even for a very short period of time - is a complete no-no.
Your request is just the first step towards the dreaded system-modal dialog box "Are you sure you want to do this badly on your computer?" with Yes and No buttons, where Yes is the default button in which the user enters a long history by pressing the space bar.
- Jeroen
source share