FIX: TopMost Window Does Not Stay on Top in Design Environment (150233)
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 Standard Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Professional Edition, 32-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 16-bit, for Windows 4.0
- Microsoft Visual Basic Enterprise Edition, 32-bit, for Windows 4.0
This article was previously published under Q150233 SUMMARY
The SetWindowPos API function can be used to set a window so that it stays
on the top of all other windows. However, the window will not stay on top
in the Visual Basic design environment.
RESOLUTION
There is no workaround to keep a window TopMost while in the Design
Environment. However, when the application is compiled to an EXE, invoking
the SetWindowPos function to keep a Visual Basic form TopMost will
correctly work.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 6/24/2004 |
---|
Keywords: | kbBug kbfix kbVBp500fix KB150233 |
---|
|