By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,495 Members | 1,110 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,495 IT Pros & Developers. It's quick & easy.

Get File Icon

P: 36
Hi everybody, just joined and my first post:

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
Jan 8 '07 #1
Share this Question
Share on Google+
7 Replies


nico5038
Expert 2.5K+
P: 3,072
Why not use a table to store the attachments linked to the email before mailing.
Such a table can be shown as a subform and can hold icons when you want to.

Nic;o)
Jan 9 '07 #2

P: 36
Thanks Nico,

Actually after browsing the attachment automatically it saves to a temporary table.

From your suggestion about subform, could you explain further how to hold the icons?

TIA,
George




Why not use a table to store the attachments linked to the email before mailing.
Such a table can be shown as a subform and can hold icons when you want to.

Nic;o)
Jan 9 '07 #3

nico5038
Expert 2.5K+
P: 3,072
When you have an additional field for OLE objects you can store .bmp's and show these. (.jpg is a bit harder)

Nic;o)
Jan 9 '07 #4

P: 36
I see but this looks like a manual process or I have to hardcode the images.

Actually my last resort is to hardcode all the possible images/icons on the ImageList and after inserting the file trim the extension and insert the corresponding icon then if the extension not found then use a clip icon.

Still hoping....

Thanks,
George



When you have an additional field for OLE objects you can store .bmp's and show these. (.jpg is a bit harder)

Nic;o)
Jan 10 '07 #5

nico5038
Expert 2.5K+
P: 3,072
I've used several Icon editors that will allow the extraction of icons, even from .exe files. Might be a way to get the needed icons.

Nic;o)
Jan 10 '07 #6

P: 36
Appreciated if you could point where I can I download it. I hope its free =)

Thanks
George


I've used several Icon editors that will allow the extraction of icons, even from .exe files. Might be a way to get the needed icons.

Nic;o)
Jan 10 '07 #7

NeoPa
Expert Mod 15k+
P: 31,186
I hope this is the sort of thing you're after (Randy's Freeware Icon Editor).
Jan 12 '07 #8

Post your reply

Sign in to post your reply or Sign up for a free account.