Icon Overlay Handler Wrapper in C#


I need Icon Overlay Handler Wrapper in c# for File Snycronization (1 Icon for Syncing, 1 Icon for Synced). If I copy one file in specified folder then it will show Syncing Icon and After Sync Completed icon need to change to Synced. (e.g. DropBox Icons)

can anybody help me in this issue  ?


LVL 16
Kalpesh ChhatralaSoftware ConsultantAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jacques Bourgeois (James Burger)PresidentCommented:
Define what you mean by an icon "Overlay"? Where do you want to display that icon?
Kalpesh ChhatralaSoftware ConsultantAuthor Commented:
i attached screenshot here with,

Overlay Icon ScreenshotFile Overlay Icon like DropBox, OneDrive, etc..
Jacques Bourgeois (James Burger)PresidentCommented:
They either developped their own application or a Shell for the application in which you take that screenshot.

A Shell is a program that runs inside one of the Windows own program, such as  Windows Explorer, to provide a custom display of the file system. The assembly cache (C:\Windows\assembly) is such a Shell.

I do not think that there are classes in the framework to do so, and all the code I have ever seen is in C++, the langage in which most of Windows is programmed.

If you are curious about the subject, give a look at http://msdn.microsoft.com/en-us/library/ms940133(v=winembedded.5).aspx
Introduction to R

R is considered the predominant language for data scientist and statisticians. Learn how to use R for your own data science projects.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Kalpesh ChhatralaSoftware ConsultantAuthor Commented:

Thanks for your help.

I used your link. its working fine with small issue.

its display quite large.  i tried various size icon (e.g. 16x16) but it stretched.

how can we reduce icon size in overlay ?

Overlay Icon Sample.
In the article, there is following paragraph

You may choose to design your own icons using a specialised icon editing
tool such as IconFX. Icons used for an overlay should ideally be a multi-image icon, with 256×256, 64×64, 48×48, 32×32, 24×24 and 16×16 images imbedded. The operating system will select the image of the most suitable resolution (i.e. 16×16 may be used in tree and the list views, whereas 64×64 imbedded icon will be used when the Extra Large Icons viewing option is selected):

So the operating system selects the icon size automatically.
Kalpesh ChhatralaSoftware ConsultantAuthor Commented:
I want to read Target Folder Name from Registry. is it possible ?
Which target folder is that? You can add keys to register and read back if you want to use it to store settings.
Kalpesh ChhatralaSoftware ConsultantAuthor Commented:
Folder Issue Solved.

How can we  set  2 different Overlay Icon using File Attributes. (1 Icon for Waiting for upload, 2nd Icon for Uploaded) ?
That's a new question then.
Kalpesh ChhatralaSoftware ConsultantAuthor Commented:
Thanks for your Help.
Sourabh SainiCommented:
Hello  Kalpesh,

 i am sourabh  , i am facing same problem sir,can u send some code for rectify this problem.

my problem is  that i wont to right click on file  or folder and my  icon file  add on this  file or folder.
is it possible to send me to code to rectify the problem.

thank Kalpesh
rajrip pCommented:
Hi Kalpesh,

The link which helped you is no longer there.

can you please send an example code to add overlay icons over files.

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.