Control getFocusControl()
{
Control focusControl = null;
IntPtr focusHandle = Canguro.Utility.NativeMethods.GetFocus();
if (focusHandle != IntPtr.Zero)
// returns null if handle is not to a .NET control
focusControl = Control.FromHandle(focusHandle);
return focusControl;
}