18 writes to HWnd
System.Windows.Forms (5)
System\Windows\Forms\ActiveX\AxHost.cs (1)
1719msg.HWnd = win32Message.hwnd;
System\Windows\Forms\Application.cs (1)
797message.HWnd = msg.hwnd;
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.cs (1)
643m.HWnd = activeToolStrip.Handle;
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (1)
265msg.HWnd = win32Message.hwnd;
System\Windows\Forms\Form.cs (1)
4716msg.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)
18HWnd = value 23message.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)
338msg2.HWnd = msg.hwnd;
38 references to HWnd
System.Windows.Forms (21)
System\Windows\Forms\Application.ThreadContext.cs (1)
894msg.hwnd = (HWND)message.HWnd;
System\Windows\Forms\Control.cs (2)
8669/// on the <see cref="Control"/> referenced by the <paramref name="msg"/> <see cref="Message.HWnd"/>. It 8686target ??= FromChildHandle(message.HWnd);
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (11)
1445if (DropDownStyle == ComboBoxStyle.Simple && m.HWnd == _childListBox!.Handle) 1464if (DropDownStyle == ComboBoxStyle.Simple && m.HWnd == _childListBox!.Handle) 1504if (DropDownStyle == ComboBoxStyle.Simple && m.HWnd == _childListBox!.Handle) 1529if (DropDownStyle == ComboBoxStyle.Simple && m.HWnd == _childListBox!.Handle) 1557OnImeContextStatusChanged(m.HWnd); 1580ImeContext.SetImeStatus(CachedImeMode, m.HWnd); 1604if (!DesignMode && _childEdit is not null && m.HWnd == _childEdit.Handle) 1621if (_childEdit is not null && m.HWnd == _childEdit.Handle) 1801&& m.HWnd == _childEdit.Handle && PARAM.LOWORD(m.LParamInternal) == (int)PInvoke.HTCLIENT) 1865if (m.HWnd == _childEdit.Handle) 1869else 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)
3242if (m.HWnd != Handle)
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (2)
764Control? activeControl = Control.FromChildHandle(m.HWnd); 897Control? intendedControl = Control.FromHandle(m.HWnd);
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.cs (2)
272if (Control.FromHandle(m.HWnd) is ToolStrip toolStrip && !toolStrip.IsDropDown) 581Control? 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)
1798if (m.HWnd == Control.Handle) 2075using Graphics graphics = Graphics.FromHwnd(m.HWnd); 2077if (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)
20Assert.Equal(value, message.HWnd); 24Assert.Equal(value, message.HWnd); 95Assert.Equal(hWnd, message.HWnd);
WindowsFormsIntegration (2)
System\Windows\Integration\ApplicationInterop.cs (1)
108SWF.Control control = SWF.Control.FromChildHandle(m.HWnd);
System\Windows\Integration\Convert.cs (1)
177msg2.hwnd = msg.HWnd;