BUG: SetWindowPos API Does Not Set Topmost Window in VB (192254)
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 Q192254 SYMPTOMS
When using the SetWindowPos() API in Visual Basic to set the Topmost window
flag, these known problems may occur:
- When an application is running in the Visual Basic IDE, clicking on the
Desktop or My Computer icon causes the Topmost window setting to be
turned off. This does not occur when the application is a compiled EXE.
Please see the REFERENCES section below for more information.
- Setting the Topmost flag for a parent form does not set it for that
form's children. This conflicts with the documented behavior of the
SetWindowPos function.
- When calling SetWindowPos with the NoTopmost flag for a Visual Basic
form, all forms in the project are set to NoTopmost.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article.
REFERENCES
For more information, please see the following articles in the Microsoft
Knowledge Base:
150233
: BUG: Topmost Window Does Not Stay on Top in Design Environment
184297
: HOWTO: Create a Form That Always Stays on Top
Modification Type: | Major | Last Reviewed: | 5/13/2003 |
---|
Keywords: | kbbug KB192254 |
---|
|