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