Hi,
I'm having a problem with a program containing a "What's this" help button and a checkbox with the option to keep the program on top.

Code:
   App.HelpFile = AppDir & "Eurohelp.chm::popups.txt"
Code:
Private Sub Check1_Click()
    If Check1.Value = 1 Then
        'stay on top
        SetWindowPos frmMain.hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOACTIVATE Or SWP_SHOWWINDOW Or SWP_NOMOVE Or SWP_NOSIZE
    Else
        'Don't stay on top
        SetWindowPos frmMain.hwnd, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOACTIVATE Or SWP_SHOWWINDOW Or SWP_NOMOVE Or SWP_NOSIZE
    End If
End Sub
When the checkbox is unchecked (and the program is not kept on top), then the help works perfectly. However, when the program is set to topmost, the help is not displayed.

I'm guessing this happens because the main window always forces itself to the top, and in doing so places itself above the help text.

Does anybody know of a way to fix this? Thanx