1 write to horizScrollBar
System.Windows.Forms (1)
winforms\Managed\System\WinForms\DataGridViewMethods.cs (1)
5606this.horizScrollBar = null;
74 references to horizScrollBar
System.Windows.Forms (74)
winforms\Managed\System\WinForms\DataGridView.cs (17)
502this.horizScrollBar.RightToLeft = RightToLeft.Inherit; 503this.horizScrollBar.AccessibleName = SR.GetString(SR.DataGridView_AccHorizontalScrollBarAccName); 504this.horizScrollBar.Top = this.ClientRectangle.Height - horizScrollBar.Height; 505this.horizScrollBar.Left = 0; 506this.horizScrollBar.Visible = false; 507this.horizScrollBar.Scroll += new ScrollEventHandler(DataGridViewHScrolled); 508this.Controls.Add(this.horizScrollBar); 2693if (this.horizScrollBar != null && this.horizScrollBar.Visible) 2695rectDisplay.Height -= this.horizScrollBar.Height; 2799if (this.horizScrollBar != null && this.horizScrollBar.Visible) 2801return this.horizScrollBar.Bounds.Contains(ptMouse); 3401if (this.horizScrollBar.Enabled) 3403this.horizScrollBar.Value = value; 3487return this.horizScrollBar;
winforms\Managed\System\WinForms\DataGridViewAccessibleObject.cs (3)
122if (this.owner.horizScrollBar.Visible) 126return this.owner.horizScrollBar.AccessibilityObject; 161if (this.owner.horizScrollBar.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 (52)
5603if (this.horizScrollBar != null) 5605this.horizScrollBar.Dispose(); 9089minimumHeight += this.horizScrollBar.Height; 9386if (this.horizScrollBar != null && this.horizScrollBar.Visible && this.horizScrollBar.Bounds.Contains(x, y)) 10201if (this.horizScrollBar != null && this.horizScrollBar.Visible) 10203this.horizScrollBar.Invalidate(); 10345int horizScrollBarHeight = this.horizScrollBar.Height = SystemInformation.HorizontalScrollBarHeight; 10482this.horizScrollBar.Height); 10489this.horizScrollBar.Minimum = 0; 10490this.horizScrollBar.Maximum = totalVisibleWidth - totalVisibleFrozenWidth; 10491Debug.Assert(this.horizScrollBar.Maximum > 0); 10492this.horizScrollBar.SmallChange = 1; 10493this.horizScrollBar.LargeChange = Math.Max(totalVisibleWidth - totalVisibleFrozenWidth - widthNotVisible, 0); 10494this.horizScrollBar.Enabled = this.Enabled; 10495this.horizScrollBar.Bounds = new Rectangle( 10499this.horizScrollBar.Height); 10500this.horizScrollBar.Visible = true; 10501this.horizScrollBar.Invalidate(); 10505this.horizScrollBar.Visible = false; 10508this.horizScrollBar.Enabled = false; 10509this.horizScrollBar.Minimum = 0; 10510this.horizScrollBar.Maximum = 1; 10511this.horizScrollBar.SmallChange = 1; 10512this.horizScrollBar.LargeChange = 1; 10513this.horizScrollBar.Value = 0; 14819if (this.horizScrollBar.Enabled) 14821this.horizScrollBar.Value = this.horizontalOffset; 15502if (this.horizScrollBar != null && this.horizScrollBar.Visible) 15504this.horizScrollBar.Enabled = true; 16906ScrollBar sb = (verticalScroll ? (ScrollBar) this.vertScrollBar : (ScrollBar) this.horizScrollBar); 16972this.HorizontalOffset -= fullNotches * this.horizScrollBar.LargeChange; 16973if (Math.Abs(this.HorizontalOffset - originalHorizontalOffset) >= Math.Abs(fullNotches * this.horizScrollBar.LargeChange)) 17048extremeScrollBarValue = this.horizScrollBar.Minimum; 17053extremeScrollBarValue = this.horizScrollBar.Maximum; 17057while (this.horizScrollBar.Value != extremeScrollBarValue && absScrollBands > 0) 17062if (this.horizScrollBar.Value == extremeScrollBarValue) 17624if (this.horizScrollBar.Enabled) 17626int newHorizontalOffset = this.horizScrollBar.Maximum - this.horizScrollBar.LargeChange - dataGridViewColumn.Thickness; 17627if (newHorizontalOffset >= 0 && newHorizontalOffset < this.horizScrollBar.Value) 17645if (this.horizScrollBar.Enabled) 17647this.horizScrollBar.Value = this.horizontalOffset; 28891if (this.horizScrollBar != null) 28893this.horizScrollBar.MouseEnter -= new System.EventHandler(ScrollBar_MouseEnter); 28894this.horizScrollBar.MouseLeave -= new System.EventHandler(ScrollBar_MouseLeave); 29832if (this.horizScrollBar != null) 29834this.horizScrollBar.MouseEnter += new System.EventHandler(ScrollBar_MouseEnter); 29835this.horizScrollBar.MouseLeave += new System.EventHandler(ScrollBar_MouseLeave);