Chopper1980 Posted April 13, 2004 Posted April 13, 2004 Hey all I have a listview box with search results from an SQL DBase included... the DB entries consist of 3 text and one data (which is an image) When I click on a search result in the listview box, i want the image from that entry to appear as a preview in a picture box located on the same form.... Any ideas? Cheers Quote
CattleRustler Posted April 14, 2004 Posted April 14, 2004 well you could associate the click event and the data in the item selected to set an image object, then set the picbox to the image object -the only thing I am not sure of is how to get the actual image data (is it stored in the db?) I am thinking of this from an existing image file perspective. Quote mod2software Home of the VB.NET Class Builder Utility - Demo and Full versions available now!
Chopper1980 Posted April 14, 2004 Author Posted April 14, 2004 yes, all the images are stored in the SQL server and all that appears in the ListView box are the names (from the title column of the DB) of the entries it finds... Quote
CattleRustler Posted April 15, 2004 Posted April 15, 2004 you probably have to rebuild the image from the db data using some sort of FromStream method. You may want to use the object browser and lookup the Image Object. Quote mod2software Home of the VB.NET Class Builder Utility - Demo and Full versions available now!
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.