General information
Category:
Forms & Form designer
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.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only