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.
source
share