/// <summary> /// Default constructor /// </summary> public ScrollablePictureBox() { if (Viewer == null) { Viewer = new ImageBox(); Viewer.Location = new Point(0, 0); Viewer.Parent = this; } SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer | ControlStyles.UserPaint | ControlStyles.ResizeRedraw, true); this.AutoScroll = true; }