assigning property to multiple controls
Posted on 2014-01-22
I setup a list box on my form, and if my query returns values, I want it to be visible, otherwise not.
This is working fine.
So I thought, I'll add my buttons into the logic, but instead of duplicating code and setting them true/false within my if/then logic, I figured I would wait until the end of the routine and set their Visible property to the value of the listbox's visible property.
Lo and behold, they did not appear. Stepping through the code, even at the point the list box should be made visible, it's still showing that that value is False (yet the list box show - and the buttons do not).
Seemed like a logical approach to me...what am I missing?