Use an icon inside a WinForm?

G

Guest

I'd say it's a dumb question... But so far I haven't been able to find a way:
I have some .ico... is there a way to use it INSIDE a WinForm? Like a simple
bitmap, but choosing which resolution (index) I want to display?

Thanks a lot.
 
H

Herfried K. Wagner [MVP]

Carlos Sosa Albert said:
I'd say it's a dumb question... But so far I haven't been able to find a
way:
I have some .ico... is there a way to use it INSIDE a WinForm? Like a
simple
bitmap, but choosing which resolution (index) I want to display?

Take a look at the 'Icon' class and its constructors and the
'IconBitmapDecoder' class.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top