Reputation: 289
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
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
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:
and here what you obtain:
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 ?
Upvotes: 2