Thread View: comp.lang.basic.visual.misc
2 messages
2 total messages
Started by Lukas Casar
Tue, 16 Sep 1997 00:00
ImageMDB
Author: Lukas Casar
Date: Tue, 16 Sep 1997 00:00
Date: Tue, 16 Sep 1997 00:00
10 lines
1648 bytes
1648 bytes
Problem : ImageMDB I want to store pictures in MDB. I want them to be used in a treeview or listview - I have some structured information stored in MDB (including icons) and I want to display it in treeview. Everyone is telling me, that I can display images only in OLE container control, but it doesn't have a picture property, so how can I get those pictures, when stored in MDB ??? I'm using VB5.0 Enterprise, Access97 and RDO. Thanks, Lukas PS : Please reply to CASAR@INTEGIA.CZ, I don't read news often...
Re: ImageMDB
Author: Joel Paula
Date: Wed, 17 Sep 1997 00:00
Date: Wed, 17 Sep 1997 00:00
31 lines
2434 bytes
2434 bytes
You can use the GetChuck, etc. methods to save any binary file (byte, by byte) to a Memo or OLE field. You can't use access to store the images, otherwise your only option is to use the OLE Container control and the Data Control. When you want to get the binary file from the field, you use GetChunk and save the binary file to a temporary disk file, then use that disk file as you will, e.g.: use LoadPicture with the file. HTH -- _____________________ JOEL PAULA "why he did not crane out to see what lay beneath was perhaps because the window was not made to open or because he could or would not open it." - Samuel Beckett - "stirrings still" Lukas Casar <casar@integia.cz> wrote in article <341E8E93.5F7F@integia.cz>... > Problem : ImageMDB > I want to store pictures in MDB. I want them to be used in a treeview or > listview - I have some structured information stored in MDB (including > icons) and I want to display it in treeview. Everyone is telling me, > that I can display images only in OLE container control, but it doesn't > have a picture property, so how can I get those pictures, when stored in > MDB ??? I'm using VB5.0 Enterprise, Access97 and RDO. > Thanks, Lukas > PS : Please reply to CASAR@INTEGIA.CZ, I don't read news often... >
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads