VB 无标题窗口置顶

前端之家收集整理的这篇文章主要介绍了VB 无标题窗口置顶前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

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 Const a& = -1
Private Const b& = &H1
Private Const c& = &H2
Private Sub Form_Load()
SetWindowPos Me.hwnd,a,b Or c
End Sub

直接复制到窗体的代码窗口中,运行就行了!

猜你在找的VB相关文章