PRB: 3D Command Button Shows Outline when Outline = False (81951)



The information in this article applies to:

  • Microsoft Visual Basic Professional Edition for Windows 2.0
  • Microsoft Visual Basic Professional Edition for Windows 3.0
  • Microsoft Professional Toolkit for Microsoft Visual Basic programming system for Windows

This article was previously published under Q81951

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.

Modification Type:MinorLast Reviewed:8/16/2005
Keywords:kbprb KB81951