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.

--
____________________________
Carlos Sosa Albert

Re: Use an icon inside a WinForm? by Herfried

Herfried
Mon Oct 01 13:30:06 PDT 2007

"Carlos Sosa Albert" <betun (arroba) hotmail> schrieb:
> 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.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>


Re: Use an icon inside a WinForm? by betun

betun
Wed Oct 03 11:03:02 PDT 2007

Thanks a lot, Herfried, Icon.ToBitmap() works great! =)

--
____________________________
Carlos Sosa Albert


"Herfried K. Wagner [MVP]" wrote:

> "Carlos Sosa Albert" <betun (arroba) hotmail> schrieb:
> > 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.
>
> --
> M S Herfried K. Wagner
> M V P <URL:http://dotnet.mvps.org/>
> V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
>
>