473,406 Members | 2,439 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Get File Icon

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
7 3332
nico5038
3,080 Expert 2GB
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
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
3,080 Expert 2GB
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
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
3,080 Expert 2GB
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
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
32,556 Expert Mod 16PB
I hope this is the sort of thing you're after (Randy's Freeware Icon Editor).
Jan 12 '07 #8

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

Similar topics

4
by: Mehdi Mousavi | last post by:
Hi, I need to know how to extract a specific icon (32x32 for instance) from an icon file that contains more than one icon size? Any help would be highly appreciated, Cheers. Mehdi
1
by: Víctor | last post by:
I'm doing a kind of file explorer with some additional funcionalities. The problem is that I'm not able to draw file extension icons in a ListView. I know how obtain icons, but when I try to draw...
3
by: Giuseppe Pezzella | last post by:
Hi In Windows every file have yours icon, so: how I get them ( Extension and Icon) and save in a imageList for use later in a ListView? In VB6 was SHGetFileInfo. In VB.NET? How I can...
6
by: Lou | last post by:
How do i get an icon from a resourse file Dim IC As New Icon(Icon, "mnu_file_open") That doesn't work?
5
by: IcingDeath via DotNetMonster.com | last post by:
I am building this SQL Server database app in which i can store files. In order to display files I want to have the app show the associated icon for the extension of the file that is in the...
3
by: Jason Barnett | last post by:
When trying to save an image as an icon, I've used the following line of code (img is an System.Drawing.Image)... img.Save("C:\output.ico", ImageFormat.Icon) The files saves without an error,...
4
by: Peter Larsen | last post by:
Hi, I want to be able to show a file browser embedded on a form - a browser which is similar to the browser you get by SHBrowseForFolder(). Is that possible ? Thank you in advance. BR Peter...
1
by: Rich | last post by:
Hello, I have created icons before with icon editor that comes with VS2003 without any issues. Today I created another icon for my VB.Net app. But this .ico file is not displaying the figure...
0
by: Waqas.L.Khan | last post by:
Hi guys, I have a problem when trying to create an image file. Basically my code takes any file and gets it's system icon using SHGetFileInfo and then saves the file either by converting it into...
1
by: =?Utf-8?B?U3RldmVU?= | last post by:
I have a structure that contains both 32x32 and 16x16 icons plus some text. I want to write all this to an XML file so that I can recover the icons later in an application. Can someone tell me how...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.