dim myproc as new process ' Some setup code for calling a third-party application myproc.start
myproc
' Activate and bring to the top an existing window. Dim winPtr As IntPtr winPtr = myproc.MainWindowHandle WinAPI.SendMessage(winPtr, WinAPI.WndMsg.WM_SETFOCUS, CType(1, IntPtr), CType(0, IntPtr))
WM_FOCUS
Process
Private Shared WithEvents myProcess As Process = Nothing
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)