Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Toggle cmdbutton on/off
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00114609
Message ID:
00114626
Views:
17
Timothy,

Why not use a Checkbox (chkEnabler), set it's value to .T. or .F. depending on the initial state you want the cbo, make it a Style=Graphical. This way the user will have some visual cue about the system state.

Then code the cbo.When:

return this.parent.chkEnabler.Value

If you want the cbo to disappear you could do that in the chkEnabler.InteractiveChange.

>Hi, I have a cmdbutton that activates a combobox. Iwas hoping to have the said cmbbutton toggle the combobox on/off when clicking the cmdbutton, and although all my code is there, it does not work. hmmm.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform