Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Try putting that select/addlistitem code in the init event of the list box. Then, in the click event of the combo box, call out the list box init event. That should take care of the refresh problem. You'll have to do something about the initial (so to speak) choices in the list box (all, nothing or something in between), possibly by passing a parameter to it so it knows whether it's populating the listbox for the first time or not. You should also get rid of that code everywhere else, in case it ever has to be changed.
>Thanks for the suggestion, but I tried it, and still no joy (the list box is not updated until I click on it).
>By the way, I have the code in the following places: Init and Click method of the form, GotFocus of the list box, and Init and InteractiveChangeEvent of the combo box (except in the latter I refresh only formverlist). I also tried changing thisform.refresh to thisform.formverlist.refresh everywhere with no visible change in effect.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement