B Bill Fuller Jun 3, 2008 #1 I would like to get Windows paramaters from the currently in-focus Window in C#. What is the best way to do this?
I would like to get Windows paramaters from the currently in-focus Window in C#. What is the best way to do this?
K Kerem Gümrükcü Jun 3, 2008 #2 Hi Bill, I would like to get Windows paramaters from the currently in-focus Window in C#. What is the best way to do this? Click to expand... [DllImport("user32.dll")] static extern IntPtr GetForegroundWindow(); and is the direct opposite: [DllImport("user32.dll")] [return: MarshalAs(UnmanagedType.Bool)] static extern bool SetForegroundWindow(IntPtr hWnd); Regards Kerem --
Hi Bill, I would like to get Windows paramaters from the currently in-focus Window in C#. What is the best way to do this? Click to expand... [DllImport("user32.dll")] static extern IntPtr GetForegroundWindow(); and is the direct opposite: [DllImport("user32.dll")] [return: MarshalAs(UnmanagedType.Bool)] static extern bool SetForegroundWindow(IntPtr hWnd); Regards Kerem --