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