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
You can make your own control
Which might be the best way
So there is actually no control in VS that handles .ICO files? I used to use icons all the times in my apps...
No
At least none that I know of.
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.
Oh, nice!