40 references to code
System.Windows.Forms (38)
System\Windows\Forms\Components\ErrorProvider\ErrorProvider.ErrorWindow.cs (2)
432
if (nmhdr->
code
is PInvoke.TTN_SHOW or PInvoke.TTN_POP)
434
OnToolTipVisibilityChanging((nint)nmhdr->idFrom, nmhdr->
code
== PInvoke.TTN_SHOW);
System\Windows\Forms\Control.cs (1)
12487
switch (nmhdr->
code
)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (1)
30040
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)
6026
&& nmhdr->
code
== PInvoke.NM_CUSTOMDRAW)
6047
if (nmhdr->
code
== PInvoke.NM_CUSTOMDRAW && PInvoke.UiaClientsAreListening())
6058
if (nmhdr->
code
== PInvoke.NM_CUSTOMDRAW && OwnerDraw)
6111
if (nmhdr->
code
== PInvoke.NM_RELEASEDCAPTURE && _listViewState[LISTVIEWSTATE_columnClicked])
6117
if (nmhdr->
code
== PInvoke.HDN_BEGINTRACKW)
6139
if (nmhdr->
code
== PInvoke.HDN_ITEMCHANGINGW)
6174
if ((nmhdr->
code
== PInvoke.HDN_ITEMCHANGEDW) &&
6226
if (nmhdr->
code
== PInvoke.HDN_ENDTRACKW)
6254
if (nmhdr->
code
== PInvoke.HDN_ENDDRAG)
6321
if (nmhdr->
code
== PInvoke.HDN_DIVIDERDBLCLICKW)
6482
switch (nmhdr->
code
)
6727
MouseButtons button = nmhdr->
code
== PInvoke.NM_CLICK ? MouseButtons.Left : MouseButtons.Right;
6821
if (nmhdr->
code
== PInvoke.LVN_GETDISPINFOW)
6871
else if (nmhdr->
code
== PInvoke.LVN_ODSTATECHANGED)
6887
else if (nmhdr->
code
== PInvoke.LVN_GETINFOTIPW)
6910
else if (nmhdr->
code
== PInvoke.LVN_ODFINDITEMW)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
2189
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)
3344
switch (nmhdr->
code
)
System\Windows\Forms\Controls\TabControl\TabControl.cs (1)
2082
switch (nmhdr->
code
)
System\Windows\Forms\Controls\TreeView\TreeView.cs (8)
2995
if (nmhdr->
code
== PInvoke.NM_CUSTOMDRAW)
3003
switch (nmtv->hdr.
code
)
3039
if (nmtv->hdr.
code
!= PInvoke.NM_CLICK || (tvhip.flags & TVHITTESTINFO_FLAGS.TVHT_ONITEM) != 0)
3041
button = nmtv->hdr.
code
== PInvoke.NM_CLICK ? MouseButtons.Left : MouseButtons.Right;
3047
if (nmtv->hdr.
code
!= PInvoke.NM_CLICK
3058
if (nmtv->hdr.
code
== PInvoke.NM_RCLICK)
3076
if (nmtv->hdr.
code
!= PInvoke.NM_CLICK
3220
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\ToolTip\ToolTip.cs (2)
2273
if (nmhdr->
code
== PInvoke.TTN_SHOW && !_trackPosition)
2277
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)