PRB: CommandButton Does Not Affect Visible PropertyLast reviewed: January 21, 1997Article ID: Q162441 |
The information in this article applies to:
SYMPTOMSAttempting to set the Visible property of a Container from the Click event of a CommandButton inside a Container that contains a ComboBox causes unusual behavior. If you choose something from the ComboBox and click directly on the CommandButton, the Container disappears but the CommandButton remains. The CommandButton is now inactive. You can change the Visible property of the Container from a CommandButton located outside the Container without difficulty.
RESOLUTIONAs a workaround, add the following command as the first line of code in the LostFocus event of the ComboBox:
ThisForm.Command1.SetFocus STATUSMicrosoft is researching this behavior and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATION
Steps to Reproduce Behavior
|
KBCategory: kbprg kbprb
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |