Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
I have a class that creates a form with a listbox on it. It has a function that can be called to update the listbox. This form is intended to be a visual indicator to the user about the current processing that is happening. The issue is with displaying the messages added to the listbox. I have a class that is instantiated from a commandbutton on a form and within that class I instantiate my status class and pass text status messages to update the listbox and give the user some visual feedback to the processing that is going on. The issue is I cannot get the listbox to display the updates immediately unless I add a 'wait window "" noclear timeout .001' after I pass the status message to the status class method. I've tried DOEVENTS and changing the application.autoyield property as well as refreshing the form and requerying the listbox. Only putting in the wait window to give a slight pause seems to work. any ideas?
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