C
C#7mo ago
Silver Black

Control for showing icons (.ICO files) (WinForms .Net 8)

I'm an old Delphi developer that recently is enjoying the passage to .Net and C#. I was used to have a Picture/Image control that allowed me to use image files like PNG, JPEG, BMP, ICO, etc. But now I see that in VS Community 2022 the control Picture does not accept ICO files. Are there other controls/methods to show icons on a form?
5 Replies
Buddy
Buddy7mo ago
You can make your own control Which might be the best way
Silver Black
Silver BlackOP7mo ago
So there is actually no control in VS that handles .ICO files? I used to use icons all the times in my apps...
Buddy
Buddy7mo ago
No At least none that I know of.
Silver Black
Silver BlackOP7mo ago
OK thank you. Maybe I'll do my own control then, as you said. I think I found a way: when selecting the image of the PictureBox control, just select "All files" in the filter combobox of the open dialog box and it's done, the ICO is imported and shown as a PNG or any other file.
Buddy
Buddy7mo ago
Oh, nice!
Want results from more Discord servers?
Add your server