Overflow Error Plotting Points Far Outside Bounds of Control (81953)
The information in this article applies to:
- Microsoft Visual Basic Standard Edition for Windows 2.0
- Microsoft Visual Basic Standard Edition for Windows 3.0
- Microsoft Visual Basic Professional Edition for Windows 2.0
- Microsoft Visual Basic Professional Edition for Windows 3.0
- Microsoft Visual Basic Standard Edition for Windows 1.0
This article was previously published under Q81953 SUMMARY
Visual Basic for Windows may give an Overflow error when you plot
points on a form or picture box if a point's coordinates far exceed
the borders and scale of the form or control. The point at which
overflow occurs depends on the ScaleMode property value and the points
plotted. In the case of ScaleMode = 0 (User Defined Scale), the size
of the form or picture box and the scale chosen are also determinants.
A workaround is to trap the error and use a RESUME NEXT statement to
exit the error handler. The example below contains the necessary code
to trap the Overflow error.
Modification Type: | Major | Last Reviewed: | 12/12/2003 |
---|
Keywords: | KB81953 |
---|
|