Desktop Functions: Smart Device Functions:
|
Search Results for "BringWindowToTop" in [All]user32
static extern bool BringWindowToTop(IntPtr hWnd);
static extern bool BringWindowToTop(HandleRef hWnd);
Private Shared Function BringWindowToTop(ByVal hwnd As IntPtr) As Boolean
Public Declare Function BringWindowToTop Lib "user32" (ByVal HWnd As IntPtr) As Boolean The trick is to make windows ‘think’ that our process and the target window (hwnd) are related by attaching the threads (using AttachThreadInput API) and using an alternative API: BringWindowToTop. BringWindowToTop(hWnd); BringWindowToTop(hWnd);
public static bool BringWindowToTop(string windowName, bool wait) |