Ver Mensaje Individual
  #5 (permalink)  
Antiguo 22/02/2006, 11:44
LeandroA
 
Fecha de Ingreso: abril-2005
Mensajes: 351
Antigüedad: 19 años, 1 mes
Puntos: 3
Lo puedes hacer con el api setparent

fijate este ejemplo tambien con el explorer

Cita:
Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName 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 hwnd As Long
hwnd = FindWindow("ExploreWClass", vbNullString)
SetParent hwnd, Me.hwnd
ShowWindow hwnd, vbMaximizedFocus
End Sub
Claro que de esta forma primero deve estar ejecutandose el explorer(la ventana)
si no tuvieras que ejecuarlo y mediante su pid puedes y un par de apis mas puedes conseguir su hwnd