Unhandled Exception: System.ArgumentOutOfRangeException: '-51' is not a valid value for 'Value'. 'Value' should be between 'Minimum' and 'Maximum'
Parameter name: Value
at System.Windows.Forms.ScrollBar.set_Value (Int32 value) [0x00000]
at (wrapper remoting-invoke-with-check) System.Windows.Forms.ScrollBar:set_Value (int)
at System.Windows.Forms.ScrollableControl.set_AutoScrollPosition (Point value) [0x00000]
at (wrapper remoting-invoke-with-check) System.Windows.Forms.ScrollableControl:set_AutoScrollPosition (System.Drawing.Point)
at PaintDotNet.DocumentView.set_DocumentScrollPositionF (PointF value) [0x00000]
at PaintDotNet.DocumentView.RecenterView (PointF newCenter) [0x00000]
at PaintDotNet.DocumentView.set_ScaleFactor (ScaleFactor value) [0x00000]
at PaintDotNet.DocumentView.ZoomToWindow () [0x00000]
at PaintDotNet.DocumentWorkspace.OnLayout (System.Windows.Forms.LayoutEventArgs e) [0x00000]
at System.Windows.Forms.Control.PerformLayout (System.Windows.Forms.Control affectedControl, System.String affectedProperty) [0x00000]
at System.Windows.Forms.Control.PerformLayout () [0x00000]
at PaintDotNet.DocumentWorkspace.OnResize (System.EventArgs e) [0x00000]
at PaintDotNet.DocumentView.DocumentSetImpl (PaintDotNet.Document value) [0x00000]
at PaintDotNet.DocumentView.set_Document (PaintDotNet.Document value) [0x00000]
at (wrapper remoting-invoke-with-check) PaintDotNet.DocumentView:set_Document (PaintDotNet.Document)
at PaintDotNet.AppWorkspace.CreateBlankDocumentInNewWorkspace (Size size, MeasurementUnit dpuUnit, Double dpu, Boolean isInitial) [0x00000]
at (wrapper remoting-invoke-with-check) PaintDotNet.AppWorkspace:CreateBlankDocumentInNewWorkspace (System.Drawing.Size,PaintDotNet.MeasurementUnit,double,bool)
at PaintDotNet.MainForm..ctor (System.String[] args) [0x00000]
at (wrapper remoting-invoke-with-check) PaintDotNet.MainForm:.ctor (string[])
at PaintDotNet.Startup.StartPart2 () [0x00000]
at PaintDotNet.Startup.Start () [0x00000]
at PaintDotNet.Startup.Main (System.String[] args) [0x00000]