PowerShell / .NET 4 GUI - Internal Windows Icons?

Let me preface this question by stating first that I am new to GUI interfaces: what is available, what cannot / cannot be done, etc. With that said, here we go!

I am writing a PowerShell gui using System.Windows.Form objects and wanted to find out if there are ICONS in any of the built-in libraries available on Windows that I can invoke programmatically so that I don’t need to manually create?

As an example, I want to add a little question mark "?" icons next to some of my fields that will resemble a tooltip with a mouse explaining the specifics of the x or y field.

Is there such a thing? If so, does anyone have a good document on which icons are available and how to call them in PowerShell? If not, does anyone have a solid job for what I'm describing?

Edit:

So, I learned how to do it. You use System.Drawing.SystemIcons and assign the called icon in the .Icon object of the object (if any).

form1.Icon = [System.Drawing.SystemIcons]::Question

I was hoping for something that I could use in any management, but I believe that it will work.

+3
source share
3 answers

Of course there is such a thing. I used it to create a MessageBox with the ability to select and copy text once. You are looking for the System.Drawing.SystemIcons class : http://msdn.microsoft.com/en-us/library/system.drawing.systemicons.aspx

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

+4

Windows ressource , Explorer.exe.

Windows NT 3.1 5.2 (W2K3 XP) :

C:\Windows\System32\Shell32.dll

Beginig NT 6.0 (Vista), :

C:\Windows\System32\Imageres.dll

Visual Studio ressources, .

0

, , - Webdings Wingdings. /SKU 2000 . , .

, , .

,

0

All Articles