By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,219 Members | 2,361 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,219 IT Pros & Developers. It's quick & easy.

getting 16x16 icon from icon file

P: n/a
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.GetManif estResourceStream("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!


Nov 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
"Brian Henry" <no****@nospam.com> schrieb:
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


..NET Icon Explorer
<URL:http://vbaccelerator.com/article.asp?id=4567>

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

Nov 21 '05 #2

P: n/a
This ones much simpler to follow:
http://www.codeproject.com/dotnet/MultiIcon.asp

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:eZ**************@TK2MSFTNGP12.phx.gbl...
"Brian Henry" <no****@nospam.com> schrieb:
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


.NET Icon Explorer
<URL:http://vbaccelerator.com/article.asp?id=4567>

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

Nov 21 '05 #3

P: n/a
thanks, that one definatly is much simplier
"Mick Doherty"
<EX***********@AND.REMOVE.SQUAREBRACKETS.[mdaudi100#ntlworld.com]> wrote in
message news:u1**************@TK2MSFTNGP09.phx.gbl...
This ones much simpler to follow:
http://www.codeproject.com/dotnet/MultiIcon.asp

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:eZ**************@TK2MSFTNGP12.phx.gbl...
"Brian Henry" <no****@nospam.com> schrieb:
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


.NET Icon Explorer
<URL:http://vbaccelerator.com/article.asp?id=4567>

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


Nov 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.