How To Show a Modal Form from an OLE Server DLL (172059)
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
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q172059 SUMMARY
Showing a modal form from an out-of-process OLE Server is generally not
recommended. One reason is that the modal form may be displayed behind the
client program, making it difficult for the user to see that it needs to be
addressed. Another problem is that while the method of the OLE Server is
still processing, the client program may not handle Paint messages, which
can cause the client screen to become cluttered by the images of other
windows that have overlaid it.
Finally, if an OLE Server is just performing a service and is not
responsible for any of the user interface, it is more appropriate to raise
an error and return that error to the client program than for the OLE
Server itself to show a message box.
Modification Type: | Minor | Last Reviewed: | 7/13/2004 |
---|
Keywords: | kbhowto KB172059 |
---|
|