@msdn=http://search.microsoft.com/search/results.aspx?qu=$$$ @pinvoke=http://pinvoke.net/$$$.htm Summary: The GetActiveWindow API !!!!C# Signature: [DllImport("user32.dll")] static extern IntPtr GetActiveWindow(); !!!!VB.NET Signature: <DllImport("user32.dll", SetLastError:=True)> _ Private Shared Function GetActiveWindow() As IntPtr End Function !!!!VB Signature: Public Declare Function GetActiveWindow Lib "user32.dll" () As Long !!!!User-Defined Types: None. !!!!Notes: GetActiveWindow() will only return if the calling thread is in focus. !!!!Tips & Tricks: Can be used to find the active window Hwnd for [GetWindowText] !!!!Sample Code: Inside a Windows Form: if (GetActiveWindow() == Handle) { // The Form is the active window } !!!!Alternative Managed API: Do you know one? Please contribute it! Documentation: GetActiveWindow@msdn on MSDN
Edit user32.getactivew...
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.