private void RecalcVScrollBar(int rows)
{
if (VScrollBarVisible)
{
mVScrollBar.Minimum = 0;
mVScrollBar.Maximum = rows + VerticalPage - 1;
mVScrollBar.LargeChange = VerticalPage;
mVScrollBar.SmallChange = 1;
if (mVScrollBar.Value > MaximumVScroll)
mVScrollBar.Value = MaximumVScroll;
}
}