18 writes to HWnd
System.Windows.Forms (5)
System\Windows\Forms\ActiveX\AxHost.cs (1)
1703msg.HWnd = win32Message.hwnd;
System\Windows\Forms\Application.cs (1)
779message.HWnd = msg.hwnd;
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.cs (1)
641m.HWnd = activeToolStrip.Handle;
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
265msg.HWnd = win32Message.hwnd;
System\Windows\Forms\Form.cs (1)
4680msg.HWnd = win32Message.hwnd;
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Message.cs (1)
104HWnd = hWnd,
System.Windows.Forms.Tests (11)
System\Windows\Forms\MessageTests.cs (2)
17HWnd = value 22message.HWnd = value;
System\Windows\Forms\RichTextBoxTests.cs (9)
10105HWnd = hWnd, 10133HWnd = control.Handle, 10186HWnd = control.Handle, 10232HWnd = control.Handle, 10268HWnd = hWnd, 10307HWnd = control.Handle, 10369HWnd = control.Handle, 10420HWnd = control.Handle, 10468HWnd = control.Handle,
WindowsFormsIntegration (1)
System\Windows\Integration\Convert.cs (1)
336HWnd = msg.hwnd,
38 references to HWnd
System.Windows.Forms (21)
System\Windows\Forms\Application.ThreadContext.cs (1)
893msg.hwnd = (HWND)message.HWnd;
System\Windows\Forms\Control.cs (2)
8604/// on the <see cref="Control"/> referenced by the <paramref name="msg"/> <see cref="Message.HWnd"/>. It 8621target ??= FromChildHandle(message.HWnd);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (11)
1395if (DropDownStyle == ComboBoxStyle.Simple && m.HWnd == _childListBox!.Handle) 1414if (DropDownStyle == ComboBoxStyle.Simple && m.HWnd == _childListBox!.Handle) 1454if (DropDownStyle == ComboBoxStyle.Simple && m.HWnd == _childListBox!.Handle) 1479if (DropDownStyle == ComboBoxStyle.Simple && m.HWnd == _childListBox!.Handle) 1507OnImeContextStatusChanged(m.HWnd); 1530ImeContext.SetImeStatus(CachedImeMode, m.HWnd); 1554if (!DesignMode && _childEdit is not null && m.HWnd == _childEdit.Handle) 1571if (_childEdit is not null && m.HWnd == _childEdit.Handle) 1751&& m.HWnd == _childEdit.Handle && PARAM.LOWORD(m.LParamInternal) == (int)PInvoke.HTCLIENT) 1815if (m.HWnd == _childEdit.Handle) 1819else if (m.HWnd == _dropDownHandle)
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
1533if (m.HWnd == Handle)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
2168if (m.HWnd == Handle)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
3253if (m.HWnd != Handle)
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (2)
763Control? activeControl = Control.FromChildHandle(m.HWnd); 896Control? intendedControl = Control.FromHandle(m.HWnd);
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.cs (2)
270if (Control.FromHandle(m.HWnd) is ToolStrip toolStrip && !toolStrip.IsDropDown) 579Control? control = Control.FromChildHandle(m.HWnd);
System.Windows.Forms.Design (8)
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.cs (1)
309using Graphics g = Graphics.FromHwnd(m.HWnd);
System\Windows\Forms\Design\ControlDesigner.ChildSubClass.cs (3)
40_designer.RemoveSubclassedWindow(m.HWnd); 53Debug.Assert(m.HWnd == Handle, "Message handle differs from target handle"); 61_designer.SetUnhandledException(Control.FromChildHandle(m.HWnd), ex);
System\Windows\Forms\Design\ControlDesigner.cs (3)
1796if (m.HWnd == Control.Handle) 2063using Graphics graphics = Graphics.FromHwnd(m.HWnd); 2065if (m.HWnd != Control.Handle)
System\Windows\Forms\Design\PbrsForward.cs (1)
97if (hwnd != m.HWnd)
System.Windows.Forms.Primitives (4)
System\Windows\Forms\Message.cs (4)
25internal readonly HWND HWND => (HWND)HWnd; 125=> HWnd == other.HWnd 135public override readonly int GetHashCode() => HashCode.Combine(HWnd, Msg);
System.Windows.Forms.Tests (3)
System\Windows\Forms\MessageTests.cs (3)
19Assert.Equal(value, message.HWnd); 23Assert.Equal(value, message.HWnd); 94Assert.Equal(hWnd, message.HWnd);
WindowsFormsIntegration (2)
System\Windows\Integration\ApplicationInterop.cs (1)
106SWF.Control control = SWF.Control.FromChildHandle(m.HWnd);
System\Windows\Integration\Convert.cs (1)
174hwnd = msg.HWnd,