I have a desktop app that I need to have the canvas’ backdrop change whenever the listbox selected row changes.
It’s stored as an image blob in the sqlite table, and when the app loads it loads the image blob from the first record but that’s it. It doesn’t load other image blobs when another record is selected from the listbox.
I’m stumped. I would be grateful for suggestions to resolve my issue.
I do not have the image in the listbox, rather it is set to image column in the database, as are the other columns to their respective fields. I thought that since each row in the listbox is set to the record columns that the canvas backdrop would change as the other records but I’m wrong because it doesn’t. I have reports associated with the app and the images show there with no problem.
I’m stumped. I don’t know how to get the canvas backdrop to change with listbox selection. My brain is fried.
The listbox is not directly connected to the record columns. You copy the values from the record into the database, they are not linked. On listbox Change, you have to extract the database row ID from the listbox and look up the record again to retrieve the blob column.