This will keep your form always at the bottom
VB Code:
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" ( _ ByVal lpClassName As String, _ ByVal lpWindowName As String) As Long Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" ( _ ByVal hWnd1 As Long, _ ByVal hWnd2 As Long, _ ByVal lpsz1 As String, _ ByVal lpsz2 As String) As Long Private Declare Function SetParent Lib "user32" ( _ ByVal hWndChild As Long, _ ByVal hWndNewParent As Long) As Long Private Sub Form_Load() Dim ProgMan&, shellDllDefView&, sysListView& ProgMan = FindWindow("progman", vbNullString) shellDllDefView = FindWindowEx(ProgMan&, 0&, "shelldll_defview", vbNullString) sysListView = FindWindowEx(shellDllDefView&, 0&, "syslistview32", vbNullString) SetParent Me.hwnd, sysListView End Sub




Reply With Quote