Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Working with system icons in C# application

Tags:

windows

icons

Where can I find all system icons used in Windows XP/Vista/7? Is it possible?

I tried using SHGetStockIconInfo(), but it returns only some icons.

like image 906
The Mask Avatar asked Jan 19 '12 18:01

The Mask


2 Answers

For Windows 7 you can find many of the icons here:

%SystemRoot%\system32\DDORes.dll
%SystemRoot%\system32\imageres.dll
%SystemRoot%\system32\shell32.dll

I wouldn't recommend extracting them and using them though as that would be a copyright violation I think.

You can get a whole bunch of windows images within Visual Studio as explained here:

http://msdn.microsoft.com/en-us/library/ms246582.aspx

The Visual Studio 2010 Image Library contains application images that appear in Microsoft Windows, the Office system, Microsoft Visual Studio, and other Microsoft software. You can use this set of over 1,000 images to create applications that look visually consistent with Microsoft software.

EDIT:

Requested Visual Studio 2008 version:

http://msdn.microsoft.com/en-us/library/ms246582(v=vs.90).aspx

And for completeness the Visual Studio 2005 version:

http://msdn.microsoft.com/en-us/library/ms246582(v=vs.80).aspx

like image 127
Kelsey Avatar answered Oct 22 '22 07:10

Kelsey


Without specifying exactly which icons you're talking about, there is a SystemIcons class in the System.Drawing namespace.

like image 7
Brandon Avatar answered Oct 22 '22 07:10

Brandon