20 references to GetFocus
System.Windows.Forms (20)
winforms\Managed\System\WinForms\Application.cs (1)
4294focusedHwnd = UnsafeNativeMethods.GetFocus();
winforms\Managed\System\WinForms\AxHost.cs (1)
2690IntPtr hwndFocus = UnsafeNativeMethods.GetFocus();
winforms\Managed\System\WinForms\ComboBox.cs (1)
654IntPtr focus = UnsafeNativeMethods.GetFocus();
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PropertyBuilderUITypeEditor.cs (1)
46IntPtr parentHandle = (IntPtr)UnsafeNativeMethods.GetFocus();
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PropertyPageUITypeConverter.cs (1)
43IntPtr hWndParent = UnsafeNativeMethods.GetFocus(); // Windows.GetForegroundWindow
winforms\Managed\System\WinForms\ContainerControl.cs (1)
677IntPtr focusHandle = UnsafeNativeMethods.GetFocus();
winforms\Managed\System\WinForms\Control.cs (3)
1668IntPtr focusHwnd = UnsafeNativeMethods.GetFocus(); 2479return IsHandleCreated && UnsafeNativeMethods.GetFocus() == Handle; 14415IntPtr hwndFocus = UnsafeNativeMethods.GetFocus();
winforms\Managed\System\WinForms\Control.Ime.cs (2)
296ctl = FromChildHandleInternal( UnsafeNativeMethods.GetFocus() ); 418IntPtr focusHandle = UnsafeNativeMethods.GetFocus();
winforms\Managed\System\WinForms\FileDialog.cs (1)
919IntPtr focusHandle = UnsafeNativeMethods.GetFocus();
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (3)
3975Control focusedControl = Control.FromHandleInternal(UnsafeNativeMethods.GetFocus()); 3980focusedControl = Control.FromHandleInternal(UnsafeNativeMethods.GetFocus()); 4933IntPtr priorFocus = UnsafeNativeMethods.GetFocus();
winforms\Managed\System\WinForms\ScrollBar.cs (1)
928if (UnsafeNativeMethods.GetFocus() == this.Handle) {
winforms\Managed\System\WinForms\ToolStrip.cs (2)
1937SnapFocus(UnsafeNativeMethods.GetFocus()); 4748SnapFocus(UnsafeNativeMethods.GetFocus());
winforms\Managed\System\WinForms\UserControl.cs (1)
292IntPtr hwndFocus = UnsafeNativeMethods.GetFocus();
winforms\Managed\System\WinForms\WebBrowser.cs (1)
1201IntPtr hwndFocus = UnsafeNativeMethods.GetFocus();