devxlogo

Make Sure Msgbox is on Top

Make Sure Msgbox is on Top

When you implement the Always on Top feature with VB forms using SetWindowPos and HWND_TOPMOST, message boxes are shown below the topmost form. To overcome this, you can use the vbSystemModal constant in the MsgBox function’s Style attribute. This forces the message box to show on top of the Always on Top form. This is necessary only with the 32-bit versions of VB.

devx-admin

Share the Post: