Dec 27, 2000 #1 FaisalHenry Programmer Joined Dec 19, 2000 Messages 32 Location US is there a way to load icon files (*.ico) from a database to imagelist instead of hardcoding them using loadpicture?
is there a way to load icon files (*.ico) from a database to imagelist instead of hardcoding them using loadpicture?
Dec 28, 2000 #2 swilliams Programmer Joined Aug 23, 2000 Messages 583 Location BM Read the image paths into a variable (sIconPath, say), and then do LoadPicture sIconPath Simon Upvote 0 Downvote
Jan 1, 2001 Thread starter #3 FaisalHenry Programmer Joined Dec 19, 2000 Messages 32 Location US ok, so if my database structure is like this: PictureName|thePicture myicon (BLOB file)--> the icon, BLOB type i changed it to someting like this PictureName|thePicture myicon c:\database\icons\myicon.ico --> string type and do a loop while not rsPicture.EOF sPath = rsPicture.fields("thePicture".value loadpicure sPath rsPicture.Next Wend is this what you are suggesting ? Upvote 0 Downvote
ok, so if my database structure is like this: PictureName|thePicture myicon (BLOB file)--> the icon, BLOB type i changed it to someting like this PictureName|thePicture myicon c:\database\icons\myicon.ico --> string type and do a loop while not rsPicture.EOF sPath = rsPicture.fields("thePicture".value loadpicure sPath rsPicture.Next Wend is this what you are suggesting ?
Jan 2, 2001 #4 swilliams Programmer Joined Aug 23, 2000 Messages 583 Location BM You may have to change the line loadpicture sPath, but that is essentially what I am talking about. Simon Upvote 0 Downvote
You may have to change the line loadpicture sPath, but that is essentially what I am talking about. Simon