<?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 : File ic&#111;ns</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : File ic&#111;ns]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 16 May 2026 02:52:51 +0000</pubDate>
  <lastBuildDate>Thu, 08 Jun 2006 08:45:47 +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=4374</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[File ic&#111;ns : What size is the icon you wish...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4374&amp;PID=13514&amp;title=file-icons#13514</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 4374<br /><strong>Posted:</strong> 08 June 2006 at 8:45am<br /><br />What size is the icon you wish to display?&nbsp; Try setting the width of the column to width of icon + 1.&nbsp; Also be sure to have muliline True.]]>
   </description>
   <pubDate>Thu, 08 Jun 2006 08:45:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4374&amp;PID=13514&amp;title=file-icons#13514</guid>
  </item> 
  <item>
   <title><![CDATA[File ic&#111;ns : I&amp;#039;m trying to add the icon...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4374&amp;PID=13513&amp;title=file-icons#13513</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2081">Francesca</a><br /><strong>Subject:</strong> 4374<br /><strong>Posted:</strong> 08 June 2006 at 6:22am<br /><br /><P>I'm trying to add the icon related to the file extension and I'm using:</P><P><FONT face="Courier New, Courier, mono"><FONT size=1><FONT color=#0000ff>Public</FONT> <FONT color=#0000ff>Function</FONT> GetIcon(<FONT color=#0000ff>ByVal</FONT> Filename <FONT color=#0000ff>As</FONT> <FONT color=#0000ff>String</FONT>, <FONT color=#0000ff>ByVal</FONT> iSize <FONT color=#0000ff>As</FONT> IconSize) <FONT color=#0000ff>As</FONT> System.Drawing.Icon</FONT></FONT></P><P><FONT face="Courier New, Courier, mono"><FONT size=1><FONT color=#0000ff>Dim</FONT> hImg <FONT color=#0000ff>As</FONT> IntPtr</FONT></FONT></P><P><FONT face="Courier New, Courier, mono"><FONT size=1><FONT color=#0000ff>Dim</FONT> shinfo <FONT color=#0000ff>As</FONT> <FONT color=#0000ff>New</FONT> SHFileInfo</FONT></FONT></P><P><FONT color=#008000><FONT face="Courier New, Courier, mono" size=1>' Depending on the size, get the icon from the file</FONT></P></FONT><P><FONT face="Courier New, Courier, mono"><FONT size=1><FONT color=#0000ff>If</FONT> iSize = IconSize.Small <FONT color=#0000ff>Then</FONT> <FONT color=#008000>' Return small icon</P></FONT></FONT></FONT><P><FONT face="Courier New, Courier, mono" size=1>hImg = SHGetFileInfo(Filename, 0, shinfo, Marshal.SizeOf(shinfo), SHGFI_ICON <FONT color=#0000ff>Or</FONT> SHGFI_SMALLICON)</FONT></P><P><FONT face="Courier New, Courier, mono"><FONT size=1><FONT color=#0000ff>ElseIf</FONT> iSize = IconSize.Large <FONT color=#0000ff>Then</FONT> <FONT color=#008000>' Return large icon</P></FONT></FONT></FONT><P><FONT face="Courier New, Courier, mono" size=1>hImg = SHGetFileInfo(Filename, 0, shinfo, Marshal.SizeOf(shinfo), SHGFI_ICON <FONT color=#0000ff>Or</FONT> SHGFI_LARGEICON)</FONT></P><P><FONT face="Courier New, Courier, mono"><FONT size=1><FONT color=#0000ff>End</FONT> <FONT color=#0000ff>If</P></FONT></FONT></FONT><P><FONT color=#008000><FONT face="Courier New, Courier, mono" size=1>'The icon is returned in the hIcon member of the shinfo struct.</FONT></P></FONT><P><FONT face="Courier New, Courier, mono" size=1>GetIcon = System.Drawing.Icon.FromHandle(shinfo.hIcon)</FONT></P><P><FONT face="Courier New, Courier, mono"><FONT size=1><FONT color=#0000ff>End</FONT> <FONT color=#0000ff>Function</P></FONT></FONT></FONT><P>Add the icon&nbsp;but when add the icon to the report control:</P><FONT color=#0000ff size=2><P><FONT face="Courier New, Courier, mono" size=1>Dim</FONT></FONT><FONT face="Courier New, Courier, mono" size=1> ico <FONT color=#0000ff>As</FONT> System.Drawing.Icon</FONT></P><P><FONT face="Courier New, Courier, mono" size=1>...</FONT></P><FONT size=2><P><FONT face="Courier New, Courier, mono" size=1>rpCtrl.Icons.AddIcon(ico.Handle.ToInt32, nImageIndex, XTPImageState.xtpImageNormal)</FONT></P><FONT size=2><P>But I can't see the icon in the report control</P><P>Thanks</P></FONT></FONT>]]>
   </description>
   <pubDate>Thu, 08 Jun 2006 06:22:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4374&amp;PID=13513&amp;title=file-icons#13513</guid>
  </item> 
 </channel>
</rss>