Solved

Icon Overlay Handler Wrapper in C#

Posted on 2014-03-01
12
1,445 Views
Last Modified: 2016-08-29
Hello,

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  ?

thanks

Kalpesh
0
Comment
Question by:Kalpesh Chhatrala
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
  • 2
  • +1
12 Comments
 
LVL 40
ID: 39897794
Define what you mean by an icon "Overlay"? Where do you want to display that icon?
0
 
LVL 16

Author Comment

by:Kalpesh Chhatrala
ID: 39897803
i attached screenshot here with,

Overlay Icon ScreenshotFile Overlay Icon like DropBox, OneDrive, etc..
0
 
LVL 40
ID: 39897830
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
0
Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
ID: 39897987
0
 
LVL 16

Author Comment

by:Kalpesh Chhatrala
ID: 39900289
@CodeCruiser:

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.
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 39900428
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.
0
 
LVL 16

Author Comment

by:Kalpesh Chhatrala
ID: 39900605
I want to read Target Folder Name from Registry. is it possible ?
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 39900707
Which target folder is that? You can add keys to register and read back if you want to use it to store settings.
0
 
LVL 16

Author Comment

by:Kalpesh Chhatrala
ID: 39900775
Folder Issue Solved.

How can we  set  2 different Overlay Icon using File Attributes. (1 Icon for Waiting for upload, 2nd Icon for Uploaded) ?
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 39902910
That's a new question then.
0
 
LVL 16

Author Closing Comment

by:Kalpesh Chhatrala
ID: 39902946
Thanks for your Help.
0
 

Expert Comment

by:Sourabh Saini
ID: 41774581
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
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question