private void ReSize2()
{
int xx = Vertical.Left;
int yy = Horizontal.Top;
if (xx < 0)
xx = 0;
if (yy < 0)
yy = 0;
if (yy > Height - Horizontal.Height - SystemInformation.VerticalScrollBarWidth*3)
{
yy = Height - Horizontal.Height - SystemInformation.VerticalScrollBarWidth*3;
if (yy != Horizontal.Top)
Horizontal.Top = yy;
}
if (xx > Width - Vertical.Width - SystemInformation.VerticalScrollBarWidth*3)
{
xx = Width - Vertical.Width - SystemInformation.VerticalScrollBarWidth*3;
if (xx != Vertical.Left)
Vertical.Left = xx;
}
int CenterY = (Horizontal.Top + Horizontal.Height/2) - Center.Height/2;
int CenterX = (Vertical.Left + Vertical.Width/2) - Center.Width/2;
Center.Location = new Point(CenterX, CenterY);
}