getting 16x16 icon from icon file

B

Brian Henry

I have icons which contain 16x16, 24x24, and 32x32 icons in the single file
and it is embedded as a resource... I need to get a 16x16 icon only out of
it, how would i go about doing that? ive tried this

Dim ico As Drawing.Icon = New
Drawing.Icon(GetType(bdbGeneral).Assembly.GetManifestResourceStream("bdb.plugin.ico"))

Dim icoMyIcon As Drawing.Icon = New Drawing.Icon(ico,
SystemInformation.SmallIconSize)



and it returns a 32x32 icon shrinked down to 16x16... which doesnt look
correct, its blured and such, and i put markers on the 16x16 icon to tell if
it was the right one, and they did not show up so i know it did not select
the correct icon... how do i get it out and use it as a icon? thanks!
 

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