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)即可
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)即可
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货