/// <summary> /// Raises the resize event. /// </summary> /// <remarks> /// This redraws the contain toolstrip panel to conform to our new dimensions. /// </remarks> /// <param name="eventargs">An <see cref="EventArgs"/> describing the event arguments.</param> protected override void OnResize(EventArgs eventargs) { base.OnResize(eventargs); this.SuspendLayout(); if (m_pnlToolStrip.Direction == Orientation.Horizontal) { m_pnlToolStrip.Height = this.Height + SystemInformation.HorizontalScrollBarHeight; m_pnlToolStrip.Width = this.Width; } else { m_pnlToolStrip.Width = this.Width + SystemInformation.VerticalScrollBarWidth; m_pnlToolStrip.Height = this.Height; } m_pnlToolStrip.checkScroll(); checkScroll(); this.ResumeLayout(); }