VB Key Status: Autosize Property Affects Height and Width

Last reviewed: June 21, 1995
Article ID: Q81952
The information in this article applies to:

- Professional Edition of Microsoft Visual Basic for Windows,

  versions 2.0 and 3.0
- Microsoft Professional Toolkit for Microsoft Visual Basic
  programming system for Windows, version 1.0

In the products listed above, you can use the Key Status control (KEYSTAT.VBX) to show and set the current status of the CAPS LOCK, NUM LOCK, SCROLL LOCK, and INSERT keys. One of the features of the Key Status control is its ability to size itself (the Autosize property) to its original dimensions.

If the Autosize property is set to True (the default setting), the control's Height and Width properties will remain at, or be reset to its predetermined values. The size of the control cannot be changed if Autosize is set to True. If the Autosize property is set to False, the Height and Width properties can be changed to reflect the desired control size. Autosize can be set at both design time and run time.


Additional reference words: 1.00 2.00 3.00
KBCategory: kbprg
KBSubcategory: PrgCtrlsCus


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 21, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.