puede ser por handrers... alguien podria ayudarme con un ejemplo?
este es mi codigo
Código
'//Funciones API para incrustar el programa en el picture Private Declare Function SetParent Lib "user32" (ByVal hWndChild As Long, _ ByVal hWndParent As Long) As Long Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, _ ByVal nCmdShow As Long) As Long Const SHOWMAXIMIZED_eSW = 1& '//Funciones API para obtener el handle de la aplicación que queremos meter en un picture Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" _ (ByVal lpClassName As String, _ ByVal lpWindowName As String) As Long '//Ejecuta el programa Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, _ ByVal lpOperation As String, _ ByVal lpFile As String, _ ByVal lpParameters As String, _ ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, _ ByVal wMsg As Long, _ ByVal wParam As Long, _ lParam As Any) As Long Const WM_SYSCOMMAND = &H112 Const SC_CLOSE = &HF060&
Código
Private Sub Command1_Click() Dim hwnd As Long ShellExecute Me.hwnd, "Open", "D:\juegos listos para jugar\Lineage II\system\l2.exe", _ "", "", 3 Espera (50) 'Espera cinco segundos a que se cargue hwnd = FindWindow("l2UnrealWLog", vbNullString) 'Obtiene el handle padre Call SetParent(hwnd, Picture1.hwnd) 'Meter la apcliación en el picture Call ShowWindow(hwnd, SHOWMAXIMIZED_eSW) 'Lo ajusta al cuadro