如何让自己的VB程序始终置于窗口最前端啊,急求代码!
我用VB编了个程序,想让其始终置于窗口最前端,不知道该代码怎么写,在此请高手指点,给段实用的代码,在此表示感谢!...
我用VB编了个程序,想让其始终置于窗口最前端,不知道该代码怎么写,在此请高手指点,给段实用的代码,在此表示感谢!
展开
1个回答
2013-09-25
展开全部
Private 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) Private Sub Form_Load()
SetWindowPos Me.hwnd, -1, 0, 0, 0, 0, 3
End Sub
ByVal hWndInsertAfter As Long, ByVal X As Long, ByVal Y As Long, _
ByVal cx As Long, ByVal cy As Long, ByVal wFlags As Long) Private Sub Form_Load()
SetWindowPos Me.hwnd, -1, 0, 0, 0, 0, 3
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询