FIX: Standard Style CommandButton Displays a BackColor

ID: Q180452


The information in this article applies to:
  • Microsoft Windows CE Toolkit for Visual Basic 5.0, version 1.0


SYMPTOMS

A CommandButton with its Style property set to "0 - Standard" and its BackColor property set to a color (other than gray) displays the Backcolor at run-time. This behavior should not occur unless the Style property is set to "1 - Graphical."


STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.

This problem was corrected in Windows CE Toolkit for Visual Basic 6.0.


MORE INFORMATION

Steps to Reproduce Behavior

  1. Start a new Windows CE Project in Visual Basic 5.0. Form1 is created by default.


  2. Place a CommandButton on Form1.


  3. Set the BackColor property of the CommandButton to a color, such as red. Make sure the Style property of the CommandButton is set to "0 - Standard," which is the default.


  4. Press the F5 key to run the project, and note that the button is red. This behavior should only occur when the Style property of the button is set to "1 - Graphical."

    NOTE: This behavior also occurs if you set the BackColor property in code at run-time.


Additional query words: vbce vbce5 vbce6 wince

Keywords : kbToolkit kbVBp kbVBp500bug kbVBp600fix kbWinCE kbWinCE100 kbGrpVB
Version : WINDOWS:1.0
Platform : WINDOWS
Issue type : kbbug


Last Reviewed: October 18, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.