How to Disable Combo and List Boxes in Wizard-Generated Forms (138560)
The information in this article applies to:
- Microsoft Visual FoxPro 8.0
- Microsoft Visual FoxPro for Windows 7.0
- Microsoft Visual FoxPro for Windows 3.0
This article was previously published under Q138560 SUMMARY
When the Form Wizard builds a form, it creates the form so that when the
form runs, the objects that hold data are disabled. Clicking the Edit
button enables the objects and allows editing of the information. However,
if controls other than check boxes, text boxes, or OLE-bound controls are
added to the form, they are enabled, not disabled, when the form is run.
This article shows you how to disable controls such as combo boxes and list
boxes so that they are disabled when the form runs and enabled when the
Edit button is clicked. The code that controls which objects are disabled
or enabled is located in the Wizstyle.vcx form. The combo and list boxes
were not included in that code, but you can modify the code to include the
combo and list boxes.
Modification Type: | Minor | Last Reviewed: | 6/28/2004 |
---|
Keywords: | kbListBox kbwizard kbForms kbComboBox kbControl KB138560 |
---|
|