6 writes to Msg
System.Windows.Forms (6)
winforms\Managed\System\WinForms\Application.cs (1)
887
message.
Msg
= msg.message;
winforms\Managed\System\WinForms\AxHost.cs (2)
2054
msg.
Msg
= win32Message.message;
4122
msg.
Msg
= pMsg.message;
winforms\Managed\System\WinForms\Form.cs (1)
5299
msg.
Msg
= win32Message.message;
winforms\Managed\System\WinForms\WebBrowserBase.cs (1)
325
msg.
Msg
= win32Message.message;
winforms\Managed\System\WinForms\WebBrowserSiteBase.cs (1)
172
msg.
Msg
= pMsg.message;
199 references to Msg
System.Web.Entity.Design (1)
System\Data\WebControls\Design\Util\DesignerForm.cs (1)
173
if ((m.
Msg
== WM_SYSCOMMAND) && ((int)m.WParam == SC_CONTEXTHELP))
System.Web.Mobile (1)
UI\MobileControls\Design\DesignerForm.cs (1)
151
if ((m.
Msg
== WM_SYSCOMMAND) && ((int)m.WParam == SC_CONTEXTHELP)) {
System.Windows.Forms (186)
winforms\Managed\System\WinForms\Application.cs (5)
880
msg.message = message.
Msg
;
3614
msg.message = m.
Msg
;
4207
if (m.
Msg
!= NativeMethods.WM_SHOWWINDOW) {
4209
if (m.
Msg
== NativeMethods.WM_PARENTNOTIFY) {
4214
else if (m.
Msg
== WM_CHECKDESTROY) {
winforms\Managed\System\WinForms\AxHost.cs (4)
2042
win32Message.message = msg.
Msg
;
3430
switch (m.
Msg
) {
3547
if (m.
Msg
== REGMSG_MSG) {
3562
m.Result = UnsafeNativeMethods.CallWindowProc(wndProc, handle, m.
Msg
, m.WParam, m.LParam);
winforms\Managed\System\WinForms\Button.cs (1)
403
switch (m.
Msg
) {
winforms\Managed\System\WinForms\ButtonBase.cs (3)
1268
switch (m.
Msg
) {
1283
switch (m.
Msg
) {
1321
switch (m.
Msg
) {
winforms\Managed\System\WinForms\CheckedListBox.cs (3)
1085
switch (m.
Msg
) {
1093
if (m.
Msg
== LBC_GETCHECKSTATE) {
1102
else if (m.
Msg
== LBC_SETCHECKSTATE) {
winforms\Managed\System\WinForms\ComboBox.cs (8)
1631
switch (m.
Msg
) {
2223
if (m.
Msg
== NativeMethods.WM_KEYDOWN) {
2236
else if (m.
Msg
== NativeMethods.WM_CHAR) {
3658
switch (m.
Msg
) {
3699
m.Result = InitializeDCForWmCtlColor(m.WParam, m.
Msg
);
3851
if (m.
Msg
== NativeMethods.WM_MOUSEENTER) {
3876
switch (m.
Msg
) {
5810
if (m.
Msg
== NativeMethods.WM_NCDESTROY) {
winforms\Managed\System\WinForms\ContainerControl.cs (1)
1941
switch (m.
Msg
) {
winforms\Managed\System\WinForms\Control.cs (38)
10157
if (msg.
Msg
== NativeMethods.WM_KEYDOWN || msg.
Msg
== NativeMethods.WM_SYSKEYDOWN) {
10184
else if (msg.
Msg
== NativeMethods.WM_CHAR || msg.
Msg
== NativeMethods.WM_SYSCHAR) {
10185
if (msg.
Msg
== NativeMethods.WM_CHAR && IsInputChar((char)msg.WParam)) {
10247
if (msg.
Msg
== NativeMethods.WM_KEYDOWN || msg.
Msg
== NativeMethods.WM_SYSKEYDOWN) {
10263
if (msg.
Msg
== NativeMethods.WM_KEYDOWN || msg.
Msg
== NativeMethods.WM_SYSKEYDOWN) {
10272
else if (msg.
Msg
== NativeMethods.WM_CHAR || msg.
Msg
== NativeMethods.WM_SYSCHAR) {
10516
if (m.
Msg
== NativeMethods.WM_CHAR || m.
Msg
== NativeMethods.WM_SYSCHAR) {
10532
else if (m.
Msg
== NativeMethods.WM_IME_CHAR) {
10648
if (m.
Msg
== NativeMethods.WM_KEYDOWN || m.
Msg
== NativeMethods.WM_SYSKEYDOWN) {
11098
m.Result = control.SendMessage(NativeMethods.WM_REFLECT + m.
Msg
, m.WParam, m.LParam);
12905
m.Result = control.InitializeDCForWmCtlColor(m.WParam, m.
Msg
);
13034
if (m.
Msg
== NativeMethods.WM_GETOBJECT && m.LParam == (IntPtr)NativeMethods.UiaRootObjectId && this.SupportsUiaProviders) {
13586
m.Result = UnsafeNativeMethods.SendMessage(new HandleRef(null, nmhdr->hwndFrom), NativeMethods.WM_REFLECT + m.
Msg
, m.WParam, m.LParam);
13590
UnsafeNativeMethods.SendMessage(new HandleRef(null, nmhdr->hwndFrom), NativeMethods.WM_REFLECT + m.
Msg
, m.WParam, m.LParam);
13631
m.Result = control.SendMessage(NativeMethods.WM_REFLECT + m.
Msg
, handle, m.LParam);
14126
switch (m.
Msg
) {
14392
if (m.
Msg
== threadCallbackMessage && m.
Msg
!= 0) {
14396
else if (m.
Msg
== Control.WM_GETCONTROLNAME) {
14400
else if (m.
Msg
== Control.WM_GETCONTROLTYPE) {
14410
if (m.
Msg
== mouseWheelMessage) {
14418
SendMessage(m.
Msg
, (IntPtr)((unchecked((int)(long)m.WParam) << 16) | (int)keyState), m.LParam);
14436
if (m.
Msg
== NativeMethods.WM_MOUSEENTER) {
14635
switch (m.
Msg
) {
18524
lpmsg.message = msg.
Msg
;
18742
if (m.
Msg
>= NativeMethods.WM_MOUSEFIRST && m.
Msg
<= NativeMethods.WM_MOUSELAST) {
18745
if (m.
Msg
>= NativeMethods.WM_NCLBUTTONDOWN && m.
Msg
<= NativeMethods.WM_NCMBUTTONDBLCLK) {
18748
if (m.
Msg
>= NativeMethods.WM_KEYFIRST && m.
Msg
<= NativeMethods.WM_KEYLAST) {
winforms\Managed\System\WinForms\DataGrid.cs (2)
8210
if (m.
Msg
== NativeMethods.WM_KEYDOWN) {
8236
} else if (m.
Msg
== NativeMethods.WM_KEYUP) {
winforms\Managed\System\WinForms\DataGridTextBox.cs (8)
55
if (m.
Msg
== NativeMethods.WM_PASTE || m.
Msg
== NativeMethods.WM_CUT || m.
Msg
== NativeMethods.WM_CLEAR) {
112
if (m.
Msg
== NativeMethods.WM_CHAR)
117
if (m.
Msg
== NativeMethods.WM_CHAR) {
126
if (m.
Msg
== NativeMethods.WM_KEYUP)
195
if (m.
Msg
== NativeMethods.WM_CHAR) return true;
206
if (m.
Msg
== NativeMethods.WM_CHAR) return true;
winforms\Managed\System\WinForms\DataGridViewMethods.cs (14)
22306
if (m.
Msg
== NativeMethods.WM_SYSKEYDOWN || m.
Msg
== NativeMethods.WM_KEYDOWN)
22340
this.editingControl.SendMessage(m.
Msg
, m.WParam, m.LParam);
22352
(m.
Msg
== NativeMethods.WM_SYSCHAR || m.
Msg
== NativeMethods.WM_CHAR || m.
Msg
== NativeMethods.WM_IME_CHAR))
22357
this.editingControl.SendMessage(m.
Msg
, m.WParam, m.LParam);
22378
if (m.
Msg
== NativeMethods.WM_CHAR)
22420
if (this.editingControl != null && (m.
Msg
== NativeMethods.WM_KEYDOWN || m.
Msg
== NativeMethods.WM_SYSKEYDOWN))
22432
if (m.
Msg
== NativeMethods.WM_KEYDOWN || m.
Msg
== NativeMethods.WM_SYSKEYDOWN)
29959
switch (m.
Msg
)
29990
this.editingControl.SendMessage(m.
Msg
, m.WParam, m.LParam);
winforms\Managed\System\WinForms\DataGridViewTextBoxEditingControl.cs (3)
294
if (m.
Msg
== NativeMethods.WM_CHAR &&
305
if (m.
Msg
== NativeMethods.WM_CHAR &&
314
if (m.
Msg
== NativeMethods.WM_KEYDOWN && ModifierKeys == Keys.Control)
winforms\Managed\System\WinForms\DateTimePicker.cs (1)
1686
switch (m.
Msg
) {
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (1)
850
if (m.
Msg
== NativeMethods.WM_REFLECT + NativeMethods.WM_NOTIFY) {
winforms\Managed\System\WinForms\ErrorProvider.cs (1)
1288
switch (m.
Msg
) {
winforms\Managed\System\WinForms\Form.cs (11)
3778
m.Result = UnsafeNativeMethods.DefFrameProc(m.HWnd, ctlClient.Handle, m.
Msg
, m.WParam, m.LParam);
3781
m.Result = UnsafeNativeMethods.DefMDIChildProc(m.HWnd, m.
Msg
, m.WParam, m.LParam);
5288
win32Message.message = msg.
Msg
;
7001
if (m.
Msg
!= NativeMethods.WM_ENDSESSION) {
7064
if (m.
Msg
== NativeMethods.WM_QUERYENDSESSION) {
7083
if (m.
Msg
!= NativeMethods.WM_QUERYENDSESSION) {
7526
switch (m.
Msg
) {
7945
if (msg.
Msg
== NativeMethods.WM_LBUTTONDOWN
7946
|| msg.
Msg
== NativeMethods.WM_RBUTTONDOWN
7947
|| msg.
Msg
== NativeMethods.WM_MBUTTONDOWN
7948
|| msg.
Msg
== NativeMethods.WM_XBUTTONDOWN) {
winforms\Managed\System\WinForms\GroupBox.cs (1)
791
switch (m.
Msg
) {
winforms\Managed\System\WinForms\Label.cs (1)
1734
switch (m.
Msg
) {
winforms\Managed\System\WinForms\LinkLabel.cs (1)
1944
switch (msg.
Msg
) {
winforms\Managed\System\WinForms\ListBox.cs (1)
2390
switch (m.
Msg
) {
winforms\Managed\System\WinForms\ListView.cs (1)
6250
switch (m.
Msg
) {
winforms\Managed\System\WinForms\MaskedTextBox.cs (3)
2721
if( m.
Msg
== NativeMethods.WM_CHAR && base.ImeWmCharsToIgnore > 0 ) {
3203
switch (m.
Msg
)
3230
switch (m.
Msg
)
winforms\Managed\System\WinForms\MDIClient.cs (1)
353
switch (m.
Msg
) {
winforms\Managed\System\WinForms\MenuStrip.cs (1)
269
if (m.
Msg
== NativeMethods.WM_MOUSEACTIVATE && (ActiveDropDowns.Count == 0)) {
winforms\Managed\System\WinForms\MessageDecoder.cs (1)
359
return ToString(message.HWnd, message.
Msg
, message.WParam, message.LParam, message.Result);
winforms\Managed\System\WinForms\MonthCalendar.cs (1)
2414
switch (m.
Msg
) {
winforms\Managed\System\WinForms\NativeWindow.cs (3)
833
m.Result = UnsafeNativeMethods.DefWindowProc(m.HWnd, m.
Msg
, m.WParam, m.LParam);
836
m.Result = UnsafeNativeMethods.CallWindowProc(defWindowProc, m.HWnd, m.
Msg
, m.WParam, m.LParam);
840
m.Result = previousWindow.Callback(m.HWnd, m.
Msg
, m.WParam, m.LParam);
winforms\Managed\System\WinForms\NotifyIcon.cs (2)
850
switch (msg.
Msg
) {
932
if (msg.
Msg
== WM_TASKBARCREATED) {
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (1)
920
switch (m.
Msg
) {
winforms\Managed\System\WinForms\PropertyGrid.cs (4)
4874
switch (m.
Msg
) {
4970
if (m.
Msg
== AutomationMessages.PGM_GETBUTTONTEXT) {
4992
if (m.
Msg
== this.dwMsg) {
4999
m.Result = gridView.SendMessage(m.
Msg
, m.WParam, m.LParam);
winforms\Managed\System\WinForms\PropertyGridInternal\GridToolTip.cs (1)
240
switch (msg.
Msg
) {
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (7)
1790
if (dropDownHolder != null && dropDownHolder.Visible && m.
Msg
== NativeMethods.WM_KEYDOWN && (int)m.WParam != (int)Keys.Tab) {
1793
m.Result = ctl.SendMessage(m.
Msg
, m.WParam, m.LParam);
5324
switch (m.
Msg
) {
6076
if (m.
Msg
== NativeMethods.WM_ACTIVATE) {
6089
else if (m.
Msg
== NativeMethods.WM_CLOSE) {
6097
else if (m.
Msg
== NativeMethods.WM_DPICHANGED) {
6873
switch (m.
Msg
) {
winforms\Managed\System\WinForms\RichTextBox.cs (1)
3670
switch (m.
Msg
) {
winforms\Managed\System\WinForms\ScrollableControl.cs (1)
1479
switch (m.
Msg
) {
winforms\Managed\System\WinForms\ScrollBar.cs (1)
918
switch (m.
Msg
) {
winforms\Managed\System\WinForms\SendKeys.cs (1)
997
if (m.
Msg
== NativeMethods.WM_CANCELJOURNAL) {
winforms\Managed\System\WinForms\SplitContainer.cs (5)
2495
switch (msg.
Msg
) {
2549
if (m.
Msg
>= NativeMethods.WM_KEYFIRST && m.
Msg
<= NativeMethods.WM_KEYLAST) {
2550
if ((m.
Msg
== NativeMethods.WM_KEYDOWN && (int)m.WParam == (int)Keys.Escape)
2551
|| (m.
Msg
== NativeMethods.WM_SYSKEYDOWN)) {
winforms\Managed\System\WinForms\Splitter.cs (3)
1085
if (m.
Msg
>= NativeMethods.WM_KEYFIRST && m.
Msg
<= NativeMethods.WM_KEYLAST) {
1086
if (m.
Msg
== NativeMethods.WM_KEYDOWN && unchecked((int)(long)m.WParam) == (int)Keys.Escape) {
winforms\Managed\System\WinForms\StatusBar.cs (2)
1163
switch (m.
Msg
) {
1906
switch (msg.
Msg
) {
winforms\Managed\System\WinForms\StatusStrip.cs (2)
554
if ((m.
Msg
== NativeMethods.WM_NCHITTEST) && SizingGrip) {
617
if (m.
Msg
== NativeMethods.WM_NCHITTEST) {
winforms\Managed\System\WinForms\TabControl.cs (2)
2154
switch (m.
Msg
) {
2212
if (m.
Msg
== tabBaseReLayoutMessage) {
winforms\Managed\System\WinForms\TextBox.cs (1)
874
switch (m.
Msg
) {
winforms\Managed\System\WinForms\TextBoxBase.cs (1)
2290
switch (m.
Msg
) {
winforms\Managed\System\WinForms\Timer.cs (2)
454
if (m.
Msg
== NativeMethods.WM_TIMER) {
461
else if (m.
Msg
== NativeMethods.WM_CLOSE) {
winforms\Managed\System\WinForms\ToolBar.cs (1)
1669
switch (m.
Msg
) {
winforms\Managed\System\WinForms\ToolStrip.cs (4)
4711
if (m.
Msg
== NativeMethods.WM_SETFOCUS) {
4714
if (m.
Msg
== NativeMethods.WM_MOUSEACTIVATE) {
4761
if (m.
Msg
== NativeMethods.WM_NCDESTROY) {
5154
switch (m.
Msg
) {
winforms\Managed\System\WinForms\ToolStripDropDown.cs (3)
2117
if (m.
Msg
>= NativeMethods.WM_KEYFIRST && m.
Msg
<= NativeMethods.WM_KEYLAST && IsRestrictedWindow) {
2127
switch (m.
Msg
) {
winforms\Managed\System\WinForms\ToolStripManager.cs (8)
1215
if (m.
Msg
>= NativeMethods.WM_MOUSEFIRST && m.
Msg
<= NativeMethods.WM_MOUSELAST) {
1218
else if (m.
Msg
>= NativeMethods.WM_NCLBUTTONDOWN && m.
Msg
<= NativeMethods.WM_NCMBUTTONDBLCLK) {
1221
else if (m.
Msg
>= NativeMethods.WM_KEYFIRST && m.
Msg
<= NativeMethods.WM_KEYLAST) {
1276
switch (m.
Msg
) {
1541
if (m.
Msg
== NativeMethods.WM_SYSKEYDOWN) {
winforms\Managed\System\WinForms\ToolStripPanel.cs (1)
898
if (m.
Msg
== NativeMethods.WM_NCHITTEST){
winforms\Managed\System\WinForms\ToolStripScrollButton.cs (2)
186
if (m.
Msg
>= NativeMethods.WM_KEYFIRST && m.
Msg
<= NativeMethods.WM_KEYLAST) {
winforms\Managed\System\WinForms\ToolStripTextBox.cs (1)
894
if (m.
Msg
== NativeMethods.WM_NCPAINT) {
winforms\Managed\System\WinForms\ToolTip.cs (1)
2554
switch (msg.
Msg
) {
winforms\Managed\System\WinForms\TrackBar.cs (1)
1172
switch (m.
Msg
) {
winforms\Managed\System\WinForms\TreeView.cs (1)
3155
switch (m.
Msg
) {
winforms\Managed\System\WinForms\UpDownBase.cs (1)
1212
switch (m.
Msg
)
winforms\Managed\System\WinForms\UserControl.cs (1)
372
switch (m.
Msg
) {
winforms\Managed\System\WinForms\WebBrowser.cs (1)
1647
switch (m.
Msg
) {
winforms\Managed\System\WinForms\WebBrowserBase.cs (4)
302
win32Message.message = msg.
Msg
;
427
switch (m.
Msg
) {
516
if (m.
Msg
== WebBrowserHelper.REGMSG_MSG) {
1970
switch (m.
Msg
) {
System.Workflow.ComponentModel (11)
AuthoringOM\Design\DesignerWidgets.cs (1)
2256
if (msg.
Msg
== NativeMethods.WM_NOTIFY && msg.LParam != IntPtr.Zero && !this.inplaceTipRectangle.IsEmpty)
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (2)
1210
if (msg.
Msg
>= WM_MOUSEFIRST && msg.
Msg
<= WM_MOUSELAST)
AuthoringOM\Design\WorkflowView.cs (8)
1416
if (m.
Msg
== WM_CONTEXTMENU)
1434
if (this.workflowToolTip != null && m.
Msg
== NativeMethods.WM_NOTIFY)
2224
if (m.
Msg
== NativeMethods.WM_KEYDOWN || m.
Msg
== NativeMethods.WM_SYSKEYDOWN ||
2225
m.
Msg
== NativeMethods.WM_KEYUP || m.
Msg
== NativeMethods.WM_SYSKEYUP)
2231
if (m.
Msg
== NativeMethods.WM_KEYDOWN || m.
Msg
== NativeMethods.WM_SYSKEYDOWN)