PRB: Disabled ComboBox Item DisappearsID: Q134243 The information in this article applies to:
SYMPTOMSDisabling a ComboBox list item by using the This.List(This.ListItemId)='\' method causes the disabled item to disappear when the RowSourceType is either STRUCTURE or VALUE.
RESOLUTIONUse the following statement, and ensure that the DisabledItemForeColor and DisabledItemBackColor properties display the item properly:
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 BehaviorExample One: 1. Create a Form with a combo box (with a style of DropDown Combo). 2. In the DblClick method of the combo box, place this code:
3. In the RowSource for the combo box, place this code:
4. In the RowSourceType for the combo box, select 8 - STRUCTURE.
5. Run the Form, and select an item on the list. When the item appears in Example Two:
1. In the DblClick method of the combo box, place this code:
2. Rerun the Form. The disabled item remains visible with the
Additional reference words: 3.00 VFoxWin OOP
KBCategory: kbprg kbprb
KBSubcategory: FxprgGeneral
|
Last Reviewed: August 3, 1995 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |