Article ID: 150233
Article Last Modified on 6/24/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 Standard Edition
- Microsoft Visual Basic 4.0 Professional Edition
- Microsoft Visual Basic 4.0 Professional Edition
- Microsoft Visual Basic 4.0 16-bit Enterprise Edition
- Microsoft Visual Basic 4.0 32-Bit Enterprise Edition
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.
Additional query words: kbVBp400bug kbVBp500fix kbVBp kbdsd kbDSupport kbNoKeyWord
Keywords: kbbug kbfix kbvbp500fix KB150233