General information
Category:
Forms & Form designer
>I have a listbox on a form, data supplied by 2 fields: descr, id . BoundColumn - 2. Control Source: Thisform.nID . BoundTo = .T. as I want the id number stored as the form property and not the index number of the chosen line.
>
>When I select a row in the listbox it highlights but as soon as the mouse is released the highlight clears. If I set BoundTo = .F. the behaviour is as I would like i.e. the selected row in the listbox remains highlighted.
>
>Any idea what I am doing wrong?
I like to use properties as ControlSources, but over the years, I have run into issues with lists and combos when I do so. I can't say for sure, but this may be one of them.
Try getting rid of the ControlSource and adding code to Valid to keep your property in synch.
Tamar
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