PRB: 3D Command Button Shows Outline when Outline = False

Last reviewed: June 21, 1995
Article ID: Q81951
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

SYMPTOMS

When you set the Outline property of the Visual Basic 3D Command Button custom control to False, the button appears to have an outline when the button has the focus.

STATUS

This is by design. The Outline property is not designed to turn the outline off when the command button control has the focus.

MORE INFORMATION

The Visual Basic 3D Command Button custom control has an Outline property that can be set to True or False. When the property is set to False, the outline does not appear around the control at design time. At run time, if the button has the focus, the outline appears around the control.

Steps to Reproduce Behavior

  1. Start Visual Basic or from the File menu, choose New Project (ALT, F, N) if Visual Basic is already running. Form1 is created by default.

  2. From the File menu, choose Add File. In the Files box, select the THREED.VBX custom control file. The 3D Command Button tool appears in the toolbox.

  3. Create one 3D Command Button (Command3D1) and one text box (Text1) on the form (Form1).

  4. Set the Outline property of Command3D1 to False.

  5. Press F5 to run the application. Press TAB to move the focus between the two controls on Form1.

When the Command3D1 button does not have the focus, an outline does not appear. When the Command3D1 button has the focus, an outline appears around the control, even though the Outline property is set to False. This behavior is by design.


Additional reference words: 1.00 2.00 3.00
KBCategory: kbprg kbprb
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.