Geotinc
Geotinc

Reputation: 289

How can I get printers icons in c#

Can anybody tell me how can i get the icon of PrintQueue object (like in explorer) in C#. I get the list of all printers with this code :

LocalPrintServer PrintServer = new LocalPrintServer(); PrintQueueCollection PrintQueuesOnLocalServer = PrintServer.GetPrintQueues(new[] { EnumeratedPrintQueueTypes.Local, EnumeratedPrintQueueTypes.Connections });

Thanks in advance NeoKript

Upvotes: 2

Views: 2422

Answers (3)

Surfbutler
Surfbutler

Reputation: 1528

Here you go: http://msdn.microsoft.com/en-us/library/ms247035.aspx (Visual Studio Image Library collection of icons freely usable in your app).

'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'.

Upvotes: 2

Felice Pollano
Felice Pollano

Reputation: 33262

If you want an operating system icon you should try open shell32.dll ( or try with other dll in system ) as a resource file with Visual Studio, you should find the icons there, but I don't know if you can use in your application. Here a screenshot on opening a dll as a resources: enter image description here and here what you obtain:

enter image description here

Of course you have to try open the icon one by one to look for the one you need, maybe you want the one called 17 ?

enter image description here

Upvotes: 2

Bali C
Bali C

Reputation: 31241

Most of the system icons are embedded resources in the system dll files.

Try looking in shell32.dll.

You can use the list here to find the icons that you want to use.

Upvotes: 0

Related Questions