I have a UserControl that contains a GoOverview, a Splitter, and a GoView. Think of the UI as looking exactly like Explorer with the GoOverview on the left and the GoView on the right with a splitter separating them. When I have a diagram loaded into the GoView and its overview displayed on the left, I drag the splitter all the way to the right side so only a sliver of the GoView remains. Clicking anywhere in the GoOverview results in the following:
---------------------------
Microsoft Development Environment
---------------------------
The following exception has occurred:
ArgumentException: ‘669’ is not a valid value for ‘value’. ‘value’ should be between ‘minimum’ and ‘maximum’.
---------------------------
OK
---------------------------
The call stack shows:
system.windows.forms.dll!System.Windows.Forms.ScrollBar.set_Value(int value) + 0xeb bytes
northwoods.go.dll!Northwoods.Go.GoView.UpdateScrollBars() + 0x511 bytes
northwoods.go.dll!Northwoods.Go.GoView.UpdateView() + 0x15 bytes
northwoods.go.dll!Northwoods.Go.GoView.OnPropertyChanged(System.ComponentModel.PropertyChangedEventArgs evt) + 0x44 bytes
northwoods.go.dll!Northwoods.Go.GoView.RaisePropertyChangedEvent(string propname) + 0x28 bytes
northwoods.go.dll!Northwoods.Go.GoView.set_DocPosition(System.Drawing.PointF value) + 0x72 bytes
northwoods.go.dll!Northwoods.Go.GoOverviewRectangle.OnBoundsChanged(System.Drawing.RectangleF old) + 0x60 bytes
northwoods.go.dll!Northwoods.Go.GoObject.set_Bounds(System.Drawing.RectangleF value) + 0xf2 bytes
northwoods.go.dll!Northwoods.Go.GoObject.SetSpotLocation(int spot, System.Drawing.PointF newp) + 0x5c bytes
> northwoods.go.dll!Northwoods.Go.GoObject.set_Location(System.Drawing.PointF value) + 0x13 bytes
[My assembly].dll![My class].GraphOverview.OnMouseDown(System.Windows.Forms.MouseEventArgs evt = {X=625 Y=82 Button=Left}) Line 135 C#
Note that I added the [My class] and [My assembly] items above for clarity…
Does anyone have an idea of what is causing this?