BUG: SetFocus Changes CommandButton Value to TrueLast reviewed: February 10, 1998Article ID: Q180762 |
The information in this article applies to:
SYMPTOMSWhen the Value property of a CommandButton is set to False and the SetFocus method of the CommandButton is executed, the CommandButton Value property is set to True.
RESOLUTIONSet the Value property of the CommandButton to False after the SetFocus method is called, as follows:
Private Sub Command2_Click() If Command1.Value = False Then Command1.SetFocus ' Set focus to Command1. Command1.Value = False ' Set the Value property back to False. MsgBox "Command1.Value = " & Command1.Value Else Command1.SetFocus 'Set focus to Command1. End If End Sub STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce Behavior
Keywords : vb5all vbce Version : WINDOWS:1.0 Platform : WINDOWS Issue type : kbbug Solution Type : kbpending |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |