Making a Form System Modal?
From: Tim Brockway Email: BROCKWAYJT&AOL.COM (860) 242-3947
(VB 5, Win 95)
I should like to display a vb5 Form in System Modal form thus preventing input anywhere but that form. I should also like to detect all attempts to click or type in another area and redirect that input to the modal form. (By example MS Bob does this when asking for, say, a password).
Now the knowledge base has an example of setting System modal but this does not apply to VB5 Win32. (The SetSysModalWindow api is deleted). Quoting the knowledge base :
"The SetSysModalWindow function is obsolete. This function is provided only for compatibility with 16-bit versions of Windows. The new input model does not allow for System Modal windows."
Anybody know how System modal can be achieved using VB5 Win 95?
Additionally is there any way to detect mouse/keyboard clicks outside a regular modally halted window? I messed around with SetCapture etc but can't seem to code a routine that works. Anybody have an example of preventing mouse clicks outside a modal display and redirecting them to the modal form?
All suggestions gratefully received.