Public Declare Function SetWindowPos& Lib "user32" (ByVal hwnd As Long, ByVal hWndInsertAfter As Long, ByVal X As Long, ByVal Y As Long, ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long)
Public Sub SetWindowTop(frm As Form, Top As Boolean)
    If Top = True Then
        SetWindowPos frm.hwnd, -1, 0, 0, 0, 0, 3
    Else
        SetWindowPos frm.hwnd, -2, 0, 0, 0, 0, 3
    End If
End Sub
call setwindowtop(form2,true)即可