Get File Icon

G

George Oro

What I'm trying to do is to have an insert attachment facility in my
mailing
software like MsOutlook or Outlook Express that shows the File Name,
File
Size and respective Icon. So far by using the ListView & ImageList
Control I
managed to get and view the File Name and Size. I browsed the whole day
and
only using the PictureBox as far I can see will get the respective Icon
and
add to the ImageList but the problem is MsAccess doesn't support
Picturebox
object.

Any tips would be really greatly appreciated.


TIA,
George
 
D

Douglas J. Steele

You should be able to adapt the example Randy Birch has at
http://vbnet.mvps.org/code/comctl/lvdemo4.htm

Obligatory warning: Randy's site is aimed at VB programmers. There are
significant differences between the controls available for forms in VB and
in Access, so some of Randy's examples don't port directly to Access.
Depending on what version of Access, you're using, you may run into problems
loading the combo box in his example. Regardless of what version of Access
you have, you won't be able to use a control array for the command buttons.
 
G

George Oro

Thanks Douglas,

I read the code and the same logic from what I have in VB. It used the
PictureBox object to get the image. In VB is a very straight forward
process but access doesn't support PictureBox.

www.lebans.com have some sample to act like PictureBox but I can't
adapt from my requirements. I appreciate if someone could check it.

TIA,
George
 
D

Douglas J. Steele

Sorry: I missed the fact that it used a PictureBox: I thought it was a
built-in property of the ListView.

I'd be very surprised if it were possible in Access then.
 
G

George Oro

No worries, I hope so.

Im sure theres a workaround and www.lebans.com already started so Im
sure he can do something about this so I have get his attention.

My apologize for putting his name on the subject.

Regards,
George
 
G

George Oro

Thank you for paying attention to my post.

I had search a lot but no luck. I will try to search again as you
suggested (Focus On LoadPicture) but I really appreciate if you could
do some workaround with this and difenitely lot of Access developer
will like it.

Regards,
George
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top