3 writes to Msg
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\PbrsForward.cs (1)
130_lastKeyDown.Msg = 0;
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Message.cs (1)
105Msg = msg,
WindowsFormsIntegration (1)
System\Windows\Integration\Convert.cs (1)
337Msg = msg.message,
53 references to Msg
System.Windows.Forms (30)
System\Windows\Forms\ActiveX\AxHost.cs (1)
3212(uint)m.Msg,
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (1)
2112if (m.Msg is >= ((int)PInvokeCore.WM_NCLBUTTONDOWN) and <= ((int)PInvokeCore.WM_NCMBUTTONDBLCLK))
System\Windows\Forms\Control.cs (8)
8717if (message.Msg is ((int)PInvokeCore.WM_KEYDOWN) or ((int)PInvokeCore.WM_SYSKEYDOWN)) 8915/// parameter contains the window message that must be processed. Possible values for the <see cref="Message.Msg"/> 8998/// <see cref="Message.Msg"/> property are WM_CHAR, WM_KEYDOWN, WM_SYSKEYDOWN, WM_KEYUP, and WM_SYSKEYUP. 9013/// <see cref="Message.Msg"/> property are WM_CHAR, WM_KEYDOWN, WM_SYSKEYDOWN, WM_KEYUP, and WM_SYSKEYUP. The 12668if (m.Msg == (int)s_threadCallbackMessage && m.Msg != 0) 12673else if (m.Msg == (int)WM_GETCONTROLNAME) 12678else if (m.Msg == (int)WM_GETCONTROLTYPE)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
21873if (m.Msg is ((int)PInvokeCore.WM_SYSKEYDOWN) or ((int)PInvokeCore.WM_KEYDOWN))
System\Windows\Forms\Controls\Menus\MenuStrip.cs (1)
252if (m.Msg == (int)PInvokeCore.WM_MOUSEACTIVATE && (ActiveDropDowns.Count == 0))
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
5329switch (m.Msg)
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
2452if (m.Msg == PInvokeCore.WM_CHAR && ImeWmCharsToIgnore > 0)
System\Windows\Forms\Controls\ToolStrips\StatusStrip.cs (1)
569if ((m.Msg == (int)PInvokeCore.WM_NCHITTEST) && SizingGrip)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (1)
4666if (m.Msg == (int)PInvokeCore.WM_NCDESTROY)
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.cs (1)
727if (m.Msg == (int)PInvokeCore.WM_SYSKEYDOWN)
System\Windows\Forms\Controls\ToolStrips\ToolStripManager.ModalMenuFilter.cs (1)
496else if (m.Msg is >= ((int)PInvokeCore.WM_NCLBUTTONDOWN) and <= ((int)PInvokeCore.WM_NCMBUTTONDBLCLK))
System\Windows\Forms\Controls\ToolStrips\ToolStripScrollButton.StickyLabel.cs (1)
40if (m.Msg is >= ((int)PInvokeCore.WM_KEYFIRST) and <= ((int)PInvokeCore.WM_KEYLAST))
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (1)
395if (m.Msg == (int)PInvokeCore.WM_GETOBJECT && m.LParamInternal == PInvoke.UiaRootObjectId)
System\Windows\Forms\Form.cs (4)
3492(uint)m.Msg, 3500m.ResultInternal = PInvoke.DefMDIChildProc(m.HWND, (uint)m.Msg, m.WParamInternal, m.LParamInternal); 6680if (m.Msg != (int)PInvokeCore.WM_ENDSESSION) 6781if (m.Msg != (int)PInvokeCore.WM_QUERYENDSESSION)
System\Windows\Forms\NativeWindow.cs (2)
507m.ResultInternal = PInvokeCore.DefWindowProc(m.HWND, (uint)m.Msg, m.WParamInternal, m.LParamInternal); 514(uint)m.Msg,
System\Windows\Forms\NotifyIcon.cs (1)
806if (msg.Msg == (int)WM_TASKBARCREATED)
System\Windows\Forms\SendKeys\SendKeys.SKWindow.cs (1)
23if (m.Msg == (int)PInvokeCore.WM_CANCELJOURNAL)
System\Windows\Forms\ToolTip\ToolTip.cs (1)
2265switch (message.Msg)
System\Windows\Forms\WindowSubclassHandler.cs (1)
234(uint)m.Msg,
System.Windows.Forms.Design (14)
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.cs (2)
280if (m.Msg == (int)WM_GETALLSNAPLINES) 284else if (m.Msg == (int)WM_GETRECENTSNAPLINES)
System\Windows\Forms\Design\Behavior\BehaviorService.AdornerWindow.MouseHook.cs (2)
183if (m.Msg == (int)PInvokeCore.WM_LBUTTONDOWN) 187else if (m.Msg == (int)PInvokeCore.WM_LBUTTONDBLCLK)
System\Windows\Forms\Design\ControlDesigner.ChildWindowTarget.cs (1)
77if (m.Msg == (int)PInvokeCore.WM_CREATE)
System\Windows\Forms\Design\ControlDesigner.cs (1)
2115if (m.Msg == (int)PInvokeCore.WM_NCACTIVATE)
System\Windows\Forms\Design\DesignerFrame.cs (2)
521else if (m.Msg is (int)PInvokeCore.WM_VSCROLL or (int)PInvokeCore.WM_HSCROLL && BehaviorService is not null) 525else if ((m.Msg == (int)PInvokeCore.WM_MOUSEWHEEL))
System\Windows\Forms\Design\GroupBoxDesigner.cs (1)
106switch (m.Msg)
System\Windows\Forms\Design\ListViewDesigner.cs (1)
133switch (m.Msg)
System\Windows\Forms\Design\PbrsForward.cs (3)
72if (m.Msg is >= ((int)PInvokeCore.WM_KEYFIRST) 82switch (m.Msg) 151else if (_ignoreMessages && m.Msg != (int)PInvokeCore.WM_IME_COMPOSITION)
System\Windows\Forms\Design\ScrollableControlDesigner.cs (1)
50switch (m.Msg)
System.Windows.Forms.Primitives (3)
Interop\User32\WMExtensions.cs (2)
28=> message.Msg >= (int)firstMessage && message.Msg <= (int)secondMessage;
System\Windows\Forms\Message.cs (1)
135public override readonly int GetHashCode() => HashCode.Combine(HWnd, Msg);
WindowsFormsIntegration (6)
System\Windows\Integration\ApplicationInterop.cs (3)
110if (m.Msg == NativeMethods.WM_SYSCHAR) 120if (m.Msg == NativeMethods.WM_CHAR) 267switch (msg.Msg)
System\Windows\Integration\Convert.cs (1)
175message = msg.Msg,
System\Windows\Integration\ElementHost.cs (1)
770switch (m.Msg)
System\Windows\Integration\WindowsFormsHost.cs (1)
932if (!hasFocus && msg.Msg == NativeMethods.WM_CHAR)