protected virtual void UpdateScrollBars()
 {
     if (this.Image != null && this.Properties.Scrollable)
     {
         if (ViewInfo.PictureRect.Height > this.Height)
         {
             vScroll.Left    = this.Width - vScroll.Width;
             vScroll.Height  = this.Image.Width > this.Width ? this.Height - hScroll.Height : this.Height;
             vScroll.Maximum = CalcVScrollBarMaximum();
             vScroll.Show();
         }
         else
         {
             Properties.XIndent = 0;
             vScroll.Hide();
         }
         if (ViewInfo.PictureRect.Width > this.Width)
         {
             hScroll.Top     = this.Height - hScroll.Height;
             hScroll.Width   = this.Image.Height > this.Height ? this.Width - vScroll.Width : this.Width;
             hScroll.Maximum = (int)Math.Round((double)CalcHScrollBarMaximum() * Properties.fZoomFactor);
             hScroll.Show();
         }
         else
         {
             Properties.YIndent = 0;
             hScroll.Hide();
         }
     }
     else
     {
         vScroll.Hide();
         hScroll.Hide();
     }
 }
        protected virtual void UpdateScrollBars()
        {
            if (this.Image != null && this.Properties.Scrollable)
            {
                if (this.Image.Height > this.Height)
                {
                    vScroll.Left    = this.Width - vScroll.Width;
                    vScroll.Height  = this.Image.Width > this.Width ? this.Height - hScroll.Height : this.Height;
                    vScroll.Maximum = CalcVScrollBarMaximum();
                    vScroll.Show();
                }
                else
                {
                    vScroll.Hide();
                }

                if (this.Image.Width > this.Width)
                {
                    hScroll.Top     = this.Height - hScroll.Height;
                    hScroll.Width   = this.Image.Height > this.Height ? this.Width - vScroll.Width : this.Width;
                    hScroll.Maximum = CalcHScrollBarMaximum();
                    hScroll.Show();
                }
                else
                {
                    hScroll.Hide();
                }
            }
            else
            {
                vScroll.Hide();
                hScroll.Hide();
            }
        }