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