4 writes to ValidationCancelled
System.Windows.Forms (4)
System\Windows\Forms\Layout\Containers\ContainerControl.cs (4)
1891
currentActiveControl.
ValidationCancelled
= false;
1932
currentActiveControl.
ValidationCancelled
= ev.Cancel;
1936
currentActiveContainerControl._focusedControl?.
ValidationCancelled
= true;
1964
children[i].
ValidationCancelled
= false;
39 references to ValidationCancelled
System.Windows.Forms (39)
System\Windows\Forms\Control.cs (2)
1678
get => GetState(States.ValidationCancelled) || (ParentInternal is { } parent && parent.
ValidationCancelled
);
12420
if (fireClick && !
ValidationCancelled
)
System\Windows\Forms\Controls\Buttons\Button.cs (3)
240
if (PInvoke.WindowFromPoint(PointToScreen(mevent.Location)) == HWND && !
ValidationCancelled
)
280
if (!
ValidationCancelled
&& (validate || validatedControlAllowsFocusChange))
309
if (!
ValidationCancelled
)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (2)
1191
if (GetFlag(FlagMouseDown) && !
ValidationCancelled
)
1464
if (m.WParamInternal.HIWORD == PInvoke.BN_CLICKED && !
ValidationCancelled
)
System\Windows\Forms\Controls\Buttons\CheckBox.cs (2)
669
if (!
ValidationCancelled
)
713
if (!
ValidationCancelled
)
System\Windows\Forms\Controls\Buttons\RadioButton.cs (3)
462
if (!
ValidationCancelled
)
612
if (!
ValidationCancelled
)
631
if (!
ValidationCancelled
)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
1721
if (_mouseEvents && !
ValidationCancelled
)
3900
if (_mouseEvents && !
ValidationCancelled
)
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
1555
if (!
ValidationCancelled
)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (2)
2424
if (!_doubleClickFired && !
ValidationCancelled
)
2435
if (!
ValidationCancelled
)
System\Windows\Forms\Controls\ListView\ListView.cs (3)
5962
if (!
ValidationCancelled
)
6716
if (!
ValidationCancelled
&& displayIndex != -1)
7045
if (!
ValidationCancelled
&& _listViewState[LISTVIEWSTATE_doubleclickFired] && index != -1)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
2214
if (!
ValidationCancelled
)
System\Windows\Forms\Controls\TabControl\TabControl.cs (3)
683
if (
ValidationCancelled
)
1727
if (
ValidationCancelled
)
2098
if (
ValidationCancelled
)
System\Windows\Forms\Controls\TextBox\TextBox.cs (2)
947
bool wasValidationCancelled =
ValidationCancelled
;
950
(!
ValidationCancelled
|| wasValidationCancelled))
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
1906
if (!
ValidationCancelled
&& PInvoke.WindowFromPoint(PointToScreen(mevent.Location)) == HWND)
System\Windows\Forms\Controls\TreeView\TreeView.cs (5)
2898
if (!
ValidationCancelled
)
3249
if (hnode != 0 && !
ValidationCancelled
)
3486
if (!
ValidationCancelled
&& CheckBoxes)
3520
if (!
ValidationCancelled
&& !_treeViewState[TREEVIEWSTATE_doubleclickFired] & !_treeViewState[TREEVIEWSTATE_mouseUpFired])
3536
if (!
ValidationCancelled
)
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
783
if (PInvoke.WindowFromPoint(PointToScreen(mevent.Location)) == HWND && !
ValidationCancelled
)
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (3)
163
if (!_parent.
ValidationCancelled
&& e.Button == MouseButtons.Left)
256
if (!_parent.
ValidationCancelled
&& e.Button == MouseButtons.Left)
269
if (!_parent.
ValidationCancelled
&& PInvoke.WindowFromPoint(PointToScreen(e.Location)) == HWND)
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownEdit.cs (1)
79
if (!_parent.
ValidationCancelled
&& PInvoke.WindowFromPoint(PointToScreen(e.Location)) == HWND)
System\Windows\Forms\Form.cs (1)
265
if (!
ValidationCancelled
)
System\Windows\Forms\UserControl.cs (1)
312
if (!
ValidationCancelled
)