32 writes to Maximum
System.Windows.Forms (2)
System\Windows\Forms\Controls\UpDown\NumericUpDown.cs (1)
589Maximum = DefaultMaximum;
System\Windows\Forms\Printing\PrintPreviewDialog.cs (1)
902_pageCounter.Maximum = new decimal(1000d);
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\FormatControl.Designer.cs (1)
135decimalPlacesUpDown.Maximum = new decimal(new int[] {
System\Windows\Forms\Design\StyleEditorForm.cs (2)
399_absoluteNumericUpDown.Maximum = new decimal(99999u); 433_percentNumericUpDown.Maximum = new decimal(9999u);
System.Windows.Forms.Tests (15)
NumericUpDownTests.cs (15)
325upDown.Maximum = maximumValue; 339upDown.Maximum = maximumValue; 349upDown.Maximum = 10; 359upDown.Maximum = 30; 579upDown.Maximum = 200; 664using NumericUpDown upDown = new() { Value = 10, Minimum = 0, Maximum = 20, Increment = 1, Text = "30" }; 732upDown.Maximum = 100; 741using NumericUpDown upDown = new() { Value = 100, Maximum = 100, Increment = 1 }; 757using NumericUpDown upDown = new() { Value = 10, Minimum = 0, Maximum = 20, Increment = 1, Text = "30" }; 765using NumericUpDown upDown = new() { Value = 100, Maximum = 100 }; 773using NumericUpDown upDown = new() { Value = 99, Maximum = 100 }; 781using NumericUpDown upDown = new() { Value = 100, Maximum = 100 }; 789using SubNumericUpDown upDown = new() { Value = 100, Maximum = 100, PublicUserEdit = true }; 798upDown.Maximum = decimal.MaxValue; 808upDown.Maximum = decimal.MaxValue;
WinFormsControlsTest (12)
ComboBoxesWithScrollBars.Designer.cs (6)
136this.changeDDH_UpDown1.Maximum = new decimal(new int[] { 161this.changeCBHeight_UpDown2.Maximum = new decimal(new int[] { 184this.changeDDH_UpDown3.Maximum = new decimal(new int[] { 213this.maxDropDownItemsUpDown1.Maximum = new decimal(new int[] { 226this.maxDropDownItemsUpDown2.Maximum = new decimal(new int[] { 240this.maxDropDownItemsUpDown3.Maximum = new decimal(new int[] {
DataGridViewTest.Designer.cs (1)
161this.numericUpDown1.Maximum = new decimal(new int[] {
ScrollBars.cs (1)
19numericMinimum.Maximum = numericMaximum.Value;
TrackBars.cs (3)
75numericFrequency.Maximum = (int)Math.Min(numericMaximum.Value - numericMaximum.Minimum, int.MaxValue); 87numericMinimum.Maximum = numericMaximum.Value; 88numericFrequency.Maximum = (int)Math.Min(numericMaximum.Value - numericMaximum.Minimum, int.MaxValue);
TrackBars.Designer.cs (1)
166this.numericMaximum.Maximum = new decimal(new int[] {
13 references to Maximum
System.Windows.Forms (5)
System\Windows\Forms\Controls\UpDown\NumericUpDown.cs (5)
320throw new ArgumentOutOfRangeException(nameof(value), value, string.Format(SR.InvalidBoundArgument, nameof(Value), value, $"'{nameof(Minimum)}'", $"'{nameof(Maximum)}'")); 612/// Indicates whether the <see cref="Maximum"/> property should be persisted. 616return !Maximum.Equals(DefaultMaximum); 660return $"{s}, Minimum = {Minimum}, Maximum = {Maximum}"; 774int numDigits = (int)Math.Floor(Math.Log(Math.Max(-(double)Minimum, (double)Maximum), baseSize));
System.Windows.Forms.Tests (6)
NumericUpDownTests.cs (6)
327upDown.Maximum.Should().Be(maximumValue); 341upDown.Maximum.Should().Be(maximumValue); 351upDown.Maximum.Should().Be(20); 361upDown.Maximum.Should().Be(30); 552upDown.Maximum.Should().Be(100); 580upDown.Maximum.Should().Be(200);
WinFormsControlsTest (2)
TrackBars.cs (2)
76if (numericFrequency.Maximum == 0) 89if (numericFrequency.Maximum == 0)