General information
Title:
Very strange problem with controlsource of combobox
We created a combobox class that automatically sizes itself and so on based upon its content. It also uses the tooltip property to display to the user the description of the currently selected value when moused-over.
This control is used widely on many forms and up to this point had been working perfectly. BTW, it still worked perfectly on forms where it had already been placed.
All of a sudden, the control appeared to no longer be bound to its' controlsource. This only occurred, however, for newly instantiated objects of this class.
We spent endless hours trying to see what the problem was, but came up empty.
Finally, using debugger, I decided to merely retype the controlsource value in the locals window for the object. Upon pressing enter, the display value appeared and showed the proper value based on the controlsource.
In the Init() of the class, I simply added the following line:
This.ControlSource = This.ControlSource
and everything is now fine (again)!
Has anyone ever seen anything this strange?
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