Rsdn.Shortcuts.ShortcutManager.GetControlFromHandle C# (CSharp) Method

GetControlFromHandle() private static method

private static GetControlFromHandle ( IntPtr handle ) : Control
handle System.IntPtr
return System.Windows.Forms.Control
		private static Control GetControlFromHandle(IntPtr handle)
		{
			if (handle == IntPtr.Zero)
				return null;

			return Control.FromHandle(handle)
				?? GetControlFromHandle(GetParent(handle));
		}