mainrotor
asked on
I need help displaying images in a ListBox control in my WPF application with VB.Net code-behind.
Good Morning Experts,
I need help displaying images in a ListBox control in my WPF application with VB.Net code-behind.
I have SQL database table with 2 columns. 1st column has the ImageID, the 2nd has the image as binary.
I already have a function that converts the binary to an image.
I load both columns into a dataset.
1. I now want to loop through my dataset and load the imageid field and image into my ListBox control.
2. I only want my image to display in the listbox, but
2. when I click on an image I want to retrieve the imageid from the selected row and display it in a textbox. How can I do this?
Thanks in advance for your help,
mrotor
I need help displaying images in a ListBox control in my WPF application with VB.Net code-behind.
I have SQL database table with 2 columns. 1st column has the ImageID, the 2nd has the image as binary.
I already have a function that converts the binary to an image.
I load both columns into a dataset.
1. I now want to loop through my dataset and load the imageid field and image into my ListBox control.
2. I only want my image to display in the listbox, but
2. when I click on an image I want to retrieve the imageid from the selected row and display it in a textbox. How can I do this?
Thanks in advance for your help,
mrotor
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.