-
Notifications
You must be signed in to change notification settings - Fork 983
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SystemIcons.GetStockIcon with StockIconId.Settings returns an empty, all-black icon #12447
Comments
@Zheng-Li01 did it repro in 9 and 10 too? |
This is as expected per the documentation: https://learn.microsoft.com/windows/win32/api/shellapi/ne-shellapi-shstockiconid#members There really isn't much we can do here as we're just giving back what Windows gives us. If they choose to put content there in the future we'll get it. |
@JeremyKuhne Wow! I had previously tried the API directly as well and got the empty icon too. I didn't realize it was documented on that page to return nothing!! 😱 |
Looks like Laptop icon is also empty, if anyone is reporting it. |
The Feedback Hub app in Windows is the place to report issues. |
.NET version
8.0.10
Tested on Windows 11 23H2 Build 22631.4391
Did it work in .NET Framework?
Not tested/verified
Did it work in any of the earlier releases of .NET Core or .NET 5+?
N/A
Issue description
Get an icon with
SystemIcons.GetStockIcon(StockIconId.Settings, StockIconOptions.SmallIcon)
The returned
Icon
is a black empty square - not an empty icon.This feature was implemented in #8802
Steps to reproduce
See attached project
WinFormsApp1.zip
The text was updated successfully, but these errors were encountered: