Solved

IShellIconOverlay in VB.NET

Posted on 2009-06-29
1
643 Views
Last Modified: 2013-11-26
Hello,

Can you give me an example code how to use IShellIconOverlay in VB.NET ?

(I need to get the index of overlay icon in system image list.)
0
Comment
Question by:JiriNovotny
1 Comment
 
LVL 39

Accepted Solution

by:
abel earned 500 total points
ID: 24743048
Instead of using the interface, Microsoft suggests you use the SHGetIconOverlayIndex function instead: http://msdn.microsoft.com/en-us/library/bb762183(VS.85).aspx, which is quite straightforward to use.

Here's the C# signature: http://www.pinvoke.net/default.aspx/shell32/SHGetIconOverlayIndex.html

It translates to this in VB:
<DllImport("shell32.dll")> _Private Shared Function SHGetIconOverlayIndex(pszIconPath As String, iIconIndex As Int32) As System.Int32

-- Abel --
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Code works but it's slow 28 71
Javascript to set controls visibility 5 38
Sql server insert 13 31
Write to a printer using vb.net 9 30
This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.

803 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