Forex_Strategy_Builder.Journal_Bars.VScrollBar_ValueChanged C# (CSharp) Method

VScrollBar_ValueChanged() private method

Invalidates the sender after scrolling
private VScrollBar_ValueChanged ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        void VScrollBar_ValueChanged(object sender, EventArgs e)
        {
            SetUpJournal();
            int iScrallBarSize = hScrollBar.Visible ? hScrollBar.Height : 0;
            Rectangle rect = new Rectangle(border, 2 * rowHeight, ClientSize.Width - 2 * border, ClientSize.Height - 2 * rowHeight - iScrallBarSize - border);
            Invalidate(rect);

            return;
        }