@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm Summary: The SetFocus API !!!!C# Signature: [DllImport("user32.dll", SetLastError = true)] static extern IntPtr SetFocus(IntPtr hWnd); !!!!User-Defined Types: None. !!!!VB.NET Signature: Private Declare Function SetFocus Lib "user32.dll" (ByVal hwnd As IntPtr) As IntPtr !!!!Notes: None. !!!!Tips & Tricks: Please add some! !!!!Sample Code: Please add some! 'Focussing on a process's main window when PID is known: Dim p As Process = Process.GetProcessById("ID Here") SetFocus(p.MainWindowHandle) !!!!Alternative Managed API: Focus(); Documentation: SetFocus@msdn on MSDN
Edit user32.setfocus
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.