The information in this article applies to:
SUMMARYThe Picture box limits setting of the CurrentX and CurrentY values to between -32768 to +32767 twips, which are the limits of a signed integer. This behavior occurs because CurrentX and CurrentY are stored as Singles. The Height and Width properties of the Picture box can be made larger than the limits given. RESOLUTIONTo set the CurrentX and CurrentY values to larger values than the limits given, use the PSet method. For example, the following line of code sets the X and Y positions to 40000, 40000:
A debug print of the CurrentX and CurrentY values after the statement above
is executed confirms that they hold the correct values of 40000,40000.
STATUSMicrosoft has confirmed this to be an issue in the Microsoft products listed at the beginning of this article. MORE INFORMATIONSteps to Reproduce Problem
To implement the workaround, change the code in the Click event to:
Additional query words: kbVBp400bug kbVBp kbdsd kbDSupport kbNoKeyWord
Keywords : kbVBp400bug kbGrpVB |
Last Reviewed: January 5, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |