yongyih
asked on
How to list files with icon? (like windows explorer)
I want to write a program that using winsock to connect two computer together.
The server side can browser the client side hard disk.
At the moment, i can list out all the files in listbox.
My question is
I would like to know how to add icon next to all the file name.
For example: data in list box
c:\windows
c:\test.txt
c:\text.doc
c:\joke.html
no necessary to use list box..
i want to display folder icon, text file icon, word icon and html icon next to those name.
as long as my windows can open those file, then my program will display its icon.
it is same as windows explorer.
please provide me the coding, thanks.
The server side can browser the client side hard disk.
At the moment, i can list out all the files in listbox.
My question is
I would like to know how to add icon next to all the file name.
For example: data in list box
c:\windows
c:\test.txt
c:\text.doc
c:\joke.html
no necessary to use list box..
i want to display folder icon, text file icon, word icon and html icon next to those name.
as long as my windows can open those file, then my program will display its icon.
it is same as windows explorer.
please provide me the coding, thanks.
see here to load the icons associated with a file:
http://www.vbsquare.com/api/tip289.html
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q241590&
CHeers
http://www.vbsquare.com/api/tip289.html
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q241590&
CHeers
ASKER
it will list icon based on which type of file or not??
i need code to retrieve icon for related file..
i need code to retrieve icon for related file..
ASKER
thanks for reply.. i try first..
Retrieving Both 16x16 and 32x32 Associated Icons Using SHGetFileInfo
http://www.mvps.org/vbnet/code/icon/icon1632simple.htm
http://www.mvps.org/vbnet/code/icon/icon1632simple.htm
nm, didn't see angel's post above...
there is a control somwhere at net that does exactly what you want but i can't remember the url...
i think it is:
http://www.mvps.org/btmtz/enumdeskvb/
http://www.mvps.org/btmtz/enumdeskvb/
ASKER
still trying... thanks for reply.
Also, when you get a chance, please maintain these open questions:
I want to know how to pass data between JFrame Date: 10/17/2001 06:56AM PST
https://www.experts-exchange.com/questions/20194481/I-want-to-know-how-to-pass-data-between-JFrame.html
Reading and Sending email using yahoo email account? Date: 07/02/2001 07:50AM PST
https://www.experts-exchange.com/questions/20144566/Reading-and-Sending-email-using-yahoo-email-account.html
How to draw 3D object using Java? Date: 06/28/2001 06:03PM PST
https://www.experts-exchange.com/questions/20143117/How-to-draw-3D-object-using-Java.html
Create exe file for Java Application. Date: 05/08/2001 08:46PM PST
https://www.experts-exchange.com/questions/20115229/Create-exe-file-for-Java-Application.html
What is interorganization network and organization network? Date: 04/04/2001 09:38PM PST
https://www.experts-exchange.com/questions/20101901/What-is-interorganization-network-and-organization-network.html
Thanks,
Anthony
I want to know how to pass data between JFrame Date: 10/17/2001 06:56AM PST
https://www.experts-exchange.com/questions/20194481/I-want-to-know-how-to-pass-data-between-JFrame.html
Reading and Sending email using yahoo email account? Date: 07/02/2001 07:50AM PST
https://www.experts-exchange.com/questions/20144566/Reading-and-Sending-email-using-yahoo-email-account.html
How to draw 3D object using Java? Date: 06/28/2001 06:03PM PST
https://www.experts-exchange.com/questions/20143117/How-to-draw-3D-object-using-Java.html
Create exe file for Java Application. Date: 05/08/2001 08:46PM PST
https://www.experts-exchange.com/questions/20115229/Create-exe-file-for-Java-Application.html
What is interorganization network and organization network? Date: 04/04/2001 09:38PM PST
https://www.experts-exchange.com/questions/20101901/What-is-interorganization-network-and-organization-network.html
Thanks,
Anthony
ASKER
i am busy these few days... i will try and let you guys know. sorry.. and thanks for reply. ^_^
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
When i run your project, i received an File not found 'sortascending.ico' error here..
Call ImageList_AddIcon(m_himl, LoadPicture("sortascending .ico"))
Call ImageList_AddIcon(m_himl, LoadPicture("sortdescendin g.ico"))
Call ImageList_AddIcon(m_himl, LoadPicture("sortascending
Call ImageList_AddIcon(m_himl, LoadPicture("sortdescendin
Do you have any intention of maintainging these open questions:
I want to know how to pass data between JFrame Date: 10/17/2001 06:56AM PST
https://www.experts-exchange.com/questions/20194481/I-want-to-know-how-to-pass-data-between-JFrame.html
Reading and Sending email using yahoo email account? Date: 07/02/2001 07:50AM PST
https://www.experts-exchange.com/questions/20144566/Reading-and-Sending-email-using-yahoo-email-account.html
How to draw 3D object using Java? Date: 06/28/2001 06:03PM PST
https://www.experts-exchange.com/questions/20143117/How-to-draw-3D-object-using-Java.html
Create exe file for Java Application. Date: 05/08/2001 08:46PM PST
https://www.experts-exchange.com/questions/20115229/Create-exe-file-for-Java-Application.html
What is interorganization network and organization network? Date: 04/04/2001 09:38PM PST
https://www.experts-exchange.com/questions/20101901/What-is-interorganization-network-and-organization-network.html
Anthony
I want to know how to pass data between JFrame Date: 10/17/2001 06:56AM PST
https://www.experts-exchange.com/questions/20194481/I-want-to-know-how-to-pass-data-between-JFrame.html
Reading and Sending email using yahoo email account? Date: 07/02/2001 07:50AM PST
https://www.experts-exchange.com/questions/20144566/Reading-and-Sending-email-using-yahoo-email-account.html
How to draw 3D object using Java? Date: 06/28/2001 06:03PM PST
https://www.experts-exchange.com/questions/20143117/How-to-draw-3D-object-using-Java.html
Create exe file for Java Application. Date: 05/08/2001 08:46PM PST
https://www.experts-exchange.com/questions/20115229/Create-exe-file-for-Java-Application.html
What is interorganization network and organization network? Date: 04/04/2001 09:38PM PST
https://www.experts-exchange.com/questions/20101901/What-is-interorganization-network-and-organization-network.html
Anthony
ASKER
hey acperkins, i am busy these few days.. that's why i only have time to reply this question.. no time to try the rest of link..
i will maintain other questions when i have time.
So, please stop sending this type of comment to me and spend your time to help the rest of people. thanks.
i will maintain other questions when i have time.
So, please stop sending this type of comment to me and spend your time to help the rest of people. thanks.
Yes but if you comment those lines, everuthing works fine.
Also, take the time to revie those questions that ACPerkins already told you.
It is in your best interest :)
Thanks for "A" grade.
Also, take the time to revie those questions that ACPerkins already told you.
It is in your best interest :)
Thanks for "A" grade.
ASKER
Sure i will maintains those questions..
thank you too.. at least you give me some solutions.. ^_^
thank you too.. at least you give me some solutions.. ^_^
Thank you for maintaining your open questions. Here are a couple that I believe you may have overlooked:
Problem related to VB and Crystal Report Date: 07/20/2002 02:24AM PST
https://www.experts-exchange.com/questions/20325818/Problem-related-to-VB-and-Crystal-Report.html
(If you wish to delete the above question, post a message in Community Support)
Problem related to VB and Crystal Report. Date: 07/17/2002 03:52AM PST
https://www.experts-exchange.com/questions/20324308/Problem-related-to-VB-and-Crystal-Report.html
Thanks,
Anthony
Problem related to VB and Crystal Report Date: 07/20/2002 02:24AM PST
https://www.experts-exchange.com/questions/20325818/Problem-related-to-VB-and-Crystal-Report.html
(If you wish to delete the above question, post a message in Community Support)
Problem related to VB and Crystal Report. Date: 07/17/2002 03:52AM PST
https://www.experts-exchange.com/questions/20324308/Problem-related-to-VB-and-Crystal-Report.html
Thanks,
Anthony
ASKER
i am still waiting answer for these two questions...(actually is same problem)
if still no answer, i will accept the first question and delete the one in crystal report section.
do you have any idea to solve that question?
if still no answer, i will accept the first question and delete the one in crystal report section.
do you have any idea to solve that question?
Use list view instead of list box which supports images with every item in list view.