13 references to SetFocus
System.Windows.Forms (13)
winforms\Managed\System\WinForms\Application.cs (1)
4318UnsafeNativeMethods.SetFocus(new HandleRef(null, focusedHwnd));
winforms\Managed\System\WinForms\CommonDialog.cs (2)
155UnsafeNativeMethods.SetFocus(new HandleRef(null, wparam)); 165UnsafeNativeMethods.SetFocus(new HandleRef(this, defaultControlHwnd));
winforms\Managed\System\WinForms\ContainerControl.cs (2)
679UnsafeNativeMethods.SetFocus(new HandleRef(activeControl, activeControl.Handle)); 698UnsafeNativeMethods.SetFocus(new HandleRef(cc, cc.Handle));
winforms\Managed\System\WinForms\Control.cs (1)
6370UnsafeNativeMethods.SetFocus(new HandleRef(this, Handle));
winforms\Managed\System\WinForms\DataGridViewCell.cs (1)
1330UnsafeNativeMethods.SetFocus(new HandleRef(null, IntPtr.Zero));
winforms\Managed\System\WinForms\FileDialog.cs (1)
925UnsafeNativeMethods.SetFocus(new HandleRef(null, focusHandle));
winforms\Managed\System\WinForms\PropertyGrid.cs (1)
3842UnsafeNativeMethods.SetFocus(new HandleRef(null, hWndParent));
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (2)
998gotfocus = IntPtr.Zero != UnsafeNativeMethods.SetFocus(new HandleRef(this, Handle)); 4945UnsafeNativeMethods.SetFocus(new HandleRef(null, priorFocus));
winforms\Managed\System\WinForms\ToolStrip.cs (1)
4127UnsafeNativeMethods.SetFocus(NativeMethods.NullHandleRef);
winforms\Managed\System\WinForms\UpDownBase.cs (1)
1225UnsafeNativeMethods.SetFocus(new HandleRef(TextBox, TextBox.Handle));