<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Icon from an Executable</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Icon from an Executable]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 12 Jun 2026 03:52:15 +0000</pubDate>
  <lastBuildDate>Mon, 03 Nov 2008 08:29:46 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=12447</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Icon from an Executable : Hi  That&amp;#039;s really great....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12447&amp;PID=42594&amp;title=icon-from-an-executable#42594</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3092">Boris</a><br /><strong>Subject:</strong> 12447<br /><strong>Posted:</strong> 03 November 2008 at 8:29am<br /><br />Hi<DIV>&nbsp;</DIV><DIV>That's really great. Thanks Oleg.</DIV><DIV>&nbsp;</DIV><DIV>Regards</DIV>]]>
   </description>
   <pubDate>Mon, 03 Nov 2008 08:29:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12447&amp;PID=42594&amp;title=icon-from-an-executable#42594</guid>
  </item> 
  <item>
   <title><![CDATA[Icon from an Executable : Hello,  for next version added...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12447&amp;PID=42591&amp;title=icon-from-an-executable#42591</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12447<br /><strong>Posted:</strong> 03 November 2008 at 8:26am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>for next version added LoadIconfromResource for this case.</DIV>]]>
   </description>
   <pubDate>Mon, 03 Nov 2008 08:26:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12447&amp;PID=42591&amp;title=icon-from-an-executable#42591</guid>
  </item> 
  <item>
   <title><![CDATA[Icon from an Executable :  Hi Oleg. Thanks for your reply....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12447&amp;PID=42582&amp;title=icon-from-an-executable#42582</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3092">Boris</a><br /><strong>Subject:</strong> 12447<br /><strong>Posted:</strong> 03 November 2008 at 3:49am<br /><br /><DIV><FONT size=2><P></FONT>Hi Oleg. Thanks for your reply. Your suggestion wouldn't work for me. I have since found out that the Icon class in VB.net does not support the alpha colours. I did find though that converting to a bitmap somehow works.</P><DIV><FONT size=2><FONT size=2><P></FONT><FONT color=#0000ff size=2>Dim</FONT><FONT size=2> bmp </FONT><FONT color=#0000ff size=2>As</FONT><FONT size=2> Bitmap</P></FONT>bmp = Icon.ExtractAssociatedIcon(</FONT><FONT color=#a31515 size=2>"C:\Windows\system32\mstsc.exe"</FONT><FONT size=2>).ToBitmap</DIV></DIV><P>bmp.Save(GetAppPath() &amp; </FONT><FONT color=#a31515 size=2>"mstsc.bmp"</FONT><FONT size=2>)</P><P>ImageManager1.Icons.LoadBitmap(GetAppPath() &amp; </FONT><FONT color=#a31515 size=2>"mstsc.bmp"</FONT><FONT size=2>, ID_CONNECT_RDC, XtremeCommandBars.XTPImageState.xtpImageNormal)</P><DIV></DIV><P>What I haven't been able to do is to capture the image without saving it first so alhough not perfect it works. It would be nice if you were to include an extract icon method that worked in your next release seeing as VB.Net doesn't support it.</P><DIV></DIV><DIV></DIV>Regards</FONT>]]>
   </description>
   <pubDate>Mon, 03 Nov 2008 03:49:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12447&amp;PID=42582&amp;title=icon-from-an-executable#42582</guid>
  </item> 
  <item>
   <title><![CDATA[Icon from an Executable : Hi,  Add bolded lines to your...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12447&amp;PID=42076&amp;title=icon-from-an-executable#42076</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12447<br /><strong>Posted:</strong> 16 October 2008 at 3:35pm<br /><br /><P>Hi,</P><DIV>&nbsp;</DIV><DIV>Add bolded lines to your Main method:</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#0000ff size=2><FONT color=#0000ff size=2><P>Shared</FONT></FONT><FONT size=2> </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>Sub</FONT></FONT><FONT size=2> </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>Main</FONT></FONT><FONT size=2>()</P></FONT><FONT size=2><P></FONT><strong><FONT color=#010001 size=2><FONT color=#010001 size=2>Application</FONT></FONT><FONT size=2>.</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>EnableVisualStyles</FONT></FONT></strong><FONT size=2><strong>()</strong></P><P></FONT><strong><FONT color=#010001 size=2><FONT color=#010001 size=2>Application</FONT></FONT><FONT size=2>.</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>DoEvents</FONT></FONT></strong><FONT size=2><strong>()</P><DIV></strong></FONT><FONT color=#010001 size=2><FONT color=#010001 size=2><FONT color=#010001 size=2><FONT color=#010001 size=2><DIV>...</DIV><DIV>frmMain</FONT></FONT><FONT size=2>.</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>Instance</FONT></FONT><FONT size=2> = </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>New</FONT></FONT><FONT size=2> </FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>frmMain</DIV></FONT></FONT>Application</FONT></FONT><FONT size=2>.</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>Run</FONT></FONT><FONT size=2>(</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>frmMain</FONT></FONT><FONT size=2>.</FONT><FONT color=#010001 size=2><FONT color=#010001 size=2>Instance</FONT></FONT><FONT size=2>)</DIV><P></FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>End</FONT></FONT><FONT size=2> </FONT><FONT color=#0000ff size=2><FONT color=#0000ff size=2>Sub</P></FONT></FONT></DIV>]]>
   </description>
   <pubDate>Thu, 16 Oct 2008 15:35:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12447&amp;PID=42076&amp;title=icon-from-an-executable#42076</guid>
  </item> 
  <item>
   <title><![CDATA[Icon from an Executable : Hi Oleg,  Thanks for your reply......]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12447&amp;PID=42064&amp;title=icon-from-an-executable#42064</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3092">Boris</a><br /><strong>Subject:</strong> 12447<br /><strong>Posted:</strong> 16 October 2008 at 8:47am<br /><br />Hi Oleg,<DIV>&nbsp;</DIV><DIV>Thanks for your reply... not sure what you mean. I am working with VB.net&nbsp; 2005 and V12 of Xtreme Suite. I cannot seem to find anywhere that mentions ComCtl... have you got a snippet to show me what you mean.</DIV><DIV><img src="https://forum.codejock.com/smileys/smiley9.gif" border="0"></DIV><DIV>Regards,</DIV>]]>
   </description>
   <pubDate>Thu, 16 Oct 2008 08:47:51 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12447&amp;PID=42064&amp;title=icon-from-an-executable#42064</guid>
  </item> 
  <item>
   <title><![CDATA[Icon from an Executable : Hi,  Guess it extracts Alpha...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12447&amp;PID=42052&amp;title=icon-from-an-executable#42052</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12447<br /><strong>Posted:</strong> 16 October 2008 at 4:34am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Guess it extracts Alpha icon. You need enable ComCtrl v6.0 to allow use it.</DIV>]]>
   </description>
   <pubDate>Thu, 16 Oct 2008 04:34:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12447&amp;PID=42052&amp;title=icon-from-an-executable#42052</guid>
  </item> 
  <item>
   <title><![CDATA[Icon from an Executable :  Using VB2005  Hi,  This works  Dim...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12447&amp;PID=42036&amp;title=icon-from-an-executable#42036</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3092">Boris</a><br /><strong>Subject:</strong> 12447<br /><strong>Posted:</strong> 15 October 2008 at 2:06pm<br /><br /><FONT size=1><DIV>Using VB2005 </DIV><DIV>Hi,</FONT></DIV><DIV>&nbsp;</DIV><DIV><FONT size=1><strong>This works</strong></FONT></DIV><DIV><FONT color=#0000ff><P><FONT size=1>Dim</FONT></FONT><FONT size=1> ic <FONT color=#0000ff>As</FONT> Icon</FONT></P><DIV><FONT size=1>ic = Icon.ExtractAssociatedIcon(<FONT color=#a31515>"C:\Program Files\RealVNC\VNC4\vncviewer.exe"</FONT>)</FONT></DIV><P><FONT size=1>ImageManager1.Icons.AddIcon(ic.Handle, ID_CONNECT_VNC, XtremeCommandBars.XTPImageState.xtpImageNormal)</P><DIV><FONT size=2></FONT><FONT size=1><strong>This doesn't ... it produces a horrible black border around the icon</strong></FONT></DIV><DIV><FONT size=1>ic = Icon.ExtractAssociatedIcon(<FONT color=#a31515>"C:\Windows\system32\mstsc.exe"</FONT>)</FONT></DIV><DIV><P>ImageManager1.Icons.AddIcon(ic.Handle, ID_CONNECT_RDC, XtremeCommandBars.XTPImageState.xtpImageNormal)</P><P>CommandBars.Icons.AddIcon(ic.Handle, ID_CONNECT_RDC, XtremeCommandBars.XTPImageState.xtpImageNormal)</P><DIV></DIV><DIV></DIV><P>Can anyone tell me what I am doing wrong ??</P><DIV></DIV>Regards to all<DIV></DIV><P><FONT size=2></P></FONT></DIV></FONT></DIV>]]>
   </description>
   <pubDate>Wed, 15 Oct 2008 14:06:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12447&amp;PID=42036&amp;title=icon-from-an-executable#42036</guid>
  </item> 
 </channel>
</rss>