22 references to EnablePreventFocusChange
System.Windows.Forms (4)
System\Windows\Forms\Control.cs (1)
10409
return (parent is not null) ? parent.AutoValidate : AutoValidate.
EnablePreventFocusChange
;
System\Windows\Forms\Layout\Containers\ContainerControl.cs (3)
1765
bool preventFocusChangeOnError = (autoValidateMode == AutoValidate.
EnablePreventFocusChange
);
1799
if (AutoValidate == AutoValidate.
EnablePreventFocusChange
||
1834
preventFocusChangeOnError = (autoValidateMode == AutoValidate.
EnablePreventFocusChange
);
System.Windows.Forms.Tests (18)
System\Windows\Forms\ContainerControlTests.cs (8)
34
Assert.Equal(AutoValidate.
EnablePreventFocusChange
, control.AutoValidate);
279
yield return new object[] { AutoValidate.
EnablePreventFocusChange
, AutoValidate.
EnablePreventFocusChange
};
281
yield return new object[] { AutoValidate.Inherit, AutoValidate.
EnablePreventFocusChange
};
315
control.AutoValidate = AutoValidate.
EnablePreventFocusChange
;
316
Assert.Equal(AutoValidate.
EnablePreventFocusChange
, control.AutoValidate);
320
control.AutoValidate = AutoValidate.
EnablePreventFocusChange
;
321
Assert.Equal(AutoValidate.
EnablePreventFocusChange
, control.AutoValidate);
System\Windows\Forms\Design\ComponentEditorFormTests.cs (1)
66
Assert.Equal(AutoValidate.
EnablePreventFocusChange
, control.AutoValidate);
System\Windows\Forms\FormTests.cs (1)
65
Assert.Equal(AutoValidate.
EnablePreventFocusChange
, control.AutoValidate);
System\Windows\Forms\PropertyGridTests.cs (1)
39
Assert.Equal(AutoValidate.
EnablePreventFocusChange
, control.AutoValidate);
System\Windows\Forms\UserControlTests.cs (7)
670
yield return new object[] { AutoValidate.
EnablePreventFocusChange
, AutoValidate.
EnablePreventFocusChange
};
672
yield return new object[] { AutoValidate.Inherit, AutoValidate.
EnablePreventFocusChange
};
706
control.AutoValidate = AutoValidate.
EnablePreventFocusChange
;
707
Assert.Equal(AutoValidate.
EnablePreventFocusChange
, control.AutoValidate);
711
control.AutoValidate = AutoValidate.
EnablePreventFocusChange
;
712
Assert.Equal(AutoValidate.
EnablePreventFocusChange
, control.AutoValidate);