Keep The Current Window On Top
Version Compatibility: Visual Basic 6
If you have an application that you want to keep on top of other active windows, you can do it with the SetWindowPos API call. To keep your form on top of any active window, call the SetWindowOnTop method. “Call SetWindowOnTop(Me, True)”. To deactivate the always on top feature, change the bAlwaysOnTop flag to false. “Call SetWindowOnTop(Me, False)”.
Instructions: Copy the declarations and code below and paste directly into your VB project.