I use Imaging.CreateBitmapSourceFromHIcon method to convert Icon to BitmapSource: private static System.Windows.Media.ImageSource loadWpfImageSource(Icon icon, Size size) { if (icon != null) { return Imaging.CreateBitmapSourceFromHIcon(icon.Handle, Int32Rect.Empty, BitmapSizeOptions.FromEmptyOptions()); } return null; } At one of my client's computer Imaging.CreateBitmapSourceFromHIcon throws the next COMException: System.Runtime.InteropServices.COMException (0x8007057A): Wrong pointer descriptor. (Exception from HRESULT: 0x8007057A) [...] read more
I opened the PC in the morning, and this is what I got: Desktop [https://i.stack.imgur.com/5sTv6.jpg] This PC [https://i.stack.imgur.com/bEqj9.png] Start Menu [https://i.stack.imgur.com/mL7dS.png] Control Panel-A [https://i.stack.imgur.com/1aDVk.png] Control Panel-B [https://i.stack.imgur.com/NkM7L.png] As is visible the icons of the UWA apps were no affected and the start menu also is unaffected. When Control Panel is [...] read more
In my C# Winforms application I'm using the ITaskbarList3::SetOverlayIcon interface to set status overlays on the application's taskbar button (under Windows 7). This all seems to work fine for me, with the icons being shown and removed correctly. From the form load event, one of my functions makes the call [...] read more