public ImageViewPort() { _viewPortInstance = this; _currentPrimitive = new SelectionTool(); DoubleBuffered = true; _shapeControl = new ShapeBoxControl(null); _navigationControl = new NavigationControl(); SetStyle( ControlStyles.AllPaintingInWmPaint | ControlStyles.UserPaint | ControlStyles.ResizeRedraw | ControlStyles.UserPaint | ControlStyles.DoubleBuffer, true); }