Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "BringWindowToTop" in [All]

user32

.
Summary
.

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

.
Documentation
[BringWindowToTop] on MSDN
.

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)


 
Access PInvoke.net directly from VS: