Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disabling ComboBox When No Data
Message
De
09/10/2007 13:17:45
 
 
À
09/10/2007 13:13:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
01259788
Message ID:
01259797
Vues:
14
>>>I am creating a parent ComboBox class. I want it to automatically disable when nothing is in the combobox; in other words,
>>>
>>>ComboBox.Enabled = (ComboBox.ListCount > 0)
>>>
>>> I have tried putting the above code into the When, Requery, Refresh, ListCount_Access, ProgrammaticChange, and other methods, but nothing seems to work. None of them fire when the ListCount changes.
>>> How can I get it to enable/disable whenever the ListCount changes?
>>>
>>>Jerry
>>
>>ListCount_Assign?
>
>Nah, I just tried that. Doesn't fire probably because it's a read-only property.

I just tried it also :-)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform