Ver Mensaje Individual
  #3 (permalink)  
Antiguo 14/06/2009, 08:55
Avatar de Keyenight
Keyenight
 
Fecha de Ingreso: febrero-2009
Ubicación: En la PC usando VB
Mensajes: 42
Antigüedad: 15 años, 3 meses
Puntos: 0
Respuesta: Problema con API ShowWindow

No uso FindWindow para obtener el handle y si se que el primer parametro es el handle y el segundo como mostrar la ventana; así obtengo el handle:

Código vb:
Ver original
  1. Dim mHandle As Long = Nothing
  2. Dim i As Process() = Process.GetProcessByName("proceso")
  3. For Each x As Process In i
  4. mHandle = i.MainWindowHandle
  5. Exit For
  6. Next