PRB: Message Box Appears Behind Form Set as Top-Most Window (178401)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q178401 SYMPTOMS
A Visual Basic form can be displayed as the top z-ordered (or top-most)
window by using the SetWindowPos API function. Under Windows 95 or Windows
98, if the top-most window then displays a message box, the message box may
display behind the top-most window. The user cannot continue or exit the
program because the user cannot close the message box.
RESOLUTION
Do not display a message box from a form set as the top-most window. If you
must use a message box from the form, unload the form first before
displaying the message box.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 5/12/2003 |
---|
Keywords: | kbAPI kbprb KB178401 |
---|
|