8 writes to code
System.Windows.Forms.Tests (7)
System\Windows\Forms\RichTextBoxTests.cs (7)
10101
code
= (uint)code
10129
code
= (int)PInvoke.EN_DROPFILES
10176
code
= (int)PInvoke.EN_SELCHANGE
10264
code
= (uint)code
10303
code
= (int)PInvoke.EN_DROPFILES
10364
code
= (int)PInvoke.EN_REQUESTRESIZE
10410
code
= (int)PInvoke.EN_SELCHANGE
System.Windows.Forms.UI.IntegrationTests (1)
MonthCalendarTests.cs (1)
69
code
= PInvoke.MCN_SELCHANGE,
45 references to code
System.Windows.Forms (38)
System\Windows\Forms\Control.cs (1)
11757
switch (nmhdr->
code
)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
30032
if (nmhdr->
code
== PInvoke.TTN_GETDISPINFOW && !DesignMode)
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
1534
switch (nmhdr->
code
)
System\Windows\Forms\Controls\ListView\ListView.cs (16)
6009
&& nmhdr->
code
== PInvoke.NM_CUSTOMDRAW)
6030
if (nmhdr->
code
== PInvoke.NM_CUSTOMDRAW && PInvoke.UiaClientsAreListening())
6041
if (nmhdr->
code
== PInvoke.NM_CUSTOMDRAW && OwnerDraw)
6094
if (nmhdr->
code
== PInvoke.NM_RELEASEDCAPTURE && _listViewState[LISTVIEWSTATE_columnClicked])
6100
if (nmhdr->
code
== PInvoke.HDN_BEGINTRACKW)
6122
if (nmhdr->
code
== PInvoke.HDN_ITEMCHANGINGW)
6157
if ((nmhdr->
code
== PInvoke.HDN_ITEMCHANGEDW) &&
6209
if (nmhdr->
code
== PInvoke.HDN_ENDTRACKW)
6237
if (nmhdr->
code
== PInvoke.HDN_ENDDRAG)
6304
if (nmhdr->
code
== PInvoke.HDN_DIVIDERDBLCLICKW)
6465
switch (nmhdr->
code
)
6710
MouseButtons button = nmhdr->
code
== PInvoke.NM_CLICK ? MouseButtons.Left : MouseButtons.Right;
6804
if (nmhdr->
code
== PInvoke.LVN_GETDISPINFOW)
6854
else if (nmhdr->
code
== PInvoke.LVN_ODSTATECHANGED)
6870
else if (nmhdr->
code
== PInvoke.LVN_GETINFOTIPW)
6893
else if (nmhdr->
code
== PInvoke.LVN_ODFINDITEMW)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
2167
switch (nmhdr->
code
)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.cs (1)
5272
switch (nmhdr->
code
)
System\Windows\Forms\Controls\PropertyGrid\PropertyGridInternal\PropertyGridView.GridViewTextBox.cs (1)
296
switch (nmhdr->
code
)
System\Windows\Forms\Controls\RichTextBox\RichTextBox.cs (1)
3241
switch (nmhdr->
code
)
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
2075
switch (nmhdr->
code
)
System\Windows\Forms\Controls\TreeView\TreeView.cs (8)
2978
if (nmhdr->
code
== PInvoke.NM_CUSTOMDRAW)
2986
switch (nmtv->hdr.
code
)
3022
if (nmtv->hdr.
code
!= PInvoke.NM_CLICK || (tvhip.flags & TVHITTESTINFO_FLAGS.TVHT_ONITEM) != 0)
3024
button = nmtv->hdr.
code
== PInvoke.NM_CLICK ? MouseButtons.Left : MouseButtons.Right;
3030
if (nmtv->hdr.
code
!= PInvoke.NM_CLICK
3041
if (nmtv->hdr.
code
== PInvoke.NM_RCLICK)
3059
if (nmtv->hdr.
code
!= PInvoke.NM_CLICK
3203
switch (nmhdr->
code
)
System\Windows\Forms\Design\ComponentEditorForm.PageSelector.cs (1)
280
if (nmhdr->
code
== PInvoke.NM_CUSTOMDRAW)
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.cs (1)
504
switch (notify->hdr.
code
)
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (2)
424
if (nmhdr->
code
is PInvoke.TTN_SHOW or PInvoke.TTN_POP)
426
OnToolTipVisibilityChanging((nint)nmhdr->idFrom, nmhdr->
code
== PInvoke.TTN_SHOW);
System\Windows\Forms\ToolTip\ToolTip.cs (2)
2275
if (nmhdr->
code
== PInvoke.TTN_SHOW && !_trackPosition)
2279
else if (nmhdr->
code
== PInvoke.TTN_POP)
System.Windows.Forms.Design (2)
System\ComponentModel\Design\ObjectSelectorEditor.Selector.cs (1)
205
if (nmtv->
code
== PInvoke.NM_CLICK)
System\Windows\Forms\Design\ListViewDesigner.cs (1)
138
if (nmhdr->
code
== PInvoke.HDN_ENDTRACKW)
System.Windows.Forms.Interop.Tests (5)
RichTextBoxTests.cs (5)
21
Assert.Equal(132u, value.nmhdr.
code
);
36
Assert.Equal(132u, value.nmhdr.
code
);
51
Assert.Equal(132u, value.nmhdr.
code
);
132
Assert.Equal(132u, value.nmhdr.
code
);
146
Assert.Equal(132u, value.nmhdr.
code
);