1 write to vertScrollBar
System.Windows.Forms (1)
winforms\Managed\System\WinForms\DataGridViewMethods.cs (1)
5601this.vertScrollBar = null;
105 references to vertScrollBar
System.Windows.Forms (105)
winforms\Managed\System\WinForms\DataGridView.cs (19)
510this.vertScrollBar.Top = 0; 511this.vertScrollBar.AccessibleName = SR.GetString(SR.DataGridView_AccVerticalScrollBarAccName); 512this.vertScrollBar.Left = this.ClientRectangle.Width - vertScrollBar.Width; 513this.vertScrollBar.Visible = false; 514this.vertScrollBar.Scroll += new ScrollEventHandler(DataGridViewVScrolled); 515this.Controls.Add(this.vertScrollBar); 2697if (this.vertScrollBar != null && this.vertScrollBar.Visible) 2699rectDisplay.Width -= this.vertScrollBar.Width; 2702rectDisplay.X = this.vertScrollBar.Width; 2792if (this.vertScrollBar != null && this.vertScrollBar.Visible) 2794if (this.vertScrollBar.Bounds.Contains(ptMouse)) 5203if (value > this.vertScrollBar.Maximum - fittingTrailingScrollingRowsHeight) 5205value = this.vertScrollBar.Maximum - fittingTrailingScrollingRowsHeight; 5213if (this.vertScrollBar.Enabled) 5215this.vertScrollBar.Value = value; 5226return this.vertScrollBar;
winforms\Managed\System\WinForms\DataGridViewAccessibleObject.cs (3)
134if (this.owner.vertScrollBar.Visible) 138return this.owner.vertScrollBar.AccessibilityObject; 166if (this.owner.vertScrollBar.Visible)
winforms\Managed\System\WinForms\DataGridViewControlCollection.cs (2)
46if (value != owner.horizScrollBar && value != owner.vertScrollBar && value != this.owner.editingPanel) 62if (this[i] == this.owner.horizScrollBar || this[i] == this.owner.vertScrollBar || this[i] == this.owner.editingPanel)
winforms\Managed\System\WinForms\DataGridViewMethods.cs (81)
4503if (this.vertScrollBar.Enabled) 4507int oldVertScrollBarValue = this.vertScrollBar.Value; 4508int oldThumbHeight = Math.Max(((this.vertScrollBar.Height - 2*SystemInformation.VerticalScrollBarArrowHeight) * this.vertScrollBar.LargeChange) / this.vertScrollBar.Maximum, 8); 4510this.vertScrollBar.Maximum = totalVisibleHeight - totalVisibleFrozenHeight; 4511Debug.Assert(this.vertScrollBar.Maximum > 0); 4512this.vertScrollBar.Value = ComputeHeightOfScrolledOffRows(); 4513this.vertScrollBar.LargeChange = this.layout.Data.Height - totalVisibleFrozenHeight; 4514this.verticalOffset = this.vertScrollBar.Value; 4516if (this.vertScrollBar.Visible && 4518oldThumbHeight != Math.Max(((this.vertScrollBar.Height - 2*SystemInformation.VerticalScrollBarArrowHeight) * this.vertScrollBar.LargeChange) / this.vertScrollBar.Maximum, 8))) 4521this.vertScrollBar.Invalidate(); 4523Debug.Assert(this.verticalOffset == this.vertScrollBar.Value); 5598if (this.vertScrollBar != null) 5600this.vertScrollBar.Dispose(); 8649Debug.Assert(!this.vertScrollBar.Enabled || 8650!this.vertScrollBar.Visible || 8651this.vertScrollBar.Maximum == visibleRowsHeight - frozenVisibleRowsHeight); 9074minimumWidth += this.vertScrollBar.Width; 9392if (this.vertScrollBar != null && this.vertScrollBar.Visible && this.vertScrollBar.Bounds.Contains(x, y)) 10205if (this.vertScrollBar != null && this.vertScrollBar.Visible) 10207this.vertScrollBar.Invalidate(); 10346int vertScrollBarWidth = this.vertScrollBar.Width = SystemInformation.VerticalScrollBarWidth; 10479rightToLeftInternal ? this.layout.Data.X - this.vertScrollBar.Width : this.layout.Data.Right, 10481this.vertScrollBar.Width, 10531this.vertScrollBar.Minimum = 0; 10532this.vertScrollBar.Maximum = totalVisibleHeight - totalVisibleFrozenHeight; 10533Debug.Assert(this.vertScrollBar.Maximum > 0); 10534this.vertScrollBar.Value = ComputeHeightOfScrolledOffRows(); 10535this.vertScrollBar.LargeChange = this.layout.Data.Height - totalVisibleFrozenHeight; 10536this.vertScrollBar.Bounds = new Rectangle( 10537rightToLeftInternal ? this.layout.Data.X - this.vertScrollBar.Width : this.layout.Data.Right, 10539this.vertScrollBar.Width, 10541this.vertScrollBar.Enabled = this.Enabled; 10542this.vertScrollBar.Visible = true; 10543this.vertScrollBar.Invalidate(); 10545this.verticalOffset = this.vertScrollBar.Value; 10549this.vertScrollBar.Visible = false; 10552this.vertScrollBar.Enabled = false; 10553this.vertScrollBar.Minimum = 0; 10554this.vertScrollBar.Maximum = 1; 10555this.vertScrollBar.LargeChange = 1; 10556this.vertScrollBar.Value = 0; 15494if (this.vertScrollBar != null && this.vertScrollBar.Visible) 15498this.vertScrollBar.Maximum = totalVisibleHeight - totalVisibleFrozenHeight; 15500this.vertScrollBar.Enabled = true; 16906ScrollBar sb = (verticalScroll ? (ScrollBar) this.vertScrollBar : (ScrollBar) this.horizScrollBar); 16959this.VerticalOffset -= fullNotches * this.vertScrollBar.LargeChange; 16960if (Math.Abs(this.VerticalOffset - originalVerticalOffset) >= Math.Abs(fullNotches * this.vertScrollBar.LargeChange)) 17003while (this.vertScrollBar.Value != this.vertScrollBar.Minimum && absScrollBands > 0) 17008if (this.vertScrollBar.Value == this.vertScrollBar.Minimum) 17023this.vertScrollBar.Value + this.Rows.SharedRow(this.displayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(this.displayedBandsInfo.FirstDisplayedScrollingRow) <= 17024this.vertScrollBar.Maximum - ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight)) 17032if (this.vertScrollBar.Value + this.Rows.SharedRow(this.displayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(this.displayedBandsInfo.FirstDisplayedScrollingRow) > 17033this.vertScrollBar.Maximum - ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight)) 26428if (this.vertScrollBar.Enabled) 26430this.vertScrollBar.Value = this.verticalOffset; 28493if (this.vertScrollBar.Value + this.Rows.SharedRow(this.displayedBandsInfo.FirstDisplayedScrollingRow).GetHeight(this.displayedBandsInfo.FirstDisplayedScrollingRow) <= 28494this.vertScrollBar.Maximum - ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight)) 28503if (this.vertScrollBar.Value != this.vertScrollBar.Minimum) 28514this.VerticalOffset += Math.Max(firstDisplayedScrollingRowHeight, this.vertScrollBar.LargeChange); 28520this.VerticalOffset -= this.vertScrollBar.LargeChange; 28528if (se.NewValue >= this.vertScrollBar.Maximum - this.vertScrollBar.LargeChange) 28531this.VerticalOffset = this.vertScrollBar.Maximum - ComputeHeightOfFittingTrailingScrollingRows(totalVisibleFrozenHeight); 28896if (this.vertScrollBar != null) 28898this.vertScrollBar.MouseEnter -= new System.EventHandler(ScrollBar_MouseEnter); 28899this.vertScrollBar.MouseLeave -= new System.EventHandler(ScrollBar_MouseLeave); 29837if (this.vertScrollBar != null) 29839this.vertScrollBar.MouseEnter += new System.EventHandler(ScrollBar_MouseEnter); 29840this.vertScrollBar.MouseLeave += new System.EventHandler(ScrollBar_MouseLeave);