vb如何实现窗口的置顶呢?也就是如何最上层显示呢?
2个回答
展开全部
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) As Long
Private Sub Form_Load()
'窗口置顶代码
SetWindowPos me.HWnd, -1, 0, 0, 0, 0, 2 Or 1
End Sub
Private Sub Form_Load()
'窗口置顶代码
SetWindowPos me.HWnd, -1, 0, 0, 0, 0, 2 Or 1
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询