5 writes to ValidationCancelled
System.Windows.Forms (4)
System\Windows\Forms\Layout\Containers\ContainerControl.cs (4)
1891currentActiveControl.ValidationCancelled = false; 1932currentActiveControl.ValidationCancelled = ev.Cancel; 1936currentActiveContainerControl._focusedControl?.ValidationCancelled = true; 1964children[i].ValidationCancelled = false;
System.Windows.Forms.Tests (1)
System\Windows\Forms\ControlTests.Internals.cs (1)
166ValidationCancelled = expected
40 references to ValidationCancelled
System.Windows.Forms (39)
System\Windows\Forms\Control.cs (2)
1506get => GetState(States.ValidationCancelled) || (ParentInternal is { } parent && parent.ValidationCancelled); 11690if (fireClick && !ValidationCancelled)
System\Windows\Forms\Controls\Buttons\Button.cs (3)
268if (PInvoke.WindowFromPoint(PointToScreen(mevent.Location)) == HWND && !ValidationCancelled) 308if (!ValidationCancelled && (validate || validatedControlAllowsFocusChange)) 337if (!ValidationCancelled)
System\Windows\Forms\Controls\Buttons\ButtonBase.cs (2)
1210if (GetFlag(FlagMouseDown) && !ValidationCancelled) 1425if (m.WParamInternal.HIWORD == PInvoke.BN_CLICKED && !ValidationCancelled)
System\Windows\Forms\Controls\Buttons\CheckBox.cs (2)
513if (!ValidationCancelled) 544if (!ValidationCancelled)
System\Windows\Forms\Controls\Buttons\RadioButton.cs (3)
391if (!ValidationCancelled) 491if (!ValidationCancelled) 510if (!ValidationCancelled)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
1661if (_mouseEvents && !ValidationCancelled) 3745if (_mouseEvents && !ValidationCancelled)
System\Windows\Forms\Controls\DateTimePicker\DateTimePicker.cs (1)
1555if (!ValidationCancelled)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (2)
2422if (!_doubleClickFired && !ValidationCancelled) 2433if (!ValidationCancelled)
System\Windows\Forms\Controls\ListView\ListView.cs (3)
5960if (!ValidationCancelled) 6714if (!ValidationCancelled && displayIndex != -1) 7043if (!ValidationCancelled && _listViewState[LISTVIEWSTATE_doubleclickFired] && index != -1)
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
2192if (!ValidationCancelled)
System\Windows\Forms\Controls\TabControl\TabControl.cs (3)
683if (ValidationCancelled) 1730if (ValidationCancelled) 2091if (ValidationCancelled)
System\Windows\Forms\Controls\TextBox\TextBox.cs (2)
914bool wasValidationCancelled = ValidationCancelled; 917(!ValidationCancelled || wasValidationCancelled))
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
1483if (!ValidationCancelled && PInvoke.WindowFromPoint(PointToScreen(mevent.Location)) == HWND)
System\Windows\Forms\Controls\TreeView\TreeView.cs (5)
2682if (!ValidationCancelled) 3033if (hnode != 0 && !ValidationCancelled) 3270if (!ValidationCancelled && CheckBoxes) 3304if (!ValidationCancelled && !_treeViewState[TREEVIEWSTATE_doubleclickFired] & !_treeViewState[TREEVIEWSTATE_mouseUpFired]) 3320if (!ValidationCancelled)
System\Windows\Forms\Controls\UpDown\UpDownBase.cs (1)
694if (PInvoke.WindowFromPoint(PointToScreen(mevent.Location)) == HWND && !ValidationCancelled)
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownButtons.cs (3)
122if (!_parent.ValidationCancelled && e.Button == MouseButtons.Left) 221if (!_parent.ValidationCancelled && e.Button == MouseButtons.Left) 234if (!_parent.ValidationCancelled && PInvoke.WindowFromPoint(PointToScreen(e.Location)) == HWND)
System\Windows\Forms\Controls\UpDown\UpDownBase.UpDownEdit.cs (1)
66if (!_parent.ValidationCancelled && PInvoke.WindowFromPoint(PointToScreen(e.Location)) == HWND)
System\Windows\Forms\Form.cs (1)
262if (!ValidationCancelled)
System\Windows\Forms\UserControl.cs (1)
312if (!ValidationCancelled)
System.Windows.Forms.Tests (1)
System\Windows\Forms\ControlTests.Internals.cs (1)
169Assert.Equal(expected, control.ValidationCancelled);