How To Show a Modal Form from an OLE Server DLL
Article ID: 172059
Article Last Modified on 7/13/2004
APPLIES TO
- Microsoft Visual Basic 5.0 Learning Edition
- Microsoft Visual Basic 6.0 Learning Edition
- Microsoft Visual Basic 5.0 Professional Edition
- Microsoft Visual Basic 6.0 Professional Edition
- Microsoft Visual Basic 5.0 Enterprise Edition
- Microsoft Visual Basic 6.0 Enterprise Edition
- Microsoft Visual Basic 4.0 32-Bit Enterprise Edition
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.
Additional query words: KBACTIVEX KBDLL kbVBp kbdsd kbDSupport kbVBp400 kbVBp500 kbVBp600
Keywords: kbhowto KB172059